none
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.

    Example:

    img = canvas.toDataURL();

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

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

    map.entities.push(pushpin);


    Friday, April 27, 2012 7:31 AM

Answers

  • 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.

    http://rbrundritt.wordpress.com

    Friday, April 27, 2012 7:59 AM

All replies