-
Notifications
You must be signed in to change notification settings - Fork 1.3k
get OSM Bright style working #159
Comments
Working with @edenh on this yields success on OS X and iOS: |
🎆
|
Sprite's working for me and in general I have seen labels to be sparse overall previously. I haven't looked into that yet but @kkaefer might have some insight. |
iPhone 5s video: https://dl.dropboxusercontent.com/u/575564/osm-native.mp4 |
POIs aren't coming through, either. |
@incanus sprite works. looking good 👍 |
POIs now work as of c379c9b. Just something odd about (I think) translucency that I still have to look into. Coloring is working ok, though. (Translation building shadow, also.) |
POIs are ok, I think. Bigger problem right now that I'm working on is country/admin/marine line features not showing up. |
These line features are related to parsing of vector tiles, not rendering. Getting close, but this part of the code is pretty new to me. |
Argghhhh... finally solved. Turns out this Does not work for numeric feature values (such as when looking for This happens because the type of number parsed from the protobuf in So subtle, so much pain. |
nice work getting to the bottom of this @incanus. Hope you have a warm dinner or tasty beverage in your future to help unwind this bug from your head. |
Hah, dang. I meant to fix that by implementing cross-type compare functions a long time ago (I already have an implementation somewhere (i.e. we shouldn't convert everything to a string, but instead cast strings to numbers if possible) |
Damn you static typing and strict comparisons! |
Yeah, I should have guessed at something like this (20/20) but it took me a while to get down to that level, stepping through buckets and manually parsing out vector tile features (as well as learning the vector tile format) but in the end, the way I was debugging at first was outputting things as integers, which the values essentially were, and the opacity of pbf types contributed, too. Anyway, onward! I now know both the tile format and the basics of pbf a lot better. @kkaefer I've ticketed that in #166 to improve if you can dig up that code. |
Stylequest is now merged and OSM Bright is the default style in |
From https://github.com/mapbox/osm-bright-gl/blob/master/style.js
/cc @edenh
The text was updated successfully, but these errors were encountered: