-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing street line data #723
Comments
Try using |
I've got the map working correctly here, but when I call featuresAt, I don't get anything returned in the callback.. Any ideas? map.featuresAt([100,100], {geometry : true, radius : 30}, function(a,b){console.log(a,b)}); |
I investigated this a bit, and it seems that
|
Neither of the loaded tiles haves data in their rtrees. :( |
Okay, there's a bug in createBucket.js:31 where interactive is not being set to true for the mapbox source. Hardcoded it to true and it works now. What projection are the tiles in? I'm getting integers like |
Okay, sorry for spamming here - but is there a way to convert the |
Is this a bug? You need to explicitly set Will look into lat/lng task... |
How do you set |
In the style JSON, just put |
I made a demo of what I'm using |
Oh, nice! So, would including info about the tile (coords/zoom) in the query response suffice for your use case? |
Sure, that'd be great. I can convert from tile coords to lat lng. :) |
Fixed with #1010. |
I'm trying to use a physics engine to constrain people so they can only walk around the city on visible roads. I can't see any way to get the street centerline data out of mapbox gl. Can someone give me pointers on where to start looking for the centerline data for streets? I'm happy to share a demo showing how to use the data or contribute to an API if people can give me some pointers. :)
The text was updated successfully, but these errors were encountered: