none
Draw shape with pushpin issue RRS feed

  • Question

  • Hi,

    We have issue with the draw shape and pushpins plotted on map. When we draw the shape and then plot the pushpin then the pushpin goes behind the shape so we the Events of pushpin is not fire.

    Here is the screenshot how it looks.

    We draw the shape using drawing tool module of bing map V7 and plot the pushpin as shown below.

    var pin = new Microsoft.Maps.Pushpin(loc, pushpinOptions);

    _map.entities.push(pin);

    Can anyone has idea how to resolve this issue. So that we are able to see the pushpin top of shape and fire the pushpin events.

    Thanks!

    Balasaheb


    Balasaheb

    Monday, May 30, 2016 12:02 PM

Answers

  • In v7, add to entity collections to the map. Use one for polygons and the other for pushpins. Add the pushpins to the second entity collection. This will render above the polygon layer.

    In v8 pushpins always render above polygons.


    [Blog] [twitter] [LinkedIn]

    Monday, May 30, 2016 4:40 PM
  • Hi Ricky,

    Thanks for your reply. It worked.

    Thanks!

    Balasaheb


    Balasaheb

    Wednesday, June 1, 2016 9:09 AM

All replies

  • In v7, add to entity collections to the map. Use one for polygons and the other for pushpins. Add the pushpins to the second entity collection. This will render above the polygon layer.

    In v8 pushpins always render above polygons.


    [Blog] [twitter] [LinkedIn]

    Monday, May 30, 2016 4:40 PM
  • Hi Ricky,

    Thanks for your reply. It worked.

    Thanks!

    Balasaheb


    Balasaheb

    Wednesday, June 1, 2016 9:09 AM