Skip to content

Commit 24c995c

Browse files
committed
Deploying to gh-pages from @ e7f66f9 🚀
1 parent 9ce7cbc commit 24c995c

File tree

1,193 files changed

+1193
-1193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,193 files changed

+1193
-1193
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"schemaVersion":{"patch":0,"minor":3,"major":0},"primaryContentSections":[{"kind":"content","content":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"This example uses UIKit."}]}],"type":"aside","style":"note","name":"Note"},{"type":"codeListing","syntax":"swift","code":["class AddMarkerSymbolExampleUIKit: UIViewController, MLNMapViewDelegate {"," override func viewDidLoad() {"," super.viewDidLoad()",""," let mapView = MLNMapView(frame: view.bounds)"," mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]"," mapView.delegate = self",""," \/\/ Set the map’s center coordinate and zoom level."," mapView.setCenter(CLLocationCoordinate2D(latitude: 41.8864, longitude: -87.7135), zoomLevel: 13, animated: false)"," view.addSubview(mapView)"," }",""," func mapView(_ mapView: MLNMapView, didFinishLoading style: MLNStyle) {"," \/\/ Create point to represent where the symbol should be placed"," let point = MLNPointAnnotation()"," point.coordinate = mapView.centerCoordinate",""," \/\/ Create a data source to hold the point data"," let shapeSource = MLNShapeSource(identifier: \"marker-source\", shape: point, options: nil)",""," \/\/ Create a style layer for the symbol"," let shapeLayer = MLNSymbolStyleLayer(identifier: \"marker-style\", source: shapeSource)",""," \/\/ Add the image to the style's sprite"," if let image = UIImage(named: \"house-icon\") {"," style.setImage(image, forName: \"home-symbol\")"," }",""," \/\/ Tell the layer to use the image in the sprite"," shapeLayer.iconImageName = NSExpression(forConstantValue: \"home-symbol\")",""," \/\/ Add the source and style layer to the map"," style.addSource(shapeSource)"," style.addLayer(shapeLayer)"," }","}"]}]}],"sections":[],"metadata":{"role":"article","title":"Add Marker","roleHeading":"Article","modules":[{"name":"MapLibre"}]},"abstract":[{"text":"Simply add a marker to a map!","type":"text"}],"identifier":{"interfaceLanguage":"occ","url":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/AddMarkerSymbolExample"},"kind":"article","seeAlsoSections":[{"title":"Essentials","identifiers":["doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted"],"generated":true}],"variants":[{"paths":["\/documentation\/maplibre-native-for-ios\/addmarkersymbolexample"],"traits":[{"interfaceLanguage":"occ"}]}],"hierarchy":{"paths":[["doc:\/\/org.swift.MyProject\/documentation\/MapLibre"]]},"references":{"doc://org.swift.MyProject/documentation/MapLibre":{"type":"topic","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre","kind":"symbol","url":"\/documentation\/maplibre","abstract":[{"type":"text","text":"Powerful, free and open-source mapping toolkit with full control over data sources and styling."}],"title":"MapLibre","role":"collection"},"doc://org.swift.MyProject/documentation/MapLibre-Native-for-iOS/GettingStarted":{"title":"Getting Started","url":"\/documentation\/maplibre-native-for-ios\/gettingstarted","abstract":[{"type":"text","text":"Setting up an Xcode project that uses MapLibre Native for iOS."}],"role":"article","kind":"article","type":"topic","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted"}}}
1+
{"hierarchy":{"paths":[["doc:\/\/org.swift.MyProject\/documentation\/MapLibre"]]},"primaryContentSections":[{"kind":"content","content":[{"style":"note","name":"Note","type":"aside","content":[{"type":"paragraph","inlineContent":[{"text":"This example uses UIKit.","type":"text"}]}]},{"code":["class AddMarkerSymbolExampleUIKit: UIViewController, MLNMapViewDelegate {"," override func viewDidLoad() {"," super.viewDidLoad()",""," let mapView = MLNMapView(frame: view.bounds)"," mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]"," mapView.delegate = self",""," \/\/ Set the map’s center coordinate and zoom level."," mapView.setCenter(CLLocationCoordinate2D(latitude: 41.8864, longitude: -87.7135), zoomLevel: 13, animated: false)"," view.addSubview(mapView)"," }",""," func mapView(_ mapView: MLNMapView, didFinishLoading style: MLNStyle) {"," \/\/ Create point to represent where the symbol should be placed"," let point = MLNPointAnnotation()"," point.coordinate = mapView.centerCoordinate",""," \/\/ Create a data source to hold the point data"," let shapeSource = MLNShapeSource(identifier: \"marker-source\", shape: point, options: nil)",""," \/\/ Create a style layer for the symbol"," let shapeLayer = MLNSymbolStyleLayer(identifier: \"marker-style\", source: shapeSource)",""," \/\/ Add the image to the style's sprite"," if let image = UIImage(named: \"house-icon\") {"," style.setImage(image, forName: \"home-symbol\")"," }",""," \/\/ Tell the layer to use the image in the sprite"," shapeLayer.iconImageName = NSExpression(forConstantValue: \"home-symbol\")",""," \/\/ Add the source and style layer to the map"," style.addSource(shapeSource)"," style.addLayer(shapeLayer)"," }","}"],"type":"codeListing","syntax":"swift"}]}],"sections":[],"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"text":"Simply add a marker to a map!","type":"text"}],"kind":"article","variants":[{"traits":[{"interfaceLanguage":"occ"}],"paths":["\/documentation\/maplibre-native-for-ios\/addmarkersymbolexample"]}],"metadata":{"title":"Add Marker","role":"article","modules":[{"name":"MapLibre"}],"roleHeading":"Article"},"identifier":{"interfaceLanguage":"occ","url":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/AddMarkerSymbolExample"},"seeAlsoSections":[{"title":"Essentials","generated":true,"identifiers":["doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted"]}],"references":{"doc://org.swift.MyProject/documentation/MapLibre":{"abstract":[{"type":"text","text":"Powerful, free and open-source mapping toolkit with full control over data sources and styling."}],"url":"\/documentation\/maplibre","kind":"symbol","role":"collection","type":"topic","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre","title":"MapLibre"},"doc://org.swift.MyProject/documentation/MapLibre-Native-for-iOS/GettingStarted":{"role":"article","kind":"article","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted","title":"Getting Started","type":"topic","abstract":[{"type":"text","text":"Setting up an Xcode project that uses MapLibre Native for iOS."}],"url":"\/documentation\/maplibre-native-for-ios\/gettingstarted"}}}

0 commit comments

Comments
 (0)