Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Qi Yu
    @yuqicxy

    I wanna add a obj model to tangram scene.It look normally in this view dir.

    image.png
    but if i change view direction,the model is seemed to be covered by road,like this .> [image.png] I can't figure out why this happen, depth test and mask is true. Does anyone know the reason.thks

    1 reply
    cyfugr
    @cyfugr
    Hi, is it possible to return static images with markers from the tileserver?
    ehsandu15
    @ehsandu15
    hello
    I have a question with CMake can someone help?
    Matt Blair
    @matteblair
    Hi @ehsandu15 what's your CMake question?
    Ken-ichi
    @kueda
    Is there a way to access or calculate the size of a pixel in meters from tangram-es? I know $meters_per_pixel is available to JS functions in the scene, but is there a way for the application that contains the map to know that? Something like mapController.getMetersPerPixel()?
    Bert Spaan
    @bertspaan
    I'm trying to create a Vue app that uses Tangram, I keep getting the error Scene.load() failed to load "scene.yaml". I've both tried importing tangram.min.mjs and tangram.min.js in the main HTML, as well as import Tangram from 'tangram' in the Vue code. Any ideas?
    4 replies
    Brandon Liu
    @bdon_gitlab
    I'm attempting to do labels with two different text sizes - the top line larger like 16pt, the bottom line smaller 12pt. Mapnik handles this by having attributed text runs, you can mark up XML inside the text symbolizer. What approaches work for Tangram?
    Brandon Liu
    @bdon_gitlab
    made a concrete example of how to accomplish in Mapnik: https://twitter.com/bdon/status/1337191562590134273
    lachezar-n
    @lachezar-n
    Hi, i am trying to install Tangram ES on my raspberry PI 4, but witout success. Does has somebody any idea?
    Brett Camper
    @bcamper
    @bdon_gitlab that is very cool -- unfortunately Tangram doesn't support multiple font styling within the same label :/ I'm trying to think of how best to support that syntax-wise (suggestions welcome). Tangram JS sorts rasterization to the canvas texture by unique font style, to minimize state changes. However, I suppose if it still sorted by unique combinations, it could still use that to reduce the number of canvas context updates (or at worst, only incur additional performance hit there for labels that actually use multiple styles, which would be rare).
    23 replies
    Brett Camper
    @bcamper
    Screen Shot 2020-12-12 at 8.41.36 PM.png
    Screen Shot 2020-12-12 at 8.44.46 PM.png
    Brandon Liu
    @bdon_gitlab
    Is there a good reason to offer the smaller terrarium tile sizes (256,260,512) instead of just having 516, other than file size?
    2 replies
    binu8051
    @binu8051
    Hi, i am planning to make a offline android app for marine in 3d. Can the tangram show an water moving animation for sea water (a slight movement is enough). Also can i show a 3d boat object. so the boat can move with the gps signal. Thanks
    3 replies
    Ken-ichi
    @kueda
    Is there a known bug in tangram-es in which using offset in text for line data causes labels not to appear? If I omit it I get a bunch of normal labels, but when I add something like offset: [0px, -10px] most of those labels don't appear, and it seems like only the straightest line segments get labels.
    3 replies
    Charlie Callow
    @wollac11

    Is there any way to ensure text is always drawn when using text as the only representation of a point?

    We have data which contains points specifically for text location (so the points themselves are not drawn) and they seem to be hidden at certain zoom levels even they do not appear to be occluded and (collide: false).

    1 reply
    mrcll
    @remrcll
    Hey, I'm new to tangram.js. I try to make it work with react-leaflet, but somehow I can't. I tried to follow the documentation, I installed the bundled version, but somehow it's not working in my own project. Does anybody have a working setup with react-leaflet, who could help me? Or does anyone have an example repo? I would really appreciate any help. :)
    mrcll
    @remrcll
    I get the error: index.js:1 Tangram v0.18.2 [error]: Style: error compiling program for style 'polygons' (program key 'program')
    and
    tangram.min.js:35 Uncaught TypeError: Cannot read property 'uniform' of null
    mrcll
    @remrcll
    Ok, I found the problem. My browsers privacy settings were too strong, and it was blocking fingerprinting strictly. Had to change to standard.
    william
    @WilliamWangPeng
    hello everyonel does anyone know how to compilie https://github.com/tangrams/tangram-es?
    Matt Blair
    @matteblair
    Hi @WilliamWangPeng ! Are you having trouble following the instructions on the platform README pages?
    Todd Hertzelle
    @thertzelle
    Is there any good way to debug A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 21513 (ctnativetangram), pid 21513 (ctnativetangram) ?
    I'm working on building in Tangram to Android and I can see it's loading my yaml file (locally), the last bits of my console are:
    D/Tangram: Loading native library took 148ms
    D/Tangram: Loading native library took 0ms
    D/Tangram: MapController creation took 12ms
    D/Tangram: MapController init took 16ms
    D/Tangram: WARNING tileManager.cpp:204: add source _mine
    E/Tangram: Error in font.xml parsing: END_TAG expected (position:START_TAG (empty) <axis tag='wght' stylevalue='400'>@153:49 in java.io.InputStreamReader@c5589e7) 
    E/Tangram: Error in font.xml parsing: END_TAG expected (position:START_TAG (empty) <axis tag='wdth' stylevalue='100.0'>@292:51 in java.io.InputStreamReader@c5589e7) 
    E/Tangram: Error in font.xml parsing: END_TAG expected (position:START_TAG (empty) <axis tag='wght' stylevalue='400'>@369:49 in java.io.InputStreamReader@c5589e7) 
    D/Tangram: FontConfig init took 64ms
    A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 21513 (ctnativetangram), pid 21513 (ctnativetangram)
    Seems like it picked up my yaml from the assets because its aware of add source _mine
    So thats a good step forward for me.
    But the yaml file has a reference to a GEOJSON, and I couldn't find if there was something special that I needed to do to tell Tangram about it. The iOS code I wrote for this works perfectly with this yaml, so something about android isn't quite right I guess, anyone have any suggestions?
    Also I've implemented the sceneListener and override fun onSceneReady(sceneId: Int, sceneError: SceneError?) { never is called
    (I was hoping it would have thrown an error)
    Todd Hertzelle
    @thertzelle
    I'm stumped, I dunno how to dig into the C project from an Androids perspective to figure out where the crash comes from :(
    Matt Blair
    @matteblair
    Hi @thertzelle! Sorry to hear you're encountering crashes. I've responded to your latest issue on Github, which seems to be about the same issue.
    Todd Hertzelle
    @thertzelle
    Thanks for the response Matt, i'm determined to figure it out !
    (Probably with the help of someone else, like yourself xD)
    Todd Hertzelle
    @thertzelle
    @matteblair Thanks for your help, your little clues helped me figure out the problem, which I documented in that Issue.
    determinate
    @determinate
    hello everybody how to integrate Valhalla with tangrams-es? I cannot find any resource for this. If you have any information please give me any instruction?
    Fernando A de la Fuente
    @fernancode

    Hello all. I am struggling to get this to work on a raspberry pi 3 A+ running raspberry pi OS 32bit - https://github.com/tangrams/PI-GPS

    I am running into an error where

    oops - where -lGLESv2 and -lEGL cannot be found. I am trying to find the makefile to replace those with -lbrcmEGL and -lbrcmGLESv2 (per this stack overflow https://raspberrypi.stackexchange.com/questions/77619/where-is-legl-lglesv2), but i cant find it
    any suggestions to get this going? This seems like a real sweet project and I can feel I'm very close
    Matt Blair
    @matteblair
    @fernancode The build configuration for this project is in CMake, you'll want to modify this line to replace -lGLESv2 and -lEGL with -lbrcmEGL and -lbrcmGLESv2 https://github.com/tangrams/PI-GPS/blob/master/CMakeLists.txt#L14
    That said, you may run into more issues - this project has been unmaintained for several years. If you do get it working with more changes, feel free to file a pull request on the repo with your fixes!
    Fernando A de la Fuente
    @fernancode
    @matteblair I'm on it! I already have two changes, so I'll definitely take note of what I have. I'll keep poking in the chat when I run into stuff I don't understand
    Fernando A de la Fuente
    @fernancode
    apologies for the spam. making good progress :)
    Fernando A de la Fuente
    @fernancode
    ok first question that doesnt have a google result: I finally got the manhattan map to load but i cant zoom out or move at all - whats the best place I should try and debug here?
    Matt Blair
    @matteblair
    @fernancode It looks like the code has event handlers for keyboard inputs, so I would start by trying to use a keyboard if you aren't already. Beyond that, you'll probably want to use general C++ breakpoint debugging techniques to see where things are not happening as expected. The repo has probably only been tested on a Raspberry Pi from 6 years ago. @patriciogonzalezvivo is the original author of the code, but not sure how well he'd remember the code at this point!
    Qi Yu
    @yuqicxy
    Hi, I wanna dynamic change the style at the runtime, like vertexColor, texture. How can i dirty the stylemesh of tile?
    Chris Ellison
    @ChrisE1979_gitlab
    I am d.y.i.n.g on the vine. Trying to use tangram-sandbox with react. I can use tangram with react. But when I try to use gotham or tron as the scene file.... nothing. No errors, nothing in my console, just blank screen. Pleaseeeee tell me someone out there is willing to help? Thank you
    7 replies
    Also @patriciogonzalezvivo congrats on @runwayml!
    anumshk
    @anumshk27
    How we can use tangram-es with flutter dart?.
    1 reply
    Todd Hertzelle
    @thertzelle
    Are there any good examples for how to draw a circle with a gradient (semi transparent) background in tangram? Would I use a shader for this sort of thing?
    1 reply