Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    partheniadis
    @partheniadis
    good luck
    yanickv
    @yanickv
    Hi @matteblair , I saw that you fixed tangrams/tangram-es#2044, but how can I update my code with the fix? I am currently using this line in my build.gradle implementation 'com.mapzen:mapzen-android-sdk:1.6.1'.
    Matt Blair
    @matteblair
    Hey @yanickv - looks like you're using the Mapzen Android SDK and not using Tangram directly. Unfortunately I think the Mapzen Android SDK is no longer being updated.
    If the only part of the SDK that you need is Tangram, then you can just replace the dependency with 'com.mapzen.tangram:tangram:0.10.2-SNAPSHOT' to use the latest snapshot version of Tangram for Android, which includes the fix for #2044
    yanickv
    @yanickv
    Hi @matteblair , I have started converting my app to use tangram-es directly instead of using the android-sdk. I thought it would not be too hard since I am not using much of the extra stuff in android-sdk. But I am hitting a few issues, probably because of some breaking changes between the old tangram in the android-sdk and the newest one.
    Issue 1) Got this error while trying to use the dependency you mentioned "ERROR: Failed to resolve: com.mapzen.tangram:tangram:0.10.2-SNAPSHOT". That is curious because if I use com.mapzen.tangram:tangram:0.10.1 instead I don't get the error?
    yanickv
    @yanickv

    Issue 2) drawing a polyline of 3px wide shows much too wide (ex: the widht takes 2/3 of the phone screen width, looks like 300 pixels instead of 3). To get the line at the width I want I had to change the width to 0.03px.

          _boatToAnchorMarker = _mapzenMap.addMarker();
          String styleString3 = "{ style: 'boat-to-anchor-line', color: '#30000000', width: 0.03px, order: 10000 }";
          _boatToAnchorMarker.setStylingFromString(styleString3);
            List<LngLat> anchorToBoatLine = new ArrayList<>();
            anchorToBoatLine.add(new WAYLngLat(anchorPos));
            anchorToBoatLine.add(new WAYLngLat(_gpsListener.getLastLocation()));
            Polyline anchorToBoatPolyline = new Polyline(anchorToBoatLine, null);
            _boatToAnchorMarker.setPolyline(anchorToBoatPolyline);

    The style .yaml is very standard, looks like this:

    boat-to-anchor-line:
        base: lines
        blend: overlay
        blend_order: 2999

    But even with a width of 0.03, I have strange behaviors, when zooming the line width changes a little and sometimes disappears?

    Here is a screenshot of the line when using a width of 3px.
    image.png
    yanickv
    @yanickv
    But even with a width of 0.03, I have strange behaviors, when zooming the line width changes a little and sometimes disappears?
    https://photos.app.goo.gl/ixqZiBvXWkND2KwDA
    vilmos
    @vilinet_gitlab
    I think this is the same issue: tangrams/tangram-es#2038
    There is a fix attached to this, but its not merged yet.
    yanickv
    @yanickv
    @vilinet_gitlab , yes indeed looks the same. I guess one option now is to learn how to build tangram-es and apply the patch :) Is it possible to build tangram-es on Windows 10? The instructions in https://github.com/tangrams/tangram-es/blob/master/platforms/android/README.md#setup suggest that it should be possible, but I can't seem to find gradlew.bat.
    yanickv
    @yanickv
    Ok, found it. I instatlled Gradle on my PC and called gradle wrapper and it generated the gradlew.bat.
    vilmos
    @vilinet_gitlab
    Yeah its actually easy to build, just follow the steps:
    vilmos
    @vilinet_gitlab

    Actually you only need cmake and enter this command in the cloned tangram-es repo to download the dependencies : git submodule update --init
    then you can open the platforms/android folder in android studio.
    after you applied the patch, just create a aar file with the assembleRelease graddle commnad. you can find these commands on the Gradle tab.
    sure you can test it before simply starting the sample project.

    I really like the way how they structured it,really easy to change and work with it.

    yanickv
    @yanickv
    @vilinet_gitlab, I applied your patch and it works perfectly! It took a little longer to get tangram-es to build because I first tried to build it on my Windows 10 laptop and that didn't work very well (if someone is curious, here is the error I had https://pastebin.com/fkcHsmVL). I then followed your instructions on Ubuntu and compiled the AAR without any problems. Big thanks to you!
    yanickv
    @yanickv
    I would also like to thank @matteblair for tangrams/tangram-es#2044, my AAR now contains all native tangram-es libraries required by the new Google 64bit requirements (https://developer.android.com/distribute/best-practices/develop/64-bit).
    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!