CustomTile class
this class used to set custom tile for osm mapview (android,ios,web) but for now we will support only android,other platform will add it soon,
urlsServers : url(s) to get tile(s) from,it should at least one address
tileExtension : extension of tile that we will get from server(s)
sourceName : unique name will be used in android for caching purpose , this values will be take in in ios side
tileSize : (int) size tile will get from server tile
minZoomLevel : (int) minimum zoom level for custom tile source, this values will be take in in ios side
maxZoomLevel : (int) maximum zoom level for custom tile source
keyApi : (MapEntry) should contain key name and api key value for tile server that need api key access
Constructors
-
CustomTile({required List<
TileURLs> urlsServers, required String tileExtension, required String sourceName, int tileSize = 256, int minZoomLevel = 2, int maxZoomLevel = 19, MapEntry<String, String> ? keyApi}) - CustomTile.cycleOSM({int maxZoomLevel = 19, int minZoomLevel = 2})
- CustomTile.osm({int maxZoomLevel = 19, int minZoomLevel = 2})
- CustomTile.publicTransportationOSM({int maxZoomLevel = 19, int minZoomLevel = 2})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keyApi
→ MapEntry<
String, String> ? -
final
- maxZoomLevel → int
-
final
- minZoomLevel → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceName → String
-
final
- tileExtension → String
-
final
- tileSize → int
-
final
-
urlsServers
→ List<
TileURLs> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited