Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    vilmos
    @vilinet_gitlab
    Enjoy my friend :)
    Simon Ilyushchenko
    @simonff_gitlab
    Hi everyone! I work on Google Earth Engine. We collaborate with several other groups on a geospatial catalog standard called STAC (https://stacspec.org). Currently we are starting work on a vector style extension, and I'm curious if the Tangram developers would like to contirbute.
    Brett Camper
    @bcamper
    hi @simonff_gitlab! I would be interested to hear more (I've heard a bit about STAC but not followed it closely) - you can reach me at brettcamper@gmail.com. Others here including @meetar and @nvkelso might be interested too.
    Simon Ilyushchenko
    @simonff_gitlab
    Thanks, Brett! I'll send an email, feel free to cc more people.
    Peter Richardson
    @meetar
    @simonff_gitlab @bcamper Yep definitely interested :+1: :earth_africa:
    Matt Blair
    @matteblair
    @simonff_gitlab I'm also interested! @bcamper you can CC me on that email
    Brett Camper
    @bcamper
    @matteblair @meetar yep I'll loop you guys in
    Varun
    @tallytalwar
    @simonff_gitlab include me as well
    Taylor Broad
    @BossOfGames
    Hey is anyone aware of issues with Nextzen? My map just went down with "Tile Not Found" errors. I'm back up with just fallback file right now.
    Also, my project requires working with live datasources. Instead of working with Leaflet's poor memory intensive implementation of markers, I would like to see if I can draw them in Tangram. My only issue is that I need Tangram to call a GeoJSON file every minute containing new position data. Any suggestions?
    Brett Camper
    @bcamper
    @BossOfGames tiles are currently loading for me, but can you give me the specific http error code and message?
    @BossOfGames for live datasources, yes you can add or update a GeoJSON layer in Tangram. You'd do something like scene.setDataSource('dynamic_layer', { type: 'GeoJSON', data: geojson_data })
    which should cause any styles referencing that layer to re-render
    Brett Camper
    @bcamper
    @BossOfGames also what location you're seeing tile problems, thanks!
    Taylor Broad
    @BossOfGames
    @bcamper Thanks for the reply, the tile problems were appearing when zoomed out all the way. It seems to have since resolved itself. I do now have a fallback file (which is working quite well). I am also creating my own tile server with the latest OSM data pull available as the stuff I am mapping (airports) have gone through some notable revisions and improvements in how they're displayed on OSM.
    Taylor Broad
    @BossOfGames
    Have there been discussions regarding updating the current Nextzen source?
    Brett Camper
    @bcamper
    hi @BossOfGames , if you have questions about Nextzen/Tilezen tiles, please try posting an issue in https://github.com/tilezen/vector-datasource, thanks!
    Taylor Broad
    @BossOfGames
    Are sprite files reloaded whenever you're dealing with routing in a SPA? Upon returning to the original page, the sprites show up as white boxes.
    Taylor Broad
    @BossOfGames
    Nathaniel V. KELSO
    @nvkelso
    @BossOfGames The Nextzen tiles were updated last week using last month's OSM planet file and the just released v1.8 schema (supported disputed area point of view)
    Taylor Broad
    @BossOfGames
    @nvkelso thanks for the heads up
    sdudarenko
    @sdudarenko
    Hi everyone) I have a question
    How to show an overlay between lines if this lines are parts of one layer?
    This layer is “FeatureCollection” where features = Array([LineString]).
    How to paint the overlay using another color or change opacity according to opacity of lines?
    If it is possible to use scene.yaml in this case?
    Taylor Broad
    @BossOfGames
    @sdudarenko can you give a link to an illustration on what you're trying to accomplish? I would think either the filtering example or potentially using a function to check a property in your datasource would help
    sdudarenko
    @sdudarenko
    Hi, there are illustrations:
    https://drive.google.com/open?id=1kiKRrJCD_SKzJ_A7bpH7mtipGOBkbxwv
    https://drive.google.com/open?id=1r74mXr2MMQXjzvkxrZPAf41hlfu3rkNX
    Orange line is in the middle of green line, which has its width defined in meters. The intersections of green line with itself are dark green.
    vilmos
    @vilinet_gitlab
    Hiya,
    Is there any way in tangram to render label texts? I want to see all text, independently of the actual zoom level.
    Cheers
    Peter Richardson
    @meetar
    @sdudarenko If you'd like to use translucent colors, you must change the alpha value of your color (the default is 1.0), and then set a blend mode to something besides the default opaque. https://tangrams.readthedocs.io/en/latest/Tutorials/custom-styles/#transparency-with-blend-modes
    Peter Richardson
    @meetar
    @vilinet_gitlab There are two ways to render labels – one is using the text draw style, which creates a standalone label element (https://tangrams.readthedocs.io/en/latest/Overviews/Styles-Overview/#text_1) – the other looks the same, but is a child of a points draw style - this "attaches" a label to a drawn point such as a sprite or icon (https://tangrams.readthedocs.io/en/latest/Syntax-Reference/draw/#text)
    @vilinet_gitlab Regarding zoom levels – you will only be able to draw labels which exist in the current visible zoom level. You can adjust this somewhat with the zoom_offset parameter – it has not been documented yet, but there is an overview in the 0.17 release notes: https://github.com/tangrams/tangram/releases/tag/v0.17.0
    sdudarenko
    @sdudarenko
    @meetar thank you!
    sdudarenko
    @sdudarenko
    Hi,
    I made a demonstration of my question:
    https://codesandbox.io/embed/tangramjs-self-intersection-66z5w
    The line is transparent(alpha 50%, to see it you need to zoom out the part related to streets which are presented on the map).
    But the line will merge on intersections, not overlay on itself(I've added outline to clearly see it).
    Is it possible to make that all intersections of lines with themselves would be showed up in different color by using scene.yaml(as it's presented on screenshot attached below)?
    https://drive.google.com/open?id=1kiKRrJCD_SKzJ_A7bpH7mtipGOBkbxwv
    Brett Camper
    @bcamper
    @sdudarenko I think the translucent blend mode will doo what you want (it's used for 3d buildings where overlapping walls mask each other similar to what you describe)
    sdudarenko
    @sdudarenko
    @bcamper thank you!
    vilmos
    @vilinet_gitlab

    Hi all!
    Is there way to hide/show a layer or style in tangram in C++, so just toggling visibility?
    If there is no way to do it right now, what would be the best way to add it?

    right now i just tried to ignore styles at rendering that set to non-visible, but sometimes it causes glithces as the main "cached" texture is not updated well.

    yanickv
    @yanickv
    Is there a way of determining if a given GPS position is on water?
    ivan korol
    @ivanking87
    Help me please!!! How select building on map by click in android SDK?
    vilmos
    @vilinet_gitlab
    As far as i know there is no function like that in tangram-es. You need to take care of object selection.
    You need to go through all your objects and find the object that overlaps your x,y touch position.
    Then pass the found object's geojson into your specific "highlight layer" in tangram.
    ivan korol
    @ivanking87

    @vilinet_gitlab thank you for your answer, but please be a little more specific, I'm new to tangram-es.
    If I understand correctly I need to divide the task into two parts

    1. You need to go through all your objects and find the object that overlaps your x,y touch position.
    2. Then pass the found objects geojson into your specific "highlight layer" in tangram.

    I beg You, can you give some short example of how this can be done?

    vilmos
    @vilinet_gitlab

    @ivanking87
    Soo First i am sure there is a library for manage geospatial verticies be able to search among them but i am not really into these stuffs(or libraries you can use to search in a geojson for specific)
    -1, Add a new layer to the yaml like:

        selected_layer:
          filter: { layer: selected_layer}
          draw:
            polygons:
              color: [0.0, 0.5, 0.5, 0.3]
              collide: false
              order: 2006
              cap: round
            lines:
              color: [0.9, 0.2, 0.2, 0.7]
              collide: false
              width: 2px
              order: 2007
              cap: round
            points:
              color: [0.0, 0.9, 0.2, 0.7]
              collide: false
              size: 4px
              order: 2020

    0, add this line to your code after you load the scene file:
    MapData selectedLayerSource= mapController.addDataLayer("selected_layer");
    you should able to reach it anywhere from your class, so make it into a instance field.
    This selectedLayerSource is now the source of your selected layer, if you insert any geojson, it will be rendered on your map.
    1, You need to handle your geojson/geospatial data, wont work if you just pass it from a source url/file;
    2, Lets assume you work withe the geojson. in this case you can use the JSONArray class to search among the json Or parse the geojson into a normal java obj( thats much faster to work with usually.)
    3,Once you have an object, you can easily search among these( https://stackoverflow.com/questions/27804619/search-element-in-a-jsonarray-in-java )
    4, Then you override the onSingleTapConfirmed in your activity where tangram is used.(if you use the demo one it should be there). In this method you get the x,y parameters(langitude, lattitude), so you can find your object in your array.

    1. Then when you found your feature you need and just pass the geojson of the feature into your layer: selectedLayerSource.setGeoJson(myFeatureGeoJson);
    2. and now your object is "highlighted"
    ivan korol
    @ivanking87
    @vilinet_gitlab Thanks you best man!!!
    ivan korol
    @ivanking87
    @vilinet_gitlab One more question if I may...
    sources:
    osm:
    type: TopoJSON
    url: https://vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson?api_key=vector-tiles-HqUVidw
    max_zoom: 16
    TopoJSON can I use? or do I need to convert TopoJSON to GeoJSON first?
    tomerlevi444
    @tomerlevi444
    Hi,
    I can't sign up at https://www.nextzen.org/ to get an API KEY.
    how can this be resolved?
    Varun
    @tallytalwar
    @iandees can you check this please?
    ^
    ivan korol
    @ivanking87
    Hi, please tell me how I can insert a 3D object on the map? In what files can such functionality be added? If there are no ready solutions can at least someone tell me the sequence of implementation of these steps?
    Nathaniel V. KELSO
    @nvkelso
    @tomerlevi444 please use the first link on that page, which lands you on https://developers.nextzen.org/. You'll need a Github account to login.
    Hsieh Chin Fan
    @typebrook
    Also, a real example may helps
    ivan korol
    @ivanking87
    @typebrook I want add not 3d building. I want add other 3d object from .obj file