Wasn't it Sunny who wrote:
>I downloaded the zip file containing excanvas.js & it had some test
>cases.
>But all I can see is the creating rectangle through Excanvas.
>How can I create polygons from excanvas.

You create the <canvas> calls in exactly the same way as you would in a 
browser that supports <canvas> natively.

In particular see: this for drawing polygons
http://developer.mozilla.org/en/Canvas_tutorial/Drawing_shapes#Lines
and this for setting the fill gradients
http://developer.mozilla.org/en/Canvas_tutorial/Applying_styles_and_color
s#A_createLinearGradient_example

[If those URLs get wrapped, either glue all the bits together, or find 
your own way from http://developer.mozilla.org/en/Canvas_tutorial ]


>And is it a good approach to use if I have to draw 60 Polygons on a
>map.
>How fast is it compare to google gpolygon factory method?

We won't know that until somebody tries it.

I seem to remember that somebody did once write a canvas demonstrator, 
back before Google started using <canvas> on the maps, that showed that 
<canvas> was faster than SVG for drawing polys in Firefox, but that was 
just plain polygons. The search facility on this group is utterly 
hopeless, and I can't find it now.

-- 
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