Maps Actions

Add Map Marker Add a marker to Google Map or Offline Map at a specified latitude and longitude. Give the marker a name to identify it for clearing later. If there is already a marker with the same name it will be replaced. For Google Maps only, the name and description are used to create an information box.
Add Map Route By Latitude/Longitude Tries to find a route between the two specified points on a Google or Offline Map. If the start latitude and longitude are blank, then the current user location is used as the starting point. If a route is found it will be shown on the map, and the ‘On Route Found’ event will be fired. If no route can be found the ‘On No Route Found’ event will be fired. If a route was already displayed it will be cleared. You can clear the route from the map with the ‘Clear Map Route’ action.
Center Map on User Location Set a Google or Offline map to be centered on the user’s current location. For Google Maps, the user’s location is supplied by the system and combines GPS, wifi and other information. For Offline Maps, the location can also be defined by Bluetooth beacons or manually.
Clear All Map Markers Clear all markers that may have been added to an offline map.
Clear Manual Location on Map Clears a location set manually with the ‘Set Manual Location on the Map’ action, and returns the map to using automatic location (either GPS or closest beacon, if present).
Clear Map Marker Clears a marker with the specified name from a Google or Offline Map.
Clear Map Route Clear the route displayed on a Google or Offline map, if any.
Fake Beacon Close When used with the Offline Map, this action simulates the effect of being close to a beacon, allowing you to test beacon handling on the desktop or without actually having beacons.
Set Manual Location on Map Temporarily sets a user location for an Offline Map, replacing the GPS or beacon location if present. This allows using the Offline Map with manual signs for location, such as QR codes, and is also handy for testing by simulating different locations on the map for route-finding.
Set Map Center Location Center the specified Google Map or Offline Map on a latitude and longitude. Note: For Offline Map, if the map is zoomed out, then the resulting center location may not be the same, since the map is constrained to the available tiles. It is a good idea, therefore, to also use the ‘Set Map Zoom Level’ action first.
Set Map Diagnostics Controls display of diagnostic information on an Offline Map. These diagnostics provide a quick way to see raw data about user and map location, compass heading, and app performance.
Set Map Level Switches an Offline Map to display a different level. The level must be defined in the levels.txt for this map. It can be a specific level, or up and down relative to the current level. If already at the top or bottom, correspondingly up or down will have no effect.
Set Map Zoom Level Zooms the specified Offline Map to a level you define. Lower numbers zoom out, higher numbers zoom in. Note that the offline map tiles will only support a certain range of zoom levels.
Start Map Navigation Tells an Offline Map Component to start giving turn-by-turn directions for the current route. A route must have been found successfully first. After this, these events will fire; ‘On Route Waypoint Reached’, ‘On Off Route’ and ‘On Destination Reached’.
Stop Map Navigation Tells an Offline Map Component to stop giving turn-by-turn directions.
Switch Map GPS On/Off Controls whether the Offline Map will use GPS location or not. This can be useful to switch between indoor and outdoor modes, since GPS indoors is often inaccurate and deceptive.
Update Map Directions Tells the Offline Map Component to fire events for the current turn-by-turn directions, regardless whether they have changed. This can be used to refresh the display for the current situation.
Zoom Map to Fit Points  Zooms and pans the map to fit two specified coordinates in a defined area. To define the area, create any component such as a rectangle and make it invisible or behind the map.
Zoom Map to Fit Route After you have found a route in an Offline Map (for example, in the ‘On Route Found’ event), this action allows you to zoom the map to fit the route into a specific area on the screen, so that the user can see the whole route that they will need to travel. The area of screen is defined by a component you select, typically an invisible dummy component such as a rectangle.