Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

get OSM Bright style working #159

Closed
Closed

Activity

  1. incanus commented on Apr 23, 2014

    @incanus
    ContributorAuthor

    Working with @edenh on this yields success on OS X and iOS:

    ios simulator screen shot apr 23 2014 4 18 15 pm

  2. edenh commented on Apr 23, 2014

    @edenh
    Contributor

    🎆
    some notes:

    • dasharray property ignored
    • translate property ignored
    • road labels appear intermittently. in general, labels are very sparse
    • have not successfully used sprite
  3. incanus commented on Apr 23, 2014

    @incanus
    ContributorAuthor

    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.

  4. incanus commented on Apr 24, 2014

    @incanus
    ContributorAuthor

    POIs aren't coming through, either.

  5. added a commit that references this issue on Apr 24, 2014
  6. self-assigned this
    on Apr 24, 2014
  7. incanus commented on Apr 25, 2014

    @incanus
    ContributorAuthor

    @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).

  8. edenh commented on Apr 25, 2014

    @edenh
    Contributor

    @incanus sprite works. looking good 👍

  9. incanus commented on Apr 26, 2014

    @incanus
    ContributorAuthor

    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.

    screen shot 2014-04-25 at 6 18 16 pm

    (Translation building shadow, also.)

  10. incanus commented on Apr 28, 2014

    @incanus
    ContributorAuthor

    POIs are ok, I think. Bigger problem right now that I'm working on is country/admin/marine line features not showing up.

  11. incanus commented on Apr 28, 2014

    @incanus
    ContributorAuthor

    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.

  12. added this to the WWDC milestone on Apr 29, 2014
  13. incanus commented on Apr 30, 2014

    @incanus
    ContributorAuthor

    Argghhhh... finally solved.

    screen shot 2014-04-30 at 3 40 17 pm

    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 = 2 and maritime = 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 of bucket_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.

    xexw7ie

  14. added a commit that references this issue on Apr 30, 2014
  15. incanus commented on Apr 30, 2014

    @incanus
    ContributorAuthor

    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.

    @kkaefer thoughts on merging to master?

  16. springmeyer commented on Apr 30, 2014

    @springmeyer
    Contributor

    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.

  17. kkaefer commented on May 2, 2014

    @kkaefer
    Member

    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)

  18. added a commit that references this issue on May 2, 2014
  19. mikemorris commented on May 2, 2014

    @mikemorris
    Contributor

    Damn you static typing and strict comparisons!

  20. incanus commented on May 2, 2014

    @incanus
    ContributorAuthor

    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.

  21. added a commit that references this issue on May 2, 2014
  22. incanus commented on May 7, 2014

    @incanus
    ContributorAuthor

    Stylequest is now merged and OSM Bright is the default style in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GL JS parity

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions