Wasn't it Sunny who wrote:
>
>Hi,
>
>By Shape I mean. When you draw something on Map.
>In IE You can access that shape using
>document.getElementsByTagName("shape");
>But in Firefox This dont work.
>I am using the VML to draw polygons on Map.
>But VML dont work in Firefox.

If you're drawing with VML then there will be <shape> tags.
If you're drawing with SVG then there will be <svg> tags.
If you're drawing with CANVAS then there will be <canvas> tags.

If you're using the API to draw polys, then you can use
   document.getElementsByTagName("shape").length
   document.getElementsByTagName("svg").length
   document.getElementsByTagName("canvas").length
to determine which drawing technology is being used and how many polys 
there are.

If you're using VML directly, then
   document.getElementsByTagName("shape").length
will count the number of <shape> tags that you used, even in browsers 
that have absolutely no idea what a <shape> tag is.
   document.getElementsByTagName("sausage").length
will count the number of <sausage> tags that you used, even though no 
browsers have any idea what a <sausage> tag is, because I just made it 
up.

 >can you change the vml to SVG on fly?

There is such a thing as vml2svg (Go ogle it if you want more info) but 
then what do you do about browsers like Safari and Chrome which have 
neither VML nor SVG by default?

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to