Class MVCustomMapTileLayer
MVCustomMapTileLayer defines a custom map tile layer, which assembles and displays map image tiles served directly by a web based map tile server, which accepts HTTP GET map tile requests. MVCustomMapTileLayer extends class MVMapTileLayer and all methods defined in MVMapTileLayer are also available in MVCustomMapTileLayer.
In order to let the javascript map client know how to assemble and display map tiles, you must provide the map tile layer definition object that defines map coordinate system, zoom levels and tiling rules. Please refer to #MVMapView.addMapTileLayerDefinition for more information regarding the map tile layer definition object.
Using the map tile layer definition information, the Oracle Maps client calls tileURLProvider to get the URLs of the map tiles that it needs to display to map. tileURLProvider is a user defined javascript function that returns the URL of the map tile image specified by the tile bounding box and zoom level. It accepts five parameters provided by the javascript map client:
- X coordinate of the left-lower corner of the tile in map coordinate system
- Y coordinate of the left-lower corner of the tile in map coordinate system
- Tile width in map coordinate system
- Tile height in map coordinate system
- Map zoom level
Constructor Attributes | Constructor Name and Description |
---|---|
MVCustomMapTileLayer(layerDefinition, tileURLProvider)
|
- Parameters:
- {Object} layerDefinition
- layerDefinition is an object that specifies the map tile layer definition.
- {Function} tileURLProvider
- tileURLProvider is a function that returns the URL of the map tile image specified by tile coordinates and zoom level.
- Returns:
- The newly created MVCustomMapTileLayer object.