javascript - Google map polygon not rendering correctly in IE (9 and 10) -


i hope question not confusing or complex. here go: i'm creating custom google map renders states polygon overlays "google.map.polygon' method. seems work in browsers shown in picture below, polygons in chrome,firefox,safari , opera

when "all browsers", chrome,firefox,safari , opera. when comes ie (9-10) polygon shapes seem brake in half , shrinks shown here:

polygons in ie (9-10)

like said before, i'm using google polygon method :

 var obj = new google.maps.polygon({     paths: coords,     strokecolor: scolor,     strokeopacity: sopacity,     strokeweight: sweight,     fillcolor: fcolor,     fillopacity: fopacity,     lat:clat,     lng:clng,     north_bound:cnorthbound,     south_bound:csouthbound,     name:name     }); 

and shape coordinates points come xml file : //i'm placing code give better idea how whole thing put together

<state name="louisiana" strokecolor="#d6d1cb" strokeopacity="1" strokeweight="2" fillcolor="#004e98" fillopacity="1" lat="31.2448234" lng="-92.1450245" north_bound="33.019544,-88.8162401" south_bound="28.9254296,-94.043352">    <point lat="33.0225" lng="-94.0430"/>    <point lat="33.0179" lng="-93.0048"/>    <point lat="33.0087" lng="-91.1646"/>    <point lat="32.9269" lng="-91.2209"/>    <point lat="32.8773" lng="-91.1220"/>    ..... etc 

the problem not passing data or creating shape, rather the way renders in ie 9&10. have googled , tried several alternatives days on how fix issue, none of them worked, have tried far:

  • using ie compatibility mode ()
  • using ie backwards compatibility ()
  • using prefixer in case css/html5 issue ( used prefixer.js)
  • using excanvas ie compatibility
  • using modernizer (but shows ie supports canvas, don't know how extensive support may be.
  • using html5shiv, in case ie had issues html5 elements
  • changing css display block (including canvas tag)
  • checking in both firebug , ie tools console bugs, none detected.
  • check functions errors, none detected

if click on ie's compatibility button

ie compatibility button

the code changes from:

standard ie source code rendering

to:

compatibility source code

which view compatibility old browsers, suppose google map renders differently ( without canvas ) , shows polygons correctly brakes rest of html5 element , css in page. besides controlled user, not site.

enter image description here can see in in picture above.

so questions (possible solutions/thoughts) are:

  • is there way force google map render without canvas ie browsers only?
  • is related css attribute i'm not aware of?(it doesn't use css create states shapes, in case)
  • is there js fix type of issue?
  • is there i'm missing when comes google maps , ie?
  • any other thoughts guys may have?

thanks in advance input/help :)

i did take whole thing apart michael geary suggested, , turns out google maps in ie css inheritance might affect how polygon render on screen. individual polygon layers inheriting css "height:auto" 1 of it's parents , seems ie9&10 delicate this. so answer removing "height:auto" css file in parent element (container box).


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -