I have just realized that you create the polyline and polygons differently, so I removed my previous post because the reply was incomplete.
The GPolygon is created with points in it, while the GPolyline is created without points, so the problem is is about translating between LatLng and pixels. When you create a GPolyline without points, you're telling the API "Draw a line where I have been clicking", and when you close the polyline, the locations "where you've been clicking" exist in the normal projection, but not in the Gauss-Krueger one. On the other hand, when you create a GPolygon *with* points, those points can be translated immediately to pixels in both projections. What I'd suggest is that you do for polylines the same as you do for polygons, namely copy all the points to a new GPolyline object that is created with points already in it. -- Marcelo - http://maps.forum.nu -- On Feb 8, 10:37 am, graefy <[email protected]> wrote: > Hello group, > why is a GPolyline or GPolygon unvisible only in my own GMapType ? It > works fine in all default maptyps, but it is unvisible in "TK25" map. > You can see it here:http://www.egwnet.de/geo/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
