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

Static map snapshots with overlays in Swift or Objective-C on iOS, macOS, tvOS, and watchOS

Results 15 MapboxStatic.swift issues
Sort by recently updated
recently updated
newest added

Turf provides full strongly-typed support for GeoJSON, including conveniences like Codable conformance. The Overlay class should have convenience initializers for these types and vice versa. These conveniences would require pulling...

enhancement
breaking change

Like MKMapSnapshotter, it would be great to have a way to get a CGPoint in the image that corresponds to a specified GPS coordinate. https://developer.apple.com/documentation/mapkit/mkmapsnapshotter/snapshot/1452523-point

What is wrong with my Overlay? Here is example url I attach to my CustomOverlay: http://texttopng.azurewebsites.net/Home/TextToPng?text=48 And here is related stack overflow question: https://stackoverflow.com/questions/59718486/marker-overlays-must-be-png-jpg-or-webp-while-using-mapboxstatic-api It worked before, now it stopped...

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...

enhancement

The `Snapshot` class has an Objective-C name of MBSnapshot, which conflicts with an identically named class in the private MobileBackup framework: https://github.com/mapbox/MapboxStatic.swift/blob/172af20c470da5272c16252ed7685e4658bf5597/MapboxStatic/Snapshot.swift#L77-L78 The following message appeared at launch in a...

bug
objective-c

dyld: Library not loaded: @rpath/Polyline.framework/Polyline Referenced from: /Users/ouken/Library/Developer/Xcode/DerivedData/MapboxStatic-gdnazulaqdncxsdhkvisjiiehynv/Build/Products/Debug-iphonesimulator/MapboxStatic.framework/MapboxStatic Reason: image not found

build

The `SnapshotOptions(styleURL:, camera:, size:)` takes a style parameter which we need to specify a URL for. It would be nice if an enum could be created so we can specify...

If no `host` is passed into `Snapshot(options:accessToken:host:)`, the fallback hostname should be either api.mapbox.com or api.mapbox.cn depending on the value of `MGLMapboxAPIBaseURL` in Info.plist: https://github.com/mapbox/MapboxStatic.swift/blob/32a32ef03b0094e98dcd07ad673125db4e0eb62c/MapboxStatic/Snapshot.swift#L114 This would be consistent with...

enhancement

Hi, is there a limit to coordinates array length to build a path overlay? I need to draw about 3000 `CLLocationCoordinate2D` on the map, but i'm getting `MBStaticErrorDomain" - code:...

Mapbox Static `v0.13.0` that contains https://github.com/mapbox/MapboxStatic.swift/pull/118.