Fix: IE11 Mouse events in Bing Maps V7

The Bing Maps V7 map control has a small issue with IE11. The mouse events for polygons, polylines, and custom HTML pushpins do not seem to work. Looking into this I noticed that the SVG image being created to represent the shapes is inheriting the pointer-event CSS style information from it’s parent. In this case the value is none. It seems that this issue only occurs when adding shapes to an entity collection. Luckily all the SVG shapes have a unique CSS class on them which we can use to fix this issue. Similarly customer HTML pushpins, including those in the Canvas pushpins module, have the same issue and similar solution. To fix this simply add the following CSS Style to your page.

<style>
.MicrosoftMapDrawing, .MapPushpinBase{
pointer-events: auto !important;
}
</style>

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...