Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Marek
    @siloam
    I have built Tangram module but I am not able to run it in my app.
    This is the error:
    Worker broker could not dispatch message type self.init on target undefined because no object with that name is registered on main thread: Error: Worker broker could not dispatch message type self.init on target undefined because no object with that name is registered on main thread at WorkerBrokerWorkerThreadHandler (blob:http://localhost:8080/b7ee8689-e697-4f82-b42f-55a671fa945c:61:158)
    Does anyone know how to fix this?
    10 replies
    Marek
    @siloam
    Andy San
    @andytsan_gitlab
    Hi folks, Tangram is an amazing resource. I'm just a bit confused about vector tile hosting. Who is the best vector tile host to use for a commercial product? Is everyone just self-hosting their own tile server? I presumably can't continue to use Nextzen?
    Nathaniel V. KELSO
    @nvkelso
    Nextzen tiles will continue to be online for the next 6 months, hard to commit past that. We're working to refresh the data now. It's always possible to run your own tile serving instances. OpenMapTiles has a great service, though in a different schema. Same goes for Mapbox. Any other options out there people are using?
    Brandon Liu
    @bdon_gitlab
    @andytsan_gitlab I'm actively working on another option at https://protomaps.com - with first class support for Tangram - happy to talk about your specific use cases
    I think the "best" tile service or system really depends on your cartographic needs though - each might mix in other datasets or generalize features differently
    Andy San
    @andytsan_gitlab
    @bdon_gitlab protomaps looks great. I'll sign up and start using it.
    Andy San
    @andytsan_gitlab

    @bdon_gitlab I'm trying to use protomaps with the walkabout style (https://github.com/tangrams/walkabout-style). I've edited the main .yml file to point to Protomaps sources

        mapzen:
            type: MVT
            url:  https://api.protomaps.com/tiles/v1/{z}/{x}/{y}.pbf
            url_params:
                key: global.sdk_api_key
            rasters: [normals]
            tile_size: 512
            max_zoom: 16

    But I get no output in the map. Also does Protomap offer rasterised terrain tiles which are needed for this style?

    1 reply
    Brandon Liu
    @bdon_gitlab
    The styles that work with the protomaps API right now are only these: https://github.com/protomaps/styles because the data layers and tags included in the tiles are different.
    I may attempt to port some of the Nextzen styles such as Refill, Walkabout etc to use the protomaps tiles - might need some license clarification on those styles first, though
    Andy San
    @andytsan_gitlab
    Yeah I'm beginning to understand. Protomaps offers a different schema than the original Mapzen styles. Also for the terrain tiles, I could probably use the Amazon public dataset S3 endpoints?
    Brandon Liu
    @bdon_gitlab
    That's correct, the way the protomaps features are organized is actually schemaless: it includes keys and values directly from OSM, with some helper tags to aid styling. Yes, there's no limitation to using terrain tiles from a different API endpoint
    anumshk
    @anumshk27
    OFF TOPIC but i would like to know if there is any way tangram can support flutter?
    1 reply
    cyfugr
    @cyfugr
    Hi, i was wondering how i can add a legend every time a click on a place on the map, and show the osm data
    6 replies
    Marek
    @siloam
    I have noticed strange behavior in Tangram. I have integrated Tangram into my Vue.js app, but icons (from themes/images/bubble.png) are shown on the map only after full website reload . There is no icons while map component in used second time during app session (without full website reloading). I have changed the image into base64 encoded string but there is no success. Do you have any ideas how to fix this?
    Marek
    @siloam
    The scenario: Open the browser. Open the app on the map view - icons are visible. Change the route in the Vue app and go back to the same view - no icon from the theme is visible.
    Ken-ichi
    @kueda
    tangram-es / android question: is there a way to extend the default PanResponder instead of replacing it? I just want to do something when the user pans, not re-implement all panning behavior
    Ken-ichi
    @kueda
    this works, but is it The Right Way?
    mapController.touchInput?.let {touchInput ->
        val defaultPanResponder = mapController.panResponder
        touchInput.setPanResponder(object : TouchInput.PanResponder by defaultPanResponder {
            override fun onPanEnd(): Boolean {
                // custom thing
                trackingUserLocation.value = false
                return defaultPanResponder.onPanEnd()
            }
        })
    }
    Matt Blair
    @matteblair
    @kueda Yeah I think that's the best / only way to extend a built-in gesture responder. Based on your example I'm guessing you want to do some custom logic when the map is moved due to user input (as opposed to being moved by an API call). I think this is a common enough use case that it's worth designing for. If the MapChangeListener methods provided a flag to indicate whether the change was produced by user input would that be sufficient to implement your logic?
    Marek
    @siloam
    Does anybody know why Tangram displays icons only first time after full website loading? I have integrated Tangram into Vue.js app but icons are visible only during first visit. I thought it's because of Vue.js component caching, but $forceUpdate was not the solution. Thank you in advance.
    Ken-ichi
    @kueda
    @matteblair yup, that would handle my case. Thanks for taking a look!
    Quenlen Liu
    @quenlenliu
    I want tangram-es render with offine osm data.not use online tile .how to setup
    Peter Richardson
    @meetar
    @quenlenliu If you have untiled data, you can put a file name directly in a source’s url parameter, but with tiled data you should host it locally. Both methods are described here: https://tangrams.readthedocs.io/en/master/Syntax-Reference/sources#url
    Peter Richardson
    @meetar
    @siloam Hi Marek, the base64 encoding is a good troubleshooting step. What's your browser/OS?
    2 replies
    Quenlen Liu
    @quenlenliu
    @meetar Tks, I try it
    Ken-ichi
    @kueda
    is there a way to style a point with a drop shadow? i'm trying to make a current location marker that looks like the one in Google Maps. i gave up on the pulsating animation, but was hoping i could make the circle appear to have some elevation. working with tangram-es in android
    Ken-ichi
    @kueda
    also, is there a way to control the marker size with a function when using setStylingFromString? e.g. marker.setStylingFromString("{style: 'points', size: 'function() { return \$meters_per_pixel * 10; }' }")
    3 replies
    Marek
    @siloam
    As I have promised this is my contribution to Tangram project: OpenMapTiles compatibile style for your vector maps. The style is mostly based on Cinnabar style by Mapzen. Road names and road icons are not implemented yet but the style is useable. Check this out:
    Nathaniel V. KELSO
    @nvkelso
    Oh wow, very cool!
    Ken-ichi
    @kueda
    is it possible to use pickFeature to get the value for pixel in a raster layer in tangram-es for Android? my use case is having a DEM layer and wanting to get the elevation for positions on that layer
    7 replies
    Brett Camper
    @bcamper
    tangram-@15.4958&40.7075&-74.0111_2020-10-03_19.55.28.png
    tangram-@15.1500&47.6494&-122.3091_2020-10-03_19.56.05.png
    @siloam thank you, this looks great! I have been wanting an OpenMapTiles style like this. Are you planning to maintain this on github, or would you mind if we put this in the Tangram org, with appropriate license/credit?
    Marek
    @siloam
    You can do anything you want. All credits belong to Tangram developers. I think it would be great if something like this will be included in examples.
    Matt Blair
    @matteblair
    That is super cool! I agree, this would be a good addition to our example scenes. Did you generate this from the OpenMapTiles schema using some kind of tool?
    janisvz8
    @janisvz8
    Hi I have a scene with 3 logical layers and 3 sublayers in the first logical layer. In Tangram is it possible to achieve ordering at the sub-layer level ?
    Matt Blair
    @matteblair
    @janisvz8 Yes, you can change the ordering of draw groups using the order parameter: https://tangrams.readthedocs.io/en/master/Syntax-Reference/draw/#order
    whitespeed
    @whitespeed
    How tangram-play use different tangram lib version
    1 reply
    Johannes Lauer
    @jolauer
    Hi, I am looking for a converter to get tangram styles into QGIS. SInce QGIS has recently got the option to load vector tiles, it would be a nice option to get the server side style also within the GIS application. Is anybody aware of such a converter?
    4 replies
    whitespeed
    @whitespeed
    font style weight "bold" doesn't seem to work in Android
    image.png
    image.png
    image.png
    Qi Yu
    @yuqicxy
    Hi, I'm confused about the positionScale , textureScale and normalScale in mesh. I know it's for converting float to short, and restore it in shader, but why do it twice, save the GPU bandwidth? Does it really meaningful?And is it necessary to follow the method in rendering 3d model data like obj ?
    1 reply