Drawing multiple polygons onto the same map

4,610 views
Skip to first unread message

Onur Güzel

unread,
Oct 22, 2010, 8:50:16 PM10/22/10
to Google Maps JavaScript API v3
Hi all,
I'm a bit new to Google Maps Javascript API v3. I successfully managed
to add a polygon using my js code, but cannot add a second polygon on
the same map within visible zoom level. When i use set.map(map), it
renders last map as expected. However i couldn't find any hint on the
net about having polygons more than one.

Is it possible, if so, how?

TIA,

Onur

geoco...@gmail.com

unread,
Oct 23, 2010, 2:40:41 AM10/23/10
to Google Maps JavaScript API v3

Onur Güzel

unread,
Oct 23, 2010, 4:54:12 AM10/23/10
to Google Maps JavaScript API v3
Thank you Larry so much for your help.

Onur

On Oct 23, 9:40 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Oct 22, 5:50 pm, Onur Güzel <kimiraikkone...@gmail.com> wrote:
>
> > Hi all,
> > I'm a bit new to Google Maps Javascript API v3. I successfully managed
> > to add a polygon using my js code, but cannot add a second polygon on
> > the same map within visible zoom level. When i use set.map(map), it
> > renders last map as expected. However i couldn't find any hint on the
> > net about having polygons more than one.
>
> > Is it possible, if so, how?
>
> Yes, it is possible.  There are lots of different ways:http://www.geocodezip.com/v3_polygon_exampleE.htmlhttp://www.geocodezip.com/v3_polygon_exampleF.htmlhttp://www.geocodezip.com/v3_polygon_example_clickable_squares.htmlhttp://www.geocodezip.com/geoxml3_test/geoxml3_test_polygon.htmlhttp://www.geocodezip.com/geoxml3_test/v3_geoxml3_us_states_kml_test....http://www.geocodezip.com/geoxml3_test/votemap_sidebar.html
>
>   -- Larry
>
>
>
>
>
> > TIA,
>
> > Onur
Reply all
Reply to author
Forward
0 new messages