Marker

Description

A very basic marker class.  Put a (custom) marker at a given location

Files

  • lib/marker.js

License

Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.  http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt

Summary
MarkerA very basic marker class.
Functions
Mapbender.Marker
removeRemove the marker from the map.

Functions

Mapbender.Marker

Mapbender.Marker = function (p,
map)

Parameters

pa <Mapbender.Point> to specify the location
mapa <Mapbender.Map> on which the point is rendered
options.img.url[optional] a link to a custom marker image
options.img.offset[optional] a <Mapbender.Point> specifying the offset, default is (0,0).  Usually these values are below zero because the image has to be translated to top and left
options.img.width[optional] use this to resize the marker image width (height must also be specified)
options.img.height[optional] use this to resize the marker image height (width must also be specified)

remove

this.remove = function ()

Description

Remove the marker from the map.

Mapbender.Marker = function (p,
map)
this.remove = function ()
Remove the marker from the map.
Close