I'm using cloneNode to create a copy of my site's google map for
printing purposes. The map contains markers and polygons (along with
ESRI mapService layers). This works perfectly in Firefox but the
polygons disappear in IE. They are missing in both the print preview
and in the actual cloned node when I make it visible on the screen,
thus I believe it is something to do with the cloneNode method rather
than printing.
The polygons have a transparency set, but even when I changed them to
solid, they still failed to show up in the cloned node.
I don't know that it will help any, but here is the code for creating
the polygons and for cloning the map:
var loadPolygon = new GPolygon.fromEncoded({
polylines: [{ color: '#f33f00', weight: 4, opacity: .6, points:
polyString, levels: 'PMP', numLevels: 18, zoomFactor: 2}],
fill: true,
color: '#f33f00',
opacity: .4,
outline: true
});
.
.
.
map.addOverlay(loadPolygon);
.
.
.
mapCopy = document.getElementById("map").cloneNode(true);
mapCopy.id = "mapCopy";
document.getElementById("map_printable").appendChild(mapCopy);
Is this a known issue or am I doing something wrong?
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.