The GPolygon class is a graphical object whose appearance consists of a polygon.
Questions tagged [gpolygon]
5 questions
22
votes
6 answers
How do I get Google Maps to show a whole polygon?
I have a set of GPolygon objects which are attached to objects in my domain model and are added to a map on my page. The domain objects are being shown in a list on the same page and when the user clicks on one of them I want to show the associated…

Simon
- 78,655
- 25
- 88
- 118
4
votes
2 answers
Drawing resizable (not intersecting) polygons
I have been searching everywhere but I could not find an answer. I
need to have drawing resizable polygons with mouse interaction but I
do not want irregular, overlapping or intersecting polygons in the
end.
Here is a simple example of drawing…

pars
- 3,700
- 7
- 38
- 57
1
vote
1 answer
Change the color a Gpolygon with mouse event
I try change the color to one Gpolygon with a mouseover event
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(-39.875696,-72.624207), 9);
pLat = 0.2;
pLon = 0.2;
p1Lat = -40;
p1Lon = -73;
…

JuanPablo
- 23,792
- 39
- 118
- 164
1
vote
1 answer
Java how to use clear() from acm?
I create an object (GPolygon), add it to canvas, i rotate it and then i want to reset the rotation, to come back where started. I look at acm page and there is a method called clear() but i can't acces it, probaly because is protected.
Text from…

Bogdan Alexandru
- 13
- 3
0
votes
1 answer
Draw Polygon in Googlemap based marker time
I want to draw a polygon by connecting markers in googlemap.Time is associated with each marker.So i want connect each points based on the time.How can i do this.Currently code is impleneted like this.Where i need to change.
var marker = new…

user922834
- 195
- 2
- 6
- 18