summaryrefslogtreecommitdiff
path: root/platform/ios/src
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/src')
-rw-r--r--platform/ios/src/MGLAnnotationImage.h2
-rw-r--r--platform/ios/src/MGLAnnotationView.h4
-rw-r--r--platform/ios/src/MGLCalloutView.h2
-rw-r--r--platform/ios/src/MGLMapView.h39
-rw-r--r--platform/ios/src/MGLMapViewDelegate.h40
-rw-r--r--platform/ios/src/MGLMapboxEvents.m2
-rw-r--r--platform/ios/src/MGLUserLocation.h4
-rw-r--r--platform/ios/src/MGLUserLocationAnnotationView.h2
8 files changed, 50 insertions, 45 deletions
diff --git a/platform/ios/src/MGLAnnotationImage.h b/platform/ios/src/MGLAnnotationImage.h
index fd76a9b43a..10b13a58c3 100644
--- a/platform/ios/src/MGLAnnotationImage.h
+++ b/platform/ios/src/MGLAnnotationImage.h
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
by the map view.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/marker-image/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/marker-image/">
Mark a place on the map with an image</a> example to learn how use an image
as a marker using `MGLAnnotationImage`.
*/
diff --git a/platform/ios/src/MGLAnnotationView.h b/platform/ios/src/MGLAnnotationView.h
index 61fd22f1c2..afedeb7908 100644
--- a/platform/ios/src/MGLAnnotationView.h
+++ b/platform/ios/src/MGLAnnotationView.h
@@ -224,7 +224,7 @@ MGL_EXPORT
change is immediate.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-vie
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-vie
ws/">Annotation views</a> example to learn how to modify an
`MGLAnnotationView`'s behavior when it is selected.
*/
@@ -257,7 +257,7 @@ MGL_EXPORT
continue to completion.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/draggable-views
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/draggable-views
/">Draggable annotation views</a> to learn how to enable users to drag
`MGLAnnotationView` objects on your map.
*/
diff --git a/platform/ios/src/MGLCalloutView.h b/platform/ios/src/MGLCalloutView.h
index 7b2177fdd5..a5868ac102 100644
--- a/platform/ios/src/MGLCalloutView.h
+++ b/platform/ios/src/MGLCalloutView.h
@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
use the optional methods available in the `MGLCalloutViewDelegate` protocol.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/custom-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/custom-callout/">
Display custom views as callouts</a> example to learn how to customize an
`MGLCalloutView`.
*/
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 6e3380553d..cad35c81d8 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -53,7 +53,9 @@ typedef NS_ENUM(NSUInteger, MGLAnnotationVerticalAlignment) {
`MGLMapView.userTrackingMode`.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/user-tracking-mode/">Switch between user tracking modes</a> example to learn how to toggle modes and how each mode behaves.
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/user-tracking-mode/">
+ Switch between user tracking modes</a> example to learn how to toggle modes and
+ how each mode behaves.
*/
typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) {
/** The map does not follow the user location. */
@@ -156,7 +158,7 @@ FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const MGLResourceNotFoundException
ensuring that your use adheres to the relevant terms of use.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/simple-map-view/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/simple-map-view/">
Simple map view</a> example to learn how to initialize a basic `MGLMapView`.
*/
MGL_EXPORT IB_DESIGNABLE
@@ -185,13 +187,14 @@ MGL_EXPORT IB_DESIGNABLE
@return An initialized map view.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/custom-style/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/custom-style/">
Apply a style designed in Mapbox Studio</a> example to learn how to
- initialize an `MGLMapView` with a custom style. See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/raster-styles/">
- Appy a style designed in Mapbox Studio Classic</a> example to learn how to
- intialize an `MGLMapView` with a Studio Classic style _or_ a custom style
- JSON. See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/source-custom-vector/">
- Use third-party vector tiles</a> example to learn how to initialize an
+ initialize an `MGLMapView` with a custom style. See the
+ <a href="https://docs.mapbox.com/ios/maps/examples/raster-styles/"> Apply a
+ style designed in Mapbox Studio Classic</a> example to learn how to intialize
+ an `MGLMapView` with a Studio Classic style _or_ a custom style JSON. See the
+ <a href="https://docs.mapbox.com/ios/maps/examples/source-custom-vector/"> Use
+ third-party vector tiles</a> example to learn how to initialize an
`MGLMapView` with a third-party tile source.
*/
- (instancetype)initWithFrame:(CGRect)frame styleURL:(nullable NSURL *)styleURL;
@@ -248,7 +251,7 @@ MGL_EXPORT IB_DESIGNABLE
you want to introspect individual style attributes, use the `style` property.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/switch-styles/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/switch-styles/">
Switch between map styles</a> example to learn how to change the style of
a map at runtime.
*/
@@ -421,7 +424,7 @@ MGL_EXPORT IB_DESIGNABLE
`-setUserTrackingMode:animated:` method instead.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/user-location-annotation/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/user-location-annotation/">
Customize the user location annotation</a> to learn how to customize the
default user location annotation shown by `MGLUserTrackingMode`.
*/
@@ -918,7 +921,7 @@ MGL_EXPORT IB_DESIGNABLE
immediately.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/camera-animation/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/camera-animation/">
Camera animation</a> example to learn how to trigger an animation that
rotates around a central point.
*/
@@ -937,7 +940,7 @@ MGL_EXPORT IB_DESIGNABLE
is `0`, this parameter is ignored.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/camera-animation/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/camera-animation/">
Camera animation</a> example to learn how to create a timed animation that
rotates around a central point for a specific duration.
*/
@@ -1185,7 +1188,7 @@ MGL_EXPORT IB_DESIGNABLE
@return The geographic coordinate at the given point.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/point-conversion/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/point-conversion/">
Point conversion</a> example to learn how to convert a `CGPoint` to a map
coordinate.
*/
@@ -1204,7 +1207,7 @@ MGL_EXPORT IB_DESIGNABLE
corresponding to the given geographic coordinate.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/point-conversion/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/point-conversion/">
Point conversion</a> example to learn how to convert a map coordinate to a
`CGPoint` object.
*/
@@ -1281,8 +1284,8 @@ MGL_EXPORT IB_DESIGNABLE
annotation object.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-models/">
- Annotation models</a> and <a href="https://www.mapbox.com/ios-sdk/maps/examples/line-geojson/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-models/">
+ Annotation models</a> and <a href="https://docs.mapbox.com/ios/maps/examples/line-geojson/">
Add a line annotation from GeoJSON</a> examples to learn how to add an
annotation to an `MGLMapView` object.
*/
@@ -1352,7 +1355,7 @@ MGL_EXPORT IB_DESIGNABLE
such object exists in the reuse queue.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-view-image/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-view-image/">
Add annotation views and images</a> example learn how to most efficiently
reuse an `MGLAnnotationImage`.
*/
@@ -1517,7 +1520,7 @@ MGL_EXPORT IB_DESIGNABLE
represent features in the sources used by the current style.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/select-layer/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/select-layer/">
Select a feature within a layer</a> example to learn how to query an
`MGLMapView` object for visible `MGLFeature` objects.
*/
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h
index ffc460b995..e9f864f370 100644
--- a/platform/ios/src/MGLMapViewDelegate.h
+++ b/platform/ios/src/MGLMapViewDelegate.h
@@ -43,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
`oldCamera` or change to `newCamera`.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/constraining-gestures/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/constraining-gestures/">
Restrict map panning to an area</a> example to learn how to use this method
and `MGLMapCamera` objects to restrict a users ability to pan your map.
*/
@@ -116,7 +116,7 @@ NS_ASSUME_NONNULL_BEGIN
@param mapView The map view whose viewpoint is changing.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/clustering/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/clustering/">
Cluster point data</a> example to learn how to trigger an action whenever
the map region changes.
*/
@@ -268,8 +268,8 @@ NS_ASSUME_NONNULL_BEGIN
@param style The style that was loaded.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/runtime-multiple-annotations/">
- Dynamically style interactive points</a> and <a href="https://www.mapbox.com/ios-sdk/maps/examples/shape-collection/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/runtime-multiple-annotations/">
+ Dynamically style interactive points</a> and <a href="https://docs.mapbox.com/ios/maps/examples/shape-collection/">
Add multiple shapes from a single shape source</a> examples to learn how to
ensure a map's style has loaded before modifying it at runtime.
*/
@@ -374,9 +374,9 @@ NS_ASSUME_NONNULL_BEGIN
`nil` if you want to display the default marker image or an annotation view.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-models/">
- Annotation models</a>, <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-view-image/">
- Add annotation views and images</a>, and <a href="https://www.mapbox.com/ios-sdk/maps/examples/marker-image/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-models/">
+ Annotation models</a>, <a href="https://docs.mapbox.com/ios/maps/examples/annotation-view-image/">
+ Add annotation views and images</a>, and <a href="https://docs.mapbox.com/ios/maps/examples/marker-image/">
Mark a place on the map with an image</a> examples to learn to specify which
image should be used for `MGLAnnotation` objects that have been added to
your map.
@@ -414,7 +414,7 @@ NS_ASSUME_NONNULL_BEGIN
@return A color to use for the shape outline.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-models/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-models/">
Annotation models</a> example to learn how to modify the outline color of an
`MGLShape` object that has been added to your map as an annotation.
*/
@@ -434,7 +434,7 @@ NS_ASSUME_NONNULL_BEGIN
@return The polygon’s interior fill color.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/polygon/">Add
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/polygon/">Add
a polygon annotation</a> example to learn how to modify the color of a an
`MGLPolygon` at runtime.
*/
@@ -451,7 +451,7 @@ NS_ASSUME_NONNULL_BEGIN
@return A line width for the polyline, measured in points.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/line-geojson/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/line-geojson/">
Add a line annotation from GeoJSON</a> example to learn how to modify the
line width of an `MGLPolylineFeature` on your map.
*/
@@ -483,7 +483,7 @@ NS_ASSUME_NONNULL_BEGIN
want to display an annotation image instead.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-view-image/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-view-image/">
Add annotation views and images</a> example to learn how to specify what
`MGLViewAnnotation` to use for a given `MGLPointAnnotation` object on your
map.
@@ -530,7 +530,7 @@ NS_ASSUME_NONNULL_BEGIN
@param annotation The annotation that was selected.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/runtime-multiple-annotations/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/runtime-multiple-annotations/">
Dynamically style interactive points</a> example to learn how to remove an
annotation view if it has already been selected.
*/
@@ -609,9 +609,9 @@ NS_ASSUME_NONNULL_BEGIN
callout.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/annotation-view-image/">
- Add annotation views and images</a>, <a href="https://www.mapbox.com/ios-sdk/maps/examples/custom-callout/">
- Display custom views as callouts</a>, and <a href="https://www.mapbox.com/ios-sdk/maps/examples/default-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/annotation-view-image/">
+ Add annotation views and images</a>, <a href="https://docs.mapbox.com/ios/maps/examples/custom-callout/">
+ Display custom views as callouts</a>, and <a href="https://docs.mapbox.com/ios/maps/examples/default-callout/">
Default callout usage</a> examples to learn how to show callouts for
`MGLAnnotation` objects.
*/
@@ -633,7 +633,7 @@ NS_ASSUME_NONNULL_BEGIN
default callout view.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/custom-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/custom-callout/">
Display custom views as callouts</a> example to learn how to customize an
`MGLAnnotation` object's `MGLCalloutView`.
*/
@@ -664,7 +664,7 @@ NS_ASSUME_NONNULL_BEGIN
@return The accessory view to display.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/default-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/default-callout/">
Default callout usage</a> example to learn how to modify the view that is
displayed on the left side of the standard callout bubble.
*/
@@ -695,7 +695,7 @@ NS_ASSUME_NONNULL_BEGIN
@return The accessory view to display.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/default-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/default-callout/">
Default callout usage</a> example to learn how to modify the view that is
displayed on the right side of the standard callout bubble.
*/
@@ -725,7 +725,7 @@ NS_ASSUME_NONNULL_BEGIN
@param control The control that was tapped.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/default-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/default-callout/">
Default callout usage</a> example to learn how to trigger an action when the
standard callout bubble's accessory control is tapped.
*/
@@ -748,7 +748,7 @@ NS_ASSUME_NONNULL_BEGIN
@param annotation The annotation whose callout was tapped.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/custom-callout/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/custom-callout/">
Display custom views as callouts</a> example to learn how to trigger an
action when an `MGLAnnotation`s `MGLCalloutView` is tapped.
*/
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m
index e9f27b3446..0635f974e1 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -189,7 +189,7 @@ static NSString * const MGLVariableGeofence = @"VariableGeofence";
@"End users must be able to opt out of Mapbox Telemetry in your app, either inside Settings (via Settings.bundle) or inside this app. "
@"By default, this opt-out control is included as a menu item in the attribution action sheet. "
@"If you reimplement the opt-out control inside this app, disable this assertion by setting MGLMapboxMetricsEnabledSettingShownInApp to YES in Info.plist."
- @"\n\nSee https://www.mapbox.com/ios-sdk/#telemetry_opt_out for more information."
+ @"\n\nSee https://docs.mapbox.com/help/how-mapbox-works/attribution/#mapbox-maps-sdk-for-ios for more information."
@"\n\nAdditionally, by hiding this attribution control you agree to display the required attribution elsewhere in this app."];
}
}
diff --git a/platform/ios/src/MGLUserLocation.h b/platform/ios/src/MGLUserLocation.h
index de720d9050..d7c8576c47 100644
--- a/platform/ios/src/MGLUserLocation.h
+++ b/platform/ios/src/MGLUserLocation.h
@@ -13,7 +13,9 @@ NS_ASSUME_NONNULL_BEGIN
`userLocation` property of the map view displayed in your application.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/user-location-annotation/">Customize the user location annotation</a> example to learn how to overide the default user location annotation.
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/user-location-annotation/">
+ Customize the user location annotation</a> example to learn how to overide the
+ default user location annotation.
*/
MGL_EXPORT
@interface MGLUserLocation : NSObject <MGLAnnotation, NSSecureCoding>
diff --git a/platform/ios/src/MGLUserLocationAnnotationView.h b/platform/ios/src/MGLUserLocationAnnotationView.h
index 573fb9f95f..f5197b9f76 100644
--- a/platform/ios/src/MGLUserLocationAnnotationView.h
+++ b/platform/ios/src/MGLUserLocationAnnotationView.h
@@ -27,7 +27,7 @@ MGL_EXPORT
is inactive.
#### Related examples
- See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/user-location-annotation/">
+ See the <a href="https://docs.mapbox.com/ios/maps/examples/user-location-annotation/">
Customize the user location annotation</a> example to learn how to customize
the default user location annotation object.
*/