Versions

Leaflet.fwaction (2014-04-26) (Downloaded 239 times)

Contains:

  • Leaflet (item-action) - v. 0.3
  • LeafletMarker (action) - v. 0.2

Compatible: Pro 5.5 and Pro 6

Leaflet.fwaction (2014-04-09) (Downloaded 3 times)

Contains:

  • Leaflet (item-action) - v. 0.2
  • LeafletMarker (action) - v. 0.2

Compatible: Pro 5.5 and Pro 6

Author: Walter Davis

map

This Action allows you to use the Open Street Map service wherever you might use Google Maps. The resulting map is pleasantly-colored, and is very mobile-friendly. It works well in flexible or responsive layouts, too.

To use, draw or insert an HTML box where the map should appear, and apply the Leaflet Action to that box. If you know the latitude/longitude that you would like to center the map on, you may enter it directly, or you can use the address lookup service to find it. Zoom goes from 1 to 18, with illegal values ignored.

To add markers to the map, use the included Leaflet Marker Action. This is a “draw it on the page” Action, accessible from the Action tool in the application toolbar. The marker element may be drawn anywhere you like on the page, the resulting HTML will be removed anyway.

Choose which map it belongs to (you may have multiple maps, or multiple markers per map).

Use the address/latitude/longitude interface fields to enter the location of the pin, then enter the text you would like to see on the marker tooltip. If you want to split the text across multiple lines, just add <br> tags where needed.

1 Comment

Can the wheel scroll zoom function be disabled as in Google maps ? - Which uses "wheelscroll:false"

Richard

Sign In or Sign Up to comment.