(Not Signed In)

Sign In

Resources

Adding a Marker

Markers are created using ImageObjects – an ImageObject is an image assigned to a map location. As the map pans and zooms, ImageObjects remain geographically anchored.

The following code snippet creates an ImageObject named pin.

pin = new Telogis.GeoBase.MapLayers.ImageObject ({
        layer: map,
        location: new Telogis.GeoBase.LatLon(33.581218, -117.72681),
        src: 'images/pushpin-red.gif'
});
Published, Jun 28th, 15:36

Tagged under: javascript maps