Is it possible to draw a canvas item and use the image as a pushpin? RRS feed

  • Question

  • I was curious if you could create an image using canvas, and then somehow pass the image as a pushpin.


    img = canvas.toDataURL();

    var pushpinOptions = {icon: img, width: 100, height: 50};

    var pushpin= new Microsoft.Maps.Pushpin(map.getCenter(), pushpinOptions);


    Friday, April 27, 2012 7:31 AM


  • This can't be done, at least not by using the control in a supported manner. I have looked into doing this myself in the past.

    Friday, April 27, 2012 7:59 AM

All replies