This open-source library contains classes that are useful for a wide range of applications using the Google Maps SDK for iOS.
<img width=“80%" vspace=“10" src="https://cloud.githubusercontent.com/assets/16808355/16646253/77feeb96-446c-11e6-9ec1-19e12a7fb3ae.png">
In your Podfile
:
use_frameworks!
target 'TARGET_NAME' do
pod 'Google-Maps-iOS-Utils', '~> 3.1.1'
end
Replace TARGET_NAME
and then, in the Podfile
directory, type:
$ pod install
Coming soon! See #249.
e.g. Displaying KML data
import GoogleMapsUtils
func renderKml() {
// Parse KML
let path: String = // Path to your KML file...
let kmlUrl = URL(fileURLWithPath: path)
let kmlParser = GMUKmlParser(url: kmlUrl)
kmlParser.parse()
// Render parsed KML
let renderer = GMUGeometryRenderer(
map: mapView,
geometries: kmlParser.placemarks,
styles: kmlParser.styles,
styleMaps: kmlParser.styleMaps
)
renderer.render()
}
You can see more example usages in our sample projects.
Encounter an issue while using this library?
If you find a bug or have a feature request, please file an issue. Or, if you’d like to contribute, please refer to our contributing guide and our code of conduct.
You can also reach us on our Discord channel.
For more information, check out the detailed guide on the Google Developers site.