MapboxStatic.swift icon indicating copy to clipboard operation
MapboxStatic.swift copied to clipboard

add support for static image style parameters

Open riastrad opened this issue 6 years ago • 1 comments

The Static Image API now allows clients to pass certain style parameters with static image requests. More context can be found on the public documentation pages: https://docs.mapbox.com/api/maps/#style-parameters.

Although this feature is currently in beta, it might be worthwhile to get a head start on adding support for these parameters to this library.

riastrad avatar Oct 01 '19 15:10 riastrad

The new style parameters require passing in a JSON blob, which is quite awkward to construct and manage in Swift. I think this library should provide a convenience function that generates the JSON blob via strongly typed properties. Perhaps we could adapt this map SDK script to generate the necessary API in this library.

1ec5 avatar Dec 18 '19 17:12 1ec5