fix misspelling
GoogleStaticMapsKit provides a full, lightweight swift API for dealing with Google Static Maps API.
// Setting up the API Key (probably in AppDelegate) GoogleStaticMaps.setAPIKey(apiKey: "your_api_key") let parameters = Parameters(size: ImageSize(width: 600, height: 400)) let location = Location(center: .geo(latitude: 45.7772, longitude: 3.0870), zoom: .city) let gsm = GoogleStaticMaps(location: location, parameters: parameters) let url = gsm.toURL print("Result : \(url)")
GoogleStaticMapKit was designed to support JSON Style like SnazzyMaps
[...] let path = jsonFilePath let styles = StylesImporter.fromJson(path: path).styles let feature = Feature(styles: styles) let gsm = GoogleStaticMaps(location: location, parameters: parameters, feature: feature)
For more information about Google Maps Style you can look on the official Google Documentation
GoogleStaticMapsKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks! pod "GoogleStaticMapsKit"
github 'PoissonBallon/GoogleStaticMapsKit'
let package = Package( name: "MyPackage", dependencies: [ .Package(url: "https://github.com/PoissonBallon/GoogleStaticMapsKit", majorVersion: 1), ] )
GoogleStaticMapsKit is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
GoogleStaticMapsKit
GoogleStaticMapsKit provides a full, lightweight swift API for dealing with Google Static Maps API.
Preview
Zoom
Zoom : .world
Zoom : .continent
Zoom : .city
Zoom : .street
Zoom : .building
Style
Style : [Retro]
Style : [Assassin's Creed IV]
Style : [Lost in the desert]
Style : [WY]
Getting Started
Example
Style
GoogleStaticMapKit was designed to support JSON Style like SnazzyMaps
For more information about Google Maps Style you can look on the official Google Documentation
Support
Installation
GoogleStaticMapsKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
CocoaPods
Carthage
Swift Package Manager
Author
License
GoogleStaticMapsKit is available under the MIT license. See the LICENSE file for more info.