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

MGLGeoJSONSource should have a constructor without options: #6639

Closed
rmnblm opened this issue Oct 10, 2016 · 1 comment
Closed

MGLGeoJSONSource should have a constructor without options: #6639

rmnblm opened this issue Oct 10, 2016 · 1 comment
Labels
iOS Mapbox Maps SDK for iOS runtime styling

Comments

@rmnblm
Copy link

rmnblm commented Oct 10, 2016

Is there a reason that MGLGeoJSONSource hasn't a constructor without options:?
Because I often find my self using the constructor without the need of providing options.

MGLGeoJSONSource(identifier: "destinations", url: geoJSONURL, options: nil)
@tobrun tobrun added iOS Mapbox Maps SDK for iOS runtime styling labels Oct 10, 2016
@boundsj
Copy link
Contributor

boundsj commented Oct 13, 2016

Hi @rmnblm. MGLGeoJSONSource lost its option-less initializers in #6588. It will gain another initializer in #6302. We currently don't plan to add an option-less version of each designated initializer.

Happily, in Swift, you can mitigate this in your app by extending MGLGeoJSONSource and adding a convenience initializer to wrap MGLGeoJSONSource(identifier:URL:options:).

@boundsj boundsj closed this as completed Oct 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS runtime styling
Projects
None yet
Development

No branches or pull requests

3 participants