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

mapID → styleID #1561

Merged
merged 1 commit into from
May 21, 2015
Merged

mapID → styleID #1561

merged 1 commit into from
May 21, 2015

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented May 14, 2015

Renamed -mapID and -setMapID: to -styleID and -setStyleID:, respectively, to accurately reflect the APIs the ID is used for. Marked the property unavailable but reimplemented its getter and setter to assert with helpful messages. Even if no one has reason to use mapID in beta 1, a developer could have tried to put a raster map ID in the storyboard inspectable; if we remove the old property entirely, there’s no longer any UI to recover from that situation. The assertion I’ve implemented is the best way to communicate the rename in that case.

Fixes #1500.

/cc @willwhite @incanus

Deprecated `-mapID` and `-setMapID:` to accurately reflect the APIs the ID is used for. Marked the property unavailable but reimplemented its getter and setter to assert with helpful messages.

Fixes #1500.
@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS refactor in progress and removed in progress labels May 14, 2015
@1ec5 1ec5 added this to the iOS Beta 2 milestone May 17, 2015
@1ec5 1ec5 merged commit 00b2e13 into master May 21, 2015
1ec5 added a commit that referenced this pull request May 21, 2015
@1ec5 1ec5 removed the ready label May 21, 2015
@1ec5 1ec5 deleted the 1ec5-style-id-1500 branch May 21, 2015 22:29
@1ec5 1ec5 mentioned this pull request Jun 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename mapID to styleID
1 participant