javascript - Bing Maps Ajax v7 Pushpin Moving on Zoom/Pan -


i'm using bing maps ajax v7. on map zoom/pan pushpins seem animating/rendering needlessly. not anchored statically coordinates should or (before zoom/pan) , on zoom/pan seem animating/rendering different position off screen.

this happens in browsers (mac: [chrome, ff, safari], windows: [ie, chrome, ff]).

seems similar q: virtual earth (bing) pin "moves" when zoom level changes - different api version , scale solution isn't applicable.

anyone run this?

i running exact issue. when zoom out or pan, pushpins animate every time, making terrible user experience. found out had global styles being applied site make links animate position when scaled browser. may come default in style sheet boilerplate. offending style

  {     -webkit-transition: 0.5s ease;     /* chrome <= 25, safari <= 6.0, ios safari <= 6.1, android browser <= 4.3 */     -moz-transition: 0.5s ease;     /* firefox <= 15 */     -o-transition: 0.5s ease;     /* opera <= 12 */     transition: 0.5s ease; } 

i targeted map pushpins directly applying following style:

/* prevent tag inside of map animate */ .mappushpinbase {     -webkit-transition: none;     -moz-transition: none;     -o-transition: none;     transition: none;} 

which removes css animations on pushpins.

problem solved (for me)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -