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

Rename style spec properties - #7310

Merged
frederoni merged 2 commits into
release-ios-v3.4.0from
fred-rename-properties-6098
Dec 6, 2016
Merged

frederoni merged 2 commits into
release-ios-v3.4.0from
fred-rename-properties-6098

Conversation

@frederoni

Copy link
Copy Markdown
Contributor

Fixes #6098
Renamed a couple of more style spec properties.

  • line-dasharray => line-dash-pattern
  • icon-size => icon-scale

@frederoni frederoni added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Dec 6, 2016
@frederoni frederoni added this to the ios-v3.4.0 milestone Dec 6, 2016
@frederoni frederoni self-assigned this Dec 6, 2016
@mention-bot

Copy link
Copy Markdown

@frederoni, thanks for your PR! By analyzing this pull request, we identified @1ec5, @boundsj and @incanus to be potential reviewers.

Documentation for attributes whose names we’ve overridden now mention the original style specification property name, with a link to the style specification documentation for the property.

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Now MGLLineStyleLayer.lineDashPattern is clearly related to MKOverlayPathRenderer.lineDashPattern for those switching from MapKit.

To aid cross-platform developers and those who author styles in Studio, I’ve added a blurb to each renamed property that mentions the original name according to the style specification, with a link to the style specification documentation for good measure.

@frederoni
frederoni merged commit e6d51c3 into release-ios-v3.4.0 Dec 6, 2016
@frederoni
frederoni deleted the fred-rename-properties-6098 branch December 6, 2016 21:18
@boundsj boundsj mentioned this pull request Dec 7, 2016
6 tasks done
1ec5 added a commit that referenced this pull request Dec 7, 2016
@1ec5

1ec5 commented Dec 7, 2016

Copy link
Copy Markdown
Contributor

9f9422d fixes a compiler error in iosapp caused by a reference to iconSize. Unfortunately we don’t run iosapp on Bitrise to catch errors like this.

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

Labels

iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants