Use maplibre docs for more links (#354)
This commit is contained in:
@@ -26,7 +26,7 @@ import com.mapbox.mapboxsdk.utils.BitmapUtils;
|
||||
* Test activity showing how to use a series of images to create an animation
|
||||
* with an ImageSource
|
||||
* <p>
|
||||
* GL-native equivalent of https://www.mapbox.com/mapbox-gl-js/example/animate-images/
|
||||
* GL-native equivalent of https://maplibre.org/maplibre-gl-js-docs/example/animate-images/
|
||||
* </p>
|
||||
*/
|
||||
public class AnimatedImageSourceActivity extends AppCompatActivity implements OnMapReadyCallback {
|
||||
|
||||
@@ -42,7 +42,7 @@ import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.heatmapWeight;
|
||||
*/
|
||||
public class HeatmapLayerActivity extends AppCompatActivity {
|
||||
|
||||
private static final String EARTHQUAKE_SOURCE_URL = "https://www.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson";
|
||||
private static final String EARTHQUAKE_SOURCE_URL = "https://maplibre.org/maplibre-gl-js-docs/assets/earthquakes.geojson";
|
||||
private static final String EARTHQUAKE_SOURCE_ID = "earthquakes";
|
||||
private static final String HEATMAP_LAYER_ID = "earthquakes-heat";
|
||||
private static final String HEATMAP_LAYER_SOURCE = "earthquakes";
|
||||
|
||||
@@ -24,7 +24,7 @@ import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.iconImage;
|
||||
/**
|
||||
* Test activity showcasing using realtime GeoJSON to move a symbol on your map
|
||||
* <p>
|
||||
* GL-native equivalent of https://www.mapbox.com/mapbox-gl-js/example/live-geojson/
|
||||
* GL-native equivalent of https://maplibre.org/maplibre-gl-js-docs/example/live-geojson/
|
||||
* </p>
|
||||
*/
|
||||
public class RealTimeGeoJsonActivity extends AppCompatActivity implements OnMapReadyCallback {
|
||||
|
||||
@@ -38,7 +38,7 @@ MGL_EXPORT
|
||||
bottomLeft: CLLocationCoordinate2D(latitude: 37.936, longitude: -80.425),
|
||||
bottomRight: CLLocationCoordinate2D(latitude: 37.936, longitude: -71.516),
|
||||
topRight: CLLocationCoordinate2D(latitude: 46.437, longitude: -71.516))
|
||||
let source = MGLImageSource(identifier: "radar", coordinateQuad: coordinates, url: URL(string: "https://www.mapbox.com/mapbox-gl-js/assets/radar.gif")!)
|
||||
let source = MGLImageSource(identifier: "radar", coordinateQuad: coordinates, url: URL(string: "https://maplibre.org/maplibre-gl-js-docs/assets/radar.gif")!)
|
||||
mapView.style?.addSource(source)
|
||||
```
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ class MGLDocumentationExampleTests: XCTestCase, MGLMapViewDelegate {
|
||||
bottomLeft: CLLocationCoordinate2D(latitude: 37.936, longitude: -80.425),
|
||||
bottomRight: CLLocationCoordinate2D(latitude: 37.936, longitude: -71.516),
|
||||
topRight: CLLocationCoordinate2D(latitude: 46.437, longitude: -71.516))
|
||||
let source = MGLImageSource(identifier: "radar", coordinateQuad: coordinates, url: URL(string: "https://www.mapbox.com/mapbox-gl-js/assets/radar.gif")!)
|
||||
let source = MGLImageSource(identifier: "radar", coordinateQuad: coordinates, url: URL(string: "https://maplibre.org/maplibre-gl-js-docs/assets/radar.gif")!)
|
||||
mapView.style?.addSource(source)
|
||||
//#-end-example-code
|
||||
|
||||
|
||||
@@ -1426,7 +1426,7 @@ CLLocationCoordinate2D randomWorldCoordinate(void) {
|
||||
{ 37.936, -71.516 },
|
||||
{ 46.437, -71.516 } };
|
||||
|
||||
MGLImageSource *imageSource = [[MGLImageSource alloc] initWithIdentifier:@"style-image-source-id" coordinateQuad:coordinateQuad URL:[NSURL URLWithString:@"https://www.mapbox.com/mapbox-gl-js/assets/radar0.gif"]];
|
||||
MGLImageSource *imageSource = [[MGLImageSource alloc] initWithIdentifier:@"style-image-source-id" coordinateQuad:coordinateQuad URL:[NSURL URLWithString:@"https://maplibre.org/maplibre-gl-js-docs/assets/radar0.gif"]];
|
||||
|
||||
[self.mapView.style addSource:imageSource];
|
||||
|
||||
@@ -1444,7 +1444,7 @@ CLLocationCoordinate2D randomWorldCoordinate(void) {
|
||||
- (void)updateAnimatedImageSource:(NSTimer *)timer {
|
||||
static int radarSuffix = 0;
|
||||
MGLImageSource *imageSource = (MGLImageSource *)timer.userInfo;
|
||||
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.mapbox.com/mapbox-gl-js/assets/radar%d.gif", radarSuffix++]];
|
||||
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://maplibre.org/maplibre-gl-js-docs/assets/radar%d.gif", radarSuffix++]];
|
||||
[imageSource setValue:url forKey:@"URL"];
|
||||
if (radarSuffix > 3) {
|
||||
radarSuffix = 0;
|
||||
|
||||
@@ -1032,7 +1032,7 @@ NSArray<id <MGLAnnotation>> *MBXFlattenedShapes(NSArray<id <MGLAnnotation>> *sha
|
||||
[self.mapView.style addLayer:ohioLayer];
|
||||
}
|
||||
|
||||
NSURL *imageURL = [NSURL URLWithString:@"https://www.mapbox.com/mapbox-gl-js/assets/radar.gif"];
|
||||
NSURL *imageURL = [NSURL URLWithString:@"https://maplibre.org/maplibre-gl-js-docs/assets/radar.gif"];
|
||||
MGLCoordinateQuad quad = { {46.437, -80.425},
|
||||
{37.936, -80.425},
|
||||
{37.936, -71.516},
|
||||
|
||||
Reference in New Issue
Block a user