Skip to content

Commit a2fb1bb

Browse files
committed
Deploying to gh-pages from @ 52b8911 🚀
1 parent e4135da commit a2fb1bb

File tree

1,323 files changed

+1323
-1323
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,323 files changed

+1323
-1323
lines changed

ios/latest/data/documentation/maplibre-native-for-ios/actionjournalexample.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"schemaVersion":{"minor":3,"major":0,"patch":0},"seeAlsoSections":[{"identifiers":["doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted"],"anchor":"Essentials","generated":true,"title":"Essentials"}],"abstract":[{"text":"Simply add a marker to a map!","type":"text"}],"sections":[],"variants":[{"paths":["\/documentation\/maplibre-native-for-ios\/addmarkersymbolexample"],"traits":[{"interfaceLanguage":"occ"}]}],"metadata":{"title":"Add Marker","roleHeading":"Article","modules":[{"name":"MapLibre"}],"role":"article"},"identifier":{"url":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/AddMarkerSymbolExample","interfaceLanguage":"occ"},"primaryContentSections":[{"content":[{"name":"Note","style":"note","type":"aside","content":[{"inlineContent":[{"text":"This example uses UIKit.","type":"text"}],"type":"paragraph"}]},{"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"}],"kind":"content"}],"hierarchy":{"paths":[["doc:\/\/org.swift.MyProject\/documentation\/MapLibre"]]},"kind":"article","references":{"doc://org.swift.MyProject/documentation/MapLibre-Native-for-iOS/GettingStarted":{"url":"\/documentation\/maplibre-native-for-ios\/gettingstarted","type":"topic","abstract":[{"type":"text","text":"Setting up an Xcode project that uses MapLibre Native for iOS."}],"title":"Getting Started","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted","role":"article","kind":"article"},"doc://org.swift.MyProject/documentation/MapLibre":{"kind":"symbol","title":"MapLibre","url":"\/documentation\/maplibre","type":"topic","role":"collection","abstract":[{"text":"Powerful, free and open-source mapping toolkit with full control over data sources and styling.","type":"text"}],"identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre"}}}
1+
{"hierarchy":{"paths":[["doc:\/\/org.swift.MyProject\/documentation\/MapLibre"]]},"sections":[],"seeAlsoSections":[{"anchor":"Essentials","identifiers":["doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted"],"title":"Essentials","generated":true}],"identifier":{"url":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/AddMarkerSymbolExample","interfaceLanguage":"occ"},"kind":"article","primaryContentSections":[{"kind":"content","content":[{"style":"note","type":"aside","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"This example uses UIKit."}]}],"name":"Note"},{"syntax":"swift","type":"codeListing","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)"," }","}"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"variants":[{"traits":[{"interfaceLanguage":"occ"}],"paths":["\/documentation\/maplibre-native-for-ios\/addmarkersymbolexample"]}],"abstract":[{"type":"text","text":"Simply add a marker to a map!"}],"metadata":{"roleHeading":"Article","role":"article","modules":[{"name":"MapLibre"}],"title":"Add Marker"},"references":{"doc://org.swift.MyProject/documentation/MapLibre":{"title":"MapLibre","role":"collection","type":"topic","kind":"symbol","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre","url":"\/documentation\/maplibre","abstract":[{"text":"Powerful, free and open-source mapping toolkit with full control over data sources and styling.","type":"text"}]},"doc://org.swift.MyProject/documentation/MapLibre-Native-for-iOS/GettingStarted":{"title":"Getting Started","type":"topic","identifier":"doc:\/\/org.swift.MyProject\/documentation\/MapLibre-Native-for-iOS\/GettingStarted","url":"\/documentation\/maplibre-native-for-ios\/gettingstarted","role":"article","kind":"article","abstract":[{"type":"text","text":"Setting up an Xcode project that uses MapLibre Native for iOS."}]}}}

0 commit comments

Comments
 (0)