Dashboard > CMS Help and Advice > ... > Looking Local Plugins > Map plugin
Map plugin Log In View a printable version of the current page.

Added by David Kelly , last edited by John Latham on Aug 19, 2010  (view change)
Labels: 
(None)

This Wiki page details the usage of the Looking Local map plugin which is powered by the Google "static maps" API.

User interface

The map page will display the map tile, the map image along with any associated text and several buttons. The buttons to control the zoom level ('Zoom In Map' & 'Zoom Out Map') are always present. Buttons for panning the map may also be shown if latitude and longitude values were specified by the map page creator.

Selecting a button will update the map image.

How to add the map plugin to your microsite

1. Add a new page or edit and existing one.
2. Add a menu item or new link to your page -> Select 'Plugin Link: Map'
3. Enter the map parameters as detailed below.

4. Select 'OK' and then 'Save' your page. Test and then publish your page if happy.

Parameters

This table details the how to specify the map you wish to display.

Parameter Required Description & Example Link
The title of the map yes The text for the title to be displayed. EXAMPLE:'A Map of Greenwich'(Exclude quotes)
The latitude of the location to be displayed at the center of the map A latitude value is MANDATORY if center address is not supplied. Latitudes can take any value between -90 and 90. EXAMPLE: Greenwich is situated at 51.477222 latitude To obtain the latitude and longitude of a location use this online tool http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html
The longitude of the location to be displayed at the center of the map A longitude value is MANDATORY if center address is not supplied. Longitudes can take any value between -180 and 180. EXAMPLE: Greenwich is situated at 0.0 longitude To obtain the latitude and longitude of a location use this online tool http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html
The address of location to be displayed at the center of the map MANDATORY if latitude and longitude are not supplied Enter a postcode or full address. NOTE: Panning of the map if not available if a center address is used rather than latitude and longitude. EXAMPLE:'Royal Observatory Greenwich England'(Exclude quotes) or 'SE10 8XJ'(Exclude quotes)
The level of map magnification no This number determines the starting magnification level of the map. Default is: 13. EXAMPLE:'16'(Exclude quotes)
The amount to change the magnification by when zooming no This number determines the change in magnification level of the map when zooming. Default is: 2. EXAMPLE:'1'(Exclude quotes)
The visual style of the map to display no Valid entries are: roadmap, satellite, terrain or hybrid. See map types image below. Default is roadmap. EXAMPLE:'hybrid'(Exclude quotes)
Add a marker symbol and optional label letter at a given location on a map. no EXAMPLE:'color:blue|label:A|51.477222,0.0'(Exclude quotes) will add a blue marker with the letter 'A' displayed on it at the longitude & latitude location After the first instance each marker with a unique style must begin with '&markers='(Exclude quotes). For further details see http://code.google.com/apis/maps/documentation/staticmaps/
Use to draw a line or polygon on the map. no Allows coloured lines to be drawn on the map. EXAMPLE:'color:0xff0000|weight:5|51.477828,-0.00133|51.476118,0.000644'(Exclude quotes) Will draw a red line of thickness 5 from the Greenwich observatory to Greenwich park For use of path parameter see http://code.google.com/apis/maps/documentation/staticmaps/
The text to be shown next to the map. no The length of the text must be short to avoid screen overrun issues. EXAMPLE:'(A) Royal Observatory'(Exclude quotes)

Map types

Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators