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.

Update API docs for for MBTiles (maybe) #41

Closed

Description

The MBTiles fix from #38 exposes MBXMapViewTileOverlay in the MBXMapKit.h header file, which is necessary for MBTiles support to work, and also very helpful for things like manually adjusting the value of an overlay layer's canReplaceMapContent. Presently this is ifdef'ed out, see https://github.com/wsnook/mbxmapkit/blob/dev-0.1.1/MBXMapKit.h#L183-L200, but it might be worth adding to the documentation.

For example, exposing overlay layers in the header file is what makes an easy solution to #7 possible. That problem came about because the current state of the header file is actually obscuring part of the MKMapKit api (direct access to MKTileOverlay objects).

Activity

  1. added this to the 0.2.0 milestone on Feb 19, 2014
  2. incanus commented on Feb 21, 2014

    @incanus
    Contributor

    If we ifdef the MBTiles solution and anything resulting from it, we should also ifdef the header documentation, otherwise we're going to get compile-time warnings with undefined methods anyway.

  3. incanus commented on Feb 21, 2014

    @incanus
    Contributor

    Sorry, to be clear: anything in the API should be documented, but if we are using ifdef for things, the docs should toggle similarly. This will get picked up by things like local runs of appledoc or the use of CocoaPods, which I think will require us to use subspecs for these various optional features.

  4. incanus commented on Feb 21, 2014

    @incanus
    Contributor

    My point was a little bit more along the lines of whether you want to remove the ifdef around MBXMapViewTileOverlay (i.e. de-couple it from the MBTiles stuff). That's necessary for #7 and anything else where ...

    Ok. We should probably either decide for/against that in the #3 MBTiles solution itself (on deck: #20) or break it into a separate issue ("expose MBXMapViewTileOverlay to public API because $reasons"), at which point we'd document it there. That lets us decide the merits of doing that change on its own terms and lets us iterate first on the MBTiles feature, then on a new API feature.

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