Hi Mike,

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

On Oct 8, 4:23 am, Mike Williams <[EMAIL PROTECTED]> wrote:
> Wasn't it Sunny who wrote:
>
>
>
> >I was wondering, If we can apply Linear gradient to Gpolygons.
>
> You could now write your own polygon overlays with <canvas>.
>
> If you use excanvas.js to handle MSIE, then that works in all recent
> compatible browsers.
>
> That gives you the ability to use canvas.createLinearGradient() and even
> radial fills with canvas.createRadialGradient() and patterned fills with
> canvas.createPattern().
>
> A significant problem, however, is the memory requirement for large
> canvas shapes. If you have a canvas shape that covers a region of, say,
> 256x256 pixels at zoom level 3, then canvas allocates space for 256x256
> pixels of colour data, which probably takes 256*256*4 bytes, 256 kb, and
> that's OK. If you now zoom in to zoom level 17 and redraw that shape, it
> now covers 16384x16384 pixels, and canvas allocates something like
> 16384*16384*4 bytes for the bitmap, i.e. 1024 Mb. That's not going to
> work nicely on today's hardware.
>
> So either you have to be fairly clever with your code, and only render
> parts of the poly that are in a modest region around the viewport, or
> you have to decide not to draw the poly at high zoom levels.
>
> --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