Polygon Shadow

116 views
Skip to first unread message

Booie

unread,
Dec 3, 2011, 8:54:19 AM12/3/11
to google-map...@googlegroups.com
Is there a way to add a shadow to a polygon?  I want to highlight one particular polygon using a shadow.  I do this with flash but I am converting to js v3.  Thanks everyone!

Marcelo

unread,
Dec 3, 2011, 12:27:41 PM12/3/11
to Google Maps JavaScript API v3
That sounds meaningless to me. Polygons are "flat on the ground",
therefore they don't have a shadow.
If you wanted to have the polygon "floating in the air" you'd have to
recalculate the lat/lon points by adjusting the Earth radius to be
Earth radius + altitude.
But if you wanted to do that, sure there is a way. (There is a way for
everything!). You could use another gray polygon to represent the
shadow, but again, you'd have to adjust the lat/lon points so that the
main polygon appears to project a shadow proportional to its
elevation.

--
Marcelo - http://maps.forum.nu
--

Reply all
Reply to author
Forward
0 new messages