locked
Changing Pushpin Image: (V5) Code RRS feed

  • Question

  • Hi all,

      I want to change the default image of the pushpin. The image is in my computer. How can I give the url of my own image? This is my coding:-

     

    function DrawPins(e)

    {

    var pixel = new VEPixel(e.mapX, e.mapY);

    var point = map.PixelToLatLong(pixel);

    points.push(point);

    var pin = new VEShape(VEShapeType.Pushpin, point);

    pin.SetTitle("Pin ID" + pinID);

    //pin.imageUrl = 'images/green.GIF';

    map.AddShape(pin);

    pinID++;

    }

     

    Plz help me to get out from this. Thanks in advance.

     

     

    Thursday, June 28, 2007 8:20 AM

Answers