You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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.
@edenh Try grabbing the latest from the stylequest branch, which includes OSM Bright as the style, and see if the sprite works for you. It does for me (no POIs still, though).
Does not work for numeric feature values (such as when looking for admin_level = 2 and maritime = 1) but does work for string values (most of the other layers).
With this I think stylequest is done and we can merge it into master with OSM Bright as the new default theme for now. Label sparseness is tracked in #162 and nested layers in #140, so I think we're in good shape.
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)
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.
Activity
incanus commentedon Apr 23, 2014
Working with @edenh on this yields success on OS X and iOS:
edenh commentedon Apr 23, 2014
🎆
some notes:
incanus commentedon Apr 23, 2014
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.
incanus commentedon Apr 24, 2014
iPhone 5s video: https://dl.dropboxusercontent.com/u/575564/osm-native.mp4
incanus commentedon Apr 24, 2014
POIs aren't coming through, either.
refs #159: work towards more complex styles with OSM Bright example
incanus commentedon Apr 25, 2014
dasharray: 9e8ace2translate: fb581fa@edenh Try grabbing the latest from the
stylequestbranch, which includes OSM Bright as the style, and see if the sprite works for you. It does for me (no POIs still, though).edenh commentedon Apr 25, 2014
@incanus sprite works. looking good 👍
incanus commentedon Apr 26, 2014
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.)
incanus commentedon Apr 28, 2014
POIs are ok, I think. Bigger problem right now that I'm working on is country/admin/marine line features not showing up.
incanus commentedon Apr 28, 2014
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.
incanus commentedon Apr 30, 2014
Argghhhh... finally solved.
Turns out this
std::find:https://github.com/mapbox/llmr-native/blob/797f590cfb846e978561f2ff1e6921e37c2d4aff/src/map/vector_tile.cpp#L242
Does not work for numeric feature values (such as when looking for
admin_level = 2andmaritime = 1) but does work for string values (most of the other layers).This happens because the type of number parsed from the protobuf in
value.cpp(https://github.com/mapbox/llmr-native/blob/797f590cfb846e978561f2ff1e6921e37c2d4aff/src/style/value.cpp#L6) doesn't necessarily correspond to the type of number iterated out ofbucket_desc.source_value(https://github.com/mapbox/llmr-native/blob/797f590cfb846e978561f2ff1e6921e37c2d4aff/src/map/vector_tile.cpp#L241), i.e. it could be comparing 32-bit and 64-bit floats and finding inequality.So subtle, so much pain.
refs #159: fix bug with filtering on numeric layer values
incanus commentedon Apr 30, 2014
With this I think
stylequestis done and we can merge it intomasterwith OSM Bright as the new default theme for now. Label sparseness is tracked in #162 and nested layers in #140, so I think we're in good shape.@kkaefer thoughts on merging to
master?springmeyer commentedon Apr 30, 2014
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.
kkaefer commentedon May 2, 2014
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)
refs #159: fix bug with filtering on numeric layer values
mikemorris commentedon May 2, 2014
Damn you static typing and strict comparisons!
incanus commentedon May 2, 2014
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.
refs #159: add dot shader & bring point handling to parity
incanus commentedon May 7, 2014
Stylequest is now merged and OSM Bright is the default style in
master.[qt] Improve CMake setup (mapbox#159)