Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
[ios] Fix links in documentation
Browse files Browse the repository at this point in the history
[ios] Update to docs.mapbox.com

Update links
  • Loading branch information
captainbarbosa committed Jan 23, 2019
1 parent 24b4ddf commit 332c1ac
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 61 deletions.
26 changes: 13 additions & 13 deletions platform/darwin/scripts/style-spec-overrides-v8.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platform/darwin/src/MGLAccountManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MGL_EXPORT

/**
The
<a href="https://www.mapbox.com/help/define-access-token/">Mapbox access token</a>
<a href="https://docs.mapbox.com/help/glossary/access-token/">Mapbox access token</a>
used by all instances of `MGLMapView` in the current application.
Mapbox-hosted vector tiles and styles require an API access token, which you
Expand Down
8 changes: 4 additions & 4 deletions platform/darwin/src/MGLCircleStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ typedef NS_ENUM(NSUInteger, MGLCircleTranslationAnchor) {
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/dds-circle-layer/">Data-driven
href="https://docs.mapbox.com/ios/maps/examples/dds-circle-layer/">Data-driven
circles</a>, <a
href="https://www.mapbox.com/ios-sdk/maps/examples/shape-collection/">Add
multiple shapes from a single shape source</a>, and <a
href="https://www.mapbox.com/ios-sdk/maps/examples/clustering/">Cluster point
href="https://docs.mapbox.com/ios/maps/examples/shape-collection/">Add multiple
shapes from a single shape source</a>, and <a
href="https://docs.mapbox.com/ios/maps/examples/clustering/">Cluster point
data</a> examples to learn how to add circles to your map using this style
layer.
Expand Down
5 changes: 2 additions & 3 deletions platform/darwin/src/MGLFillExtrusionStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ typedef NS_ENUM(NSUInteger, MGLFillExtrusionTranslationAnchor) {
`-[MGLStyle addLayer:]`.
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/extrusions/">Display 3D
buildings</a> example to learn how to add and style 3D layers on a map.
See the <a href="https://docs.mapbox.com/ios/maps/examples/extrusions/">Display
3D buildings</a> example to learn how to add and style 3D layers on a map.
### Example
Expand Down
10 changes: 5 additions & 5 deletions platform/darwin/src/MGLFillStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ typedef NS_ENUM(NSUInteger, MGLFillTranslationAnchor) {
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/select-layer/">Select a
feature within a layer</a> example to learn how to use a `TERNARY` expression
to modify the `fillOpacity` of an `MGLFillStyleLayer` object. See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/fill-pattern/">Add a pattern
to a polygon</a> example to learn how to use an image to add pattern to the
href="https://docs.mapbox.com/ios/maps/examples/select-layer/">Select a feature
within a layer</a> example to learn how to use a `TERNARY` expression to modify
the `fillOpacity` of an `MGLFillStyleLayer` object. See the <a
href="https://docs.mapbox.com/ios/maps/examples/fill-pattern/">Add a pattern to
a polygon</a> example to learn how to use an image to add pattern to the
features styled by a `MGLFillStyleLayer`.
### Example
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/src/MGLHeatmapStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/heatmap-example/">Create a
href="https://docs.mapbox.com/ios/maps/examples/heatmap-example/">Create a
heatmap layer</a> example to learn how to add this style layer to your map.
### Example
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/src/MGLHillshadeStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef NS_ENUM(NSUInteger, MGLHillshadeIlluminationAnchor) {
Use a hillshade style layer to configure the color parameters of raster tiles
loaded by an `MGLRasterDEMSource` object. For example, you could use a
hillshade style layer to render <a
href="https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb">Mapbox
href="https://docs.mapbox.com/help/troubleshooting/access-elevation-data/#mapbox-terrain-rgb">Mapbox
Terrain-RGB</a> data.
To display posterized hillshading based on vector shapes, as with the <a
Expand Down
8 changes: 4 additions & 4 deletions platform/darwin/src/MGLLight.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ NS_INLINE MGLSphericalPosition MGLSphericalPositionMake(CGFloat radial, CLLocati
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/light-example/">Adjust light
of 3D buildings</a> to learn how to create and modify the light source for 3D
href="https://docs.mapbox.com/ios/maps/examples/light-example/">Adjust light of
3D buildings</a> to learn how to create and modify the light source for 3D
geometries.
*/
MGL_EXPORT
Expand Down Expand Up @@ -128,8 +128,8 @@ MGL_EXPORT
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/light-example/">Adjust light
of 3D buildings</a> example to learn how to create and modify the position of
href="https://docs.mapbox.com/ios/maps/examples/light-example/">Adjust light of
3D buildings</a> example to learn how to create and modify the position of
value of an `MGLLight` object for 3D geometries.
*/
@property (nonatomic) NSExpression *position;
Expand Down
12 changes: 6 additions & 6 deletions platform/darwin/src/MGLLineStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ typedef NS_ENUM(NSUInteger, MGLLineTranslationAnchor) {
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/shape-collection/">Add
multiple shapes from a single shape source</a> example to learn how to add a
line to your map using this style layer. See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/runtime-add-line/">Add a
line style layer from GeoJSON</a> example to learn how to add and style line
data to an `MGLMapView` object at runtime.
href="https://docs.mapbox.com/ios/maps/examples/shape-collection/">Add multiple
shapes from a single shape source</a> example to learn how to add a line to
your map using this style layer. See the <a
href="https://docs.mapbox.com/ios/maps/examples/runtime-add-line/">Add a line
style layer from GeoJSON</a> example to learn how to add and style line data to
an `MGLMapView` object at runtime.
### Example
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/src/MGLRasterDEMSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionDEMEnc
`-[MGLStyle addSource:]` and `-[MGLStyle sourceWithIdentifier:]`.
Currently, raster DEM sources only support the format used by
<a href="https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb">Mapbox Terrain-RGB</a>.
<a href="https://docs.mapbox.com/help/troubleshooting/access-elevation-data/#mapbox-terrain-rgb">Mapbox Terrain-RGB</a>.
### Example
Expand Down
11 changes: 5 additions & 6 deletions platform/darwin/src/MGLRasterStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ typedef NS_ENUM(NSUInteger, MGLRasterResamplingMode) {
`MGLImageSource` object. For example, you could use a raster style layer to
render <a href="https://www.mapbox.com/satellite/">Mapbox Satellite</a>
imagery, a <a
href="https://www.mapbox.com/help/define-tileset/#raster-tilesets">raster tile
set</a> uploaded to Mapbox Studio, or a raster map authored in <a
href="https://docs.mapbox.com/help/glossary/tileset/#raster-tilesets">raster
tile set</a> uploaded to Mapbox Studio, or a raster map authored in <a
href="https://tilemill-project.github.io/tilemill/">TileMill</a>, the classic
Mapbox Editor, or Mapbox Studio Classic.
Expand All @@ -53,10 +53,9 @@ typedef NS_ENUM(NSUInteger, MGLRasterResamplingMode) {
`-[MGLStyle addLayer:]`.
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/image-source/">Add an
image</a> and <a
href="https://www.mapbox.com/ios-sdk/maps/examples/source-custom-raster/">Add
See the <a href="https://docs.mapbox.com/ios/maps/examples/image-source/">Add
an image</a> and <a
href="https://docs.mapbox.com/ios/maps/examples/source-custom-raster/">Add
raster imagery</a> examples to learn how to add imagery with this style layer.
### Example
Expand Down
13 changes: 6 additions & 7 deletions platform/darwin/src/MGLSymbolStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ typedef NS_ENUM(NSUInteger, MGLTextTranslationAnchor) {
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/runtime-multiple-annotations/">Dynamically
href="https://docs.mapbox.com/ios/maps/examples/runtime-multiple-annotations/">Dynamically
style interactive points</a> and <a
href="https://www.mapbox.com/ios-sdk/maps/examples/clustering-with-images/">Use
href="https://docs.mapbox.com/ios/maps/examples/clustering-with-images/">Use
images to cluster point data</a> examples learn how to style data on your map
using this layer.
Expand Down Expand Up @@ -520,7 +520,7 @@ MGL_EXPORT
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/clustering-with-images/">Use
href="https://docs.mapbox.com/ios/maps/examples/clustering-with-images/">Use
images to cluster point data</a> example to learn how to dynamically set your
icons with an expression.
*/
Expand Down Expand Up @@ -1089,10 +1089,9 @@ MGL_EXPORT
feature attributes
#### Related examples
See the <a
href="https://www.mapbox.com/ios-sdk/maps/examples/clustering/">Cluster point
data</a> and <a
href="https://www.mapbox.com/ios-sdk/maps/examples/clustering-with-images/">Use
See the <a href="https://docs.mapbox.com/ios/maps/examples/clustering/">Cluster
point data</a> and <a
href="https://docs.mapbox.com/ios/maps/examples/clustering-with-images/">Use
images to cluster point data</a> to learn how to use an expression to set this
attribute to the number of markers within a cluster.
*/
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/src/MGLTileSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ typedef NS_ENUM(NSUInteger, MGLTileCoordinateSystem) {
typedef NS_ENUM(NSUInteger, MGLDEMEncoding) {

/**
Raster tiles generated with the [Mapbox encoding formula](https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb).
Raster tiles generated with the [Mapbox encoding formula](https://docs.mapbox.com/help/troubleshooting/access-elevation-data/#mapbox-terrain-rgb).
*/
MGLDEMEncodingMapbox = 0,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ - (MGLCircleStyleLayer*)setupCircleStyleLayer {
// Adapted from https://www.mapbox.com/ios-sdk/examples/dds-circle-layer/

// "mapbox://examples.2uf7qges" is a map ID referencing a tileset. For more
// more information, see mapbox.com/help/define-map-id/
// more information, see docs.mapbox.com/help/glossary/map-id/
MGLSource *source = [[MGLVectorTileSource alloc] initWithIdentifier:@"trees" configurationURL:[NSURL URLWithString:@"mapbox://examples.2uf7qges"]];
[self.mapView.style addSource:source];

Expand Down
2 changes: 1 addition & 1 deletion platform/ios/docs/guides/Info.plist Keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The default value is `https://api.mapbox.com`.

## MGLMapboxMetricsEnabledSettingShownInApp

If you have implemented custom opt-out of Mapbox Telemetry within the user interface of your app, use this key to disable the built-in check for opt-out support. See [this guide](https://www.mapbox.com/ios-sdk/#telemetry_opt_out) for more details.
If you have implemented custom opt-out of Mapbox Telemetry within the user interface of your app, use this key to disable the built-in check for opt-out support. See [this guide](https://docs.mapbox.com/help/how-mapbox-works/attribution/#mapbox-maps-sdk-for-ios) for more details.

## MGLIdeographicFontFamilyName

Expand Down
8 changes: 4 additions & 4 deletions platform/ios/src/MGLMapView.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ MGL_EXPORT IB_DESIGNABLE
@note The Mapbox terms of service, which governs the use of Mapbox-hosted
vector tiles and styles,
<a href="https://www.mapbox.com/help/mapbox-logo/">requires</a> most Mapbox
<a href="https://docs.mapbox.com/help/how-mapbox-works/attribution/">requires</a> most Mapbox
customers to display the Mapbox logo. If this applies to you, do not
hide this view or change its contents.
*/
Expand All @@ -309,18 +309,18 @@ MGL_EXPORT IB_DESIGNABLE
@note The Mapbox terms of service, which governs the use of Mapbox-hosted
vector tiles and styles,
<a href="https://www.mapbox.com/help/attribution/">requires</a> these
<a href="https://www.mapbox.com/tos/#[FamaFama]">requires</a> these
copyright notices to accompany any map that features Mapbox-designed styles,
OpenStreetMap data, or other Mapbox data such as satellite or terrain
data. If that applies to this map view, do not hide this view or remove
any notices from it.
@note You are additionally
<a href="https://www.mapbox.com/help/telemetry-opt-out-for-users/">required</a>
<a href="https://www.mapbox.com/tos/#[FamaFama]">required</a>
to provide users with the option to disable anonymous usage and location
sharing (telemetry). If this view is hidden, you must implement this
setting elsewhere in your app or via `Settings.bundle`. See our
<a href="https://www.mapbox.com/ios-sdk/#telemetry_opt_out">website</a> for
<a href="https://docs.mapbox.com/help/how-mapbox-works/attribution/#mapbox-maps-sdk-for-ios">website</a> for
implementation help.
*/
@property (nonatomic, readonly) UIButton *attributionButton;
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6449,7 +6449,7 @@ - (void)prepareForInterfaceBuilder

// Link
UIButton *linkButton = [UIButton buttonWithType:UIButtonTypeSystem];
[linkButton setTitle:NSLocalizedStringWithDefaultValue(@"FIRST_STEPS_URL", nil, nil, @"mapbox.com/help/first-steps-ios-sdk", @"Setup documentation URL display string; keep as short as possible") forState:UIControlStateNormal];
[linkButton setTitle:NSLocalizedStringWithDefaultValue(@"FIRST_STEPS_URL", nil, nil, @"docs.mapbox.com/help/tutorials/first-steps-ios-sdk", @"Setup documentation URL display string; keep as short as possible") forState:UIControlStateNormal];
linkButton.translatesAutoresizingMaskIntoConstraints = NO;
linkButton.titleLabel.numberOfLines = 0;
[linkButton setContentCompressionResistancePriority:UILayoutPriorityDefaultLow
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/src/MGLSDKUpdateChecker.mm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ + (void)checkForUpdates {
return;
}

NSURL *url = [NSURL URLWithString:@"https://www.mapbox.com/ios-sdk/latest_version"];
NSURL *url = [NSURL URLWithString:@"https://docs.mapbox.com/ios/maps/latest_version.txt"];
[[NSURLSession.sharedSession dataTaskWithURL:url completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error || ((NSHTTPURLResponse *)response).statusCode != 200) {
return;
Expand Down

0 comments on commit 332c1ac

Please sign in to comment.