rex_googlemap
Introduction
Display google map at a div element.
Display google map at a div element.
Show map
Follows these steps to show google map
Follows these steps to show google map
- Wait rex_googlemap_api loaded completed ( "Condition:On loaded" of rex_googlemap_api )
- Call "Action:Set center" to set the center location in latlng.
- "Condition:On map loaded" will be triggered while loaded map.
Clicking event
"Condition:On clicked" will be triggered while clicking, get the click position in the map by ( "Expression:LastLatitude" , "Expression:LastLongitude" )
"Condition:On clicked" will be triggered while clicking, get the click position in the map by ( "Expression:LastLatitude" , "Expression:LastLongitude" )
Other properties
Other properties like
Other properties like
- Zoom level ( Action:Set zoom level ) : Zoom level of the map.
- Map type ( Action:Set map type ) : "Roadmap", "Satellite", "Terrain", "Hybrid"
Snapshot
Sample capx
It could take a snapshot then load it on a sprite, or a canvas object. Markers and info window will be catch, too.
Sample capx
It could take a snapshot then load it on a sprite, or a canvas object. Markers and info window will be catch, too.
- Call "Action:Snapshot" to start taking a snapshot. Add some delay if taking a snapshot under "Condition:On map loaded"
- Get result of snapshot under "Condition:On snapsot" by "Expression:Snapshot".
- Load snapshot image by "Action:Load image from URL" of sprite object.