Reputation: 3488
I'm generating polyline path segments. They show up fine in the map, but when I print the map they are not included. Also each segment includes an icon, not being printed either. I'm using the following jQuery script to print the map. Do I need to encode the lat/lng points?
var printMap = function() {
var popUpAndPrint = function() {
var container = $('#map-canvas');
var width = 1200
var height = 600
var printWindow = window.open('', 'PrintMap',
'width=' + width + ',height=' + height);
printWindow.document.writeln($(container).html());
printWindow.document.close();
printWindow.focus();
};
setTimeout(popUpAndPrint, 500);
};
Upvotes: 0
Views: 617
Reputation: 117334
polylines (and markers too, except when you use the option optimized:false
) will be rendered via canvas
-elements.
The drawing of these overlays will not result in a modification of the HTML of the canvas-element, you'll not be able to copy these elements with your approach.
Upvotes: 1