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.

bundledStyleNames inconsistency #969

Closed

Description

@picciano

In MGLMapView.mm, the bundledStyleNames method returns an array of filename with the .json extension included. However, the useBundledStyleNamed:(NSString *)styleName expects a filename without the extension.

This makes getting a list of names, selecting one, and call useBundledStyleNamed: more difficult than it needs to be.

I would be happy to make the change, if provided with direction on either including or excluding the filename extension.

Activity

  1. picciano commented on Mar 10, 2015

    @picciano
    Author

    Related, but styles for iOS are being loaded from the .app "styles" directory, rather than the MapboxGL.bundle file. The file in MapboxGL.bundle do not appear to be used at all.

  2. added
    iOS
    on Mar 10, 2015
  3. added this to the milestone on Mar 10, 2015
  4. incanus commented on Mar 11, 2015

    @incanus
    Contributor

    Good call on both points. Re: your question, I think we should provide strings w/o the .json extension.

  5. picciano commented on Mar 11, 2015

    @picciano
    Author

    Here is a pull request that removes the file extensions from the bundledStyleNames method. https://github.com/mapbox/mapbox-gl-native/pull/980/files

  6. 1ec5 commented on Mar 12, 2015

    @1ec5
    Contributor

    Fixed in 28e2893 and 4c7939b.

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

    iOSrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions