Behavior : Google static map
Author:Rex.Rainbow
- Display google static map on sprite or canvas.
Download
Properties
Initial loading
- Enable if you wish to load map at the start of the layout.
Map type
- Map type.
- Options : ["Roadmap","Satellite","Terrain","Hybrid"]
Format
- Map type.
- Options : ["png8","png32","gif","jpg","jpg-baseline"]
Zoom level
- Zoom level of the map. Set (-1) to ignore this parameter.
Center
- The center of the map, could be location or {latitude,longitude}, or string address.
Marker locations
- Marker locations separated by "|" character.
Marker size
- The size of marker.
- Options : ["Tiny","Middle","Small"]
Marker color
- The color of marker. Set "" to be default color.
Marker label
- A single upper character {A-Z, 0-9} which displayed in marker size to "Middle".
Marker icon
- Specifies a URL to use as the marker's custom icon. Images may be in PNG, JPEG or GIF formats, though PNG is recommended.
Path locations
- Path locations separated by "|" character.
Path weight
- The thickness of the path in pixels.
Path color
- The color of path. Set "" to be default color.
Area fill color
- The color to fill the polygonal area. Set "" to be default color.
Actions
Center
Action:Set center
- Set center of the map.
- Center ( string ) : The center of the map, could be location or {latitude,longitude}, or string address.
Image format
Action:Set image format
- Set image format.
- Image format ( Combo ) : Image format.
- Options : ["png8","png32","gif","jpg","jpg-baseline"]
Map
Action:Load map
- Load map image into canvas.
Map type
Action:Set map type
- Set map type.
- Map type ( Combo ) : Map type.
- Options : ["Roadmap","Satellite","Terrain","Hybrid"]
Marker
Action:Clean all markers
Action:Add marker
- Add marker.
- Locations ( string ) : Marker locations separated by "|" character.
- Size ( Combo ) : The size of marker.
- Options : ["Tiny","Middle","Small"]
- Color ( string ) : The color of marker. Set "" to be default color.
- Label ( string ) : A single upper character {A-Z, 0-9} which displayed in marker size to "Middle".
- Icon ( string ) : Specifies a URL to use as the marker's custom icon. Images may be in PNG, JPEG or GIF formats, though PNG is recommended.
Path
Action:Clean all paths
Action:Add path
- Add path.
- Path start ( string ) : Path locations separated by "|" character.
- Path end ( string ) : Path locations separated by "|" character.
- Weight ( number ) : The thickness of the path in pixels.
- Path color ( string ) : The color of path. Set "" to be default color.
- Area fill color ( string ) : The color to fill the polygonal area. Set "" to be default color.
Zoom level
Action:Set zoom level
- Set zoom level.
- Zoom level ( number ) : Zoom level of the map. Set (-1) to clean this parameter.
Conditions
Map
Condition:On map loaded
- Triggered while the map has loaded.