diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-01-24 12:04:39 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-01-24 17:46:34 -0800 |
commit | 37e47e2f10e4c04d48e62665dd70c092dee4762a (patch) | |
tree | 26805e4b20d9fd4c64ffd102c2cac6c6327a0b51 /platform/darwin/src/MGLRasterStyleLayer.h | |
parent | fcc3808c83102d272006c33fb25f9c0307b466c5 (diff) | |
download | qtlocation-mapboxgl-37e47e2f10e4c04d48e62665dd70c092dee4762a.tar.gz |
[ios, macos] Raster style layers are used with image sources too
Diffstat (limited to 'platform/darwin/src/MGLRasterStyleLayer.h')
-rw-r--r-- | platform/darwin/src/MGLRasterStyleLayer.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLRasterStyleLayer.h b/platform/darwin/src/MGLRasterStyleLayer.h index 55d49329c2..7773246cad 100644 --- a/platform/darwin/src/MGLRasterStyleLayer.h +++ b/platform/darwin/src/MGLRasterStyleLayer.h @@ -7,16 +7,23 @@ NS_ASSUME_NONNULL_BEGIN /** - An `MGLRasterStyleLayer` is a style layer that renders raster tiles on the map. + An `MGLRasterStyleLayer` is a style layer that renders georeferenced raster + imagery on the map, especially raster tiles. Use a raster style layer to configure the color parameters of raster tiles - loaded by an `MGLRasterSource` 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 + loaded by an `MGLRasterSource` object or raster images loaded by an + `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://tilemill-project.github.io/tilemill/">TileMill</a>, the classic Mapbox Editor, or Mapbox Studio Classic. + + Raster images may also be used as icons or patterns in a style layer. To + register an image for use as an icon or pattern, use the `-[MGLStyle + setImage:forName:]` method. To configure a point annotation’s image, use the + `MGLAnnotationImage` class. You can access an existing raster style layer using the `-[MGLStyle layerWithIdentifier:]` method if you know its identifier; |