developer sign in
where » create » reference » map

<map>


The map element defines a component can pan and zoom an image. Panning is a built-in feature of the map component and zooming is controlled by calls to mapZoom(), mapZoomLevel(), and mapZoomVisible() (see Scripting) which can be tied to a soft key onselect attribute, for example. To implement appropriate behavior for retrieving a new map when the edge of a map is reached or a new zoom level is chosen, the developer must provide a custom getNewMap() function in the script section of the page. getNewMap() is called when the zoom level is changed or the edge of a map is reached.
getNewMap(arg1, arg2, arg3)
arg1 = the latitude of the center point when map component calls getNewMap() arg2 = the longitude of the center point when map component calls getNewMap() arg3 = the zoom level of the map when map component calls getNewMap()

Example

<map src="http://www.myMapProvider.com/getMap.jsp?mapid=TJ34513535" zoom="4"/>

Valid Elements

none

Element Specific Attributes

Attribute  Purpose Values Default JIN
src
required
The src attribute specifies the URL of the map image. URL none 2.0
zoom The zoom attribute specifies the current zoom level that will be passed in subsequent calls 0 - * none 2.0

Valid Attributes

align, bg, bgfocus, bgfocusimg, bgimg, border, bordercolor, borderfocus, cache, fg, fgfocus, fontsize, fontstyle, id, valign
terms of use | privacy policy | about | FAQ | blog | jobs | contact us
For 24/7 support email support@where.com or call 888-262-1150
WHERE™ is a product from uLocate Communications, Inc. ©2007 All Rights Reserved.