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

add simplestyle support #9

Closed
Closed

Description

@incanus

We should pull down simplestyle JSON for maps and auto-add their points as annotations to the map view.

Activity

  1. incanus commented on Oct 30, 2013

    @incanus
    ContributorAuthor
  2. added this to the 0.2.0 milestone on Feb 18, 2014
  3. incanus commented on Feb 24, 2014

    @incanus
    ContributorAuthor

    It seems to me that we should finalize the simplestyle issue here, then build Maki #5 atop it since that's the full realization of simplestyle.

    You've got some commits in for both @wsnook, but let's break it down and discuss each in turn.

    This ticket is for simplestyle, which is looking for and fetching the actual JSON code, parsing it, and adding points (and now other features) to the map view.

    Re: other features, I will leave this up to you @wsnook as to whether you want to rebuild to support that now, but a simple iterative way to approach this would be just doing points & ignoring everything else, then building other features later. When you originally tackled this, we didn't have the new features, so I realize my delay here is somewhat making more work for you.

    I think this ticket is handled, though, for points at least, with this commit: https://github.com/wsnook/mbxmapkit/commit/10572882a53d3675eb6c745f4d9c16a839610979

    So I see next steps as:

  4. incanus commented on Feb 24, 2014

    @incanus
    ContributorAuthor

    Thoughts/questions on this @wsnook:

  5. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    Said another way, I approached this problem as:
    Step 1: Implement the ability to fetch an arbitrary marker from the Core API
    Step 2: Use the ability to fetch markers to implement simplestyle parsing and rendering

    Well, I would do it like this:
    Step 1: Implement the ability to fetch simplestyle, parse its points, and add them as MKPointAnnotation, to start
    Step 2: Add Maki compatibility in #5
    Step 3: Change over simplestyle markers to Maki/Mapbox markers

  6. tmcw commented on Feb 25, 2014

    @tmcw
    Contributor
  7. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    That is, just iterate so that you have something working in master each step of the way, working on one ticket/feature at a time, and just iterate towards release.

    I agree with the goal of Mapbox.js parity, but it doesn't have to happen all at once and close both tickets together just because they work together.

    Hope that clarifies.

  8. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    Re: retina, see e.g.

    (path.contentScaleFactor > 1.0 ? @"@2x" : @""),
    for how we do this with tiles. I'd just put in a check for [[UIScreen mainScreen] scale] > 1.0, which is how we do it in the SDK.

  9. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    I was leaving #3 MBTiles for last since it's the most complex of these changes, it requires the most testing across both platforms, it introduces the idea of ifdef'd code due to the linking complications, and if necessary, could be left off of the release if it proves too complex as it is a "very nice to have" but not as core to our API as all the rest.

  10. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    I think simplestyle should come first, so we can nail our new take on networking code, retries, error handling, etc. Can you easily git cherry-pick from your combo branch maybe?

    It just seems to me that simplestyle < markers < MBTiles in complexity.

  11. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    Let's do non-point features later, too.

  12. incanus commented on Feb 25, 2014

    @incanus
    ContributorAuthor

    I'll give #44 a bump -- I don't have permission. We can use the Weekend Picks map referenced above for now.

  13. incanus commented on Feb 27, 2014

    @incanus
    ContributorAuthor

    Done with points per #50, closing in favor of future work on #53.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions