Issue 17 in gmaps-utility-library-flash: hole within a polygon is not drawn correct (donut polygon)

4 views
Skip to first unread message

codesite...@google.com

unread,
Nov 25, 2009, 6:35:59 AM11/25/09
to google-maps-api-for-fla...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 17 by stef.jung: hole within a polygon is not drawn correct
(donut polygon)
http://code.google.com/p/gmaps-utility-library-flash/issues/detail?id=17

It's not possible to draw a hole within a polygon (donut polygon). The hole
also gets drawn as separate polygon. The problem appeared in on of our
projects where we combine Google Maps and the ArcGIS Server REST API.

To reproduce it we created a simple donut polygon (see PDF) with ArcMap.
This polygon is available through the ArcGIS Server REST API. With some
basic code (see PDF) we can display the polygon as graphic-overlay. But it
is not drawn correct. There might be a problem in interpreting the rings.
The vertices of the first ring is clockwise and the vertices of the second
(inner) ring is anti-clockwise.

It is very important for us that we can display the holes within a polygon
correctly.

Regards,

Stefan

*********************************************************
What version of the API are you using?
- Flex 3.2
- map_flex_1_16.swc
- GoogleMapsAPIUtilityLibrary.swc
- IMap.getImplementationVersion(): 16

What operating system and browser are you using?
- Always reproducible, does not depend on the browser or operating system.
- Windows XP/Vista, Google Chrome, Firefox, IE7/8


*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Attachments:
Flash-API_Donut_Polygon.pdf 123 KB
Flash-API_SampleCode.pdf 23.6 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Nov 25, 2009, 10:39:51 AM11/25/09
to google-maps-api-for-fla...@googlegroups.com
Updates:
Status: Accepted
Owner: nianwei

Comment #1 on issue 17 by nianwei: hole within a polygon is not drawn
The arcgislink lib was ported from the JS version, which does not support
hole at
all. It looks like the flash API actually work with holes in some fashion.
I'll see
what I can do.

codesite...@google.com

unread,
Nov 26, 2009, 3:13:36 AM11/26/09
to google-maps-api-for-fla...@googlegroups.com

Comment #2 on issue 17 by stef.jung: hole within a polygon is not drawn
Sounds good. If i can support you in any way just let me know.

codesite...@google.com

unread,
Nov 26, 2009, 4:48:23 AM11/26/09
to google-maps-api-for-fla...@googlegroups.com

Comment #3 on issue 17 by nianwei: hole within a polygon is not drawn
If you can provide a REST service that can be accessible from Internet and
let me
know ow to get to the feature with hole that would make it easier so I do
not have to
create myself.

codesite...@google.com

unread,
Nov 26, 2009, 8:31:27 AM11/26/09
to google-maps-api-for-fla...@googlegroups.com

Comment #4 on issue 17 by stef.jung: hole within a polygon is not drawn
You can access this example:

http://labs.alta4gis.de/gmaps/rest/0/query?
geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelIntersects&where=1%3D1&retur
nGeometry=true&f=pjson

This service provides the polygon i described @ pdf.

codesite...@google.com

unread,
Dec 18, 2009, 7:11:00 PM12/18/09
to google-maps-api-for-fla...@googlegroups.com
Updates:
Status: Fixed

Comment #5 on issue 17 by nianwei: hole within a polygon is not drawn

I put in a change and should be working for you. You need to use SVN check
out to get
the code and compile yourself.
example:

http://gmaps-utility-library-flash.googlecode.com/svn/trunk/examples/ArcGISLink/bin-release/DonutHole.html

codesite...@google.com

unread,
Dec 18, 2009, 8:43:23 PM12/18/09
to google-maps-api-for-fla...@googlegroups.com

Comment #6 on issue 17 by stef.jung: hole within a polygon is not drawn

looks good thanks a lot, i am gona test it in the next days.

codesite...@google.com

unread,
Jan 7, 2010, 5:43:14 AM1/7/10
to google-maps-api-for-fla...@googlegroups.com

Comment #7 on issue 17 by stef.jung: hole within a polygon is not drawn

I forgot to write some feedback. I compiled the current svn version and it
works
fine. Even with more complex polygons.

Thank you.

Reply all
Reply to author
Forward
0 new messages