markerWithLabel printing - labels missing

345 views
Skip to first unread message

dbrb2

unread,
May 31, 2012, 6:48:40 AM5/31/12
to Google Maps JavaScript API v3
Hi,

I'm using the "markerWithlabel" class, which works well:

http://bbarker.co.uk/mapPlot

However, I notice that the labels do not print in many browsers -
including IE7, the map and markers print...but the labels do not.
Printing to PDF gives me the same problem.

I'm not sure if this is a machine-specific thing, or a google maps
issue. Can anyone offer any suggestions?

Cheers,

Ben

Chris Broadfoot

unread,
Jun 4, 2012, 12:03:12 AM6/4/12
to google-map...@googlegroups.com
You should probably ask the author of that library.

--



--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Gary Little

unread,
Jun 4, 2012, 12:05:53 PM6/4/12
to google-map...@googlegroups.com
I just took a look at the basic MarkerWithLabel example and the labels print fine on a Mac with Safari, Chrome, and Firefox.

Check the CSS for your labels; perhaps you specified display: none; in a print media selector.

Gary 

deep123

unread,
Jun 12, 2012, 9:15:52 AM6/12/12
to Google Maps JavaScript API v3
I am also facing this problem..

Any body has resolved it?

Steve Ai

unread,
Jun 12, 2012, 1:48:57 PM6/12/12
to google-map...@googlegroups.com
yes it's been resolved...there was something wrong with the map.js script..dunno actually but i just rewrote a simpler one: this was the old script....

(function() { 
  window.onload = function() { 
   var mapDiv = document.getElementById('map');
   var latlng = new google.maps.LatLng(6.596183, 3.355978);
   var options = {  // The options for the object='center')
        center: latlng,
        zoom: 15,
        mapTypeControl: true,
        scaleControl: true,
        mapTypeControlOptions: {
        mapTypeIds: [
            google.maps.MapTypeId.ROADMAP,
            google.maps.MapTypeId.SATELLITE,
             ]
        }
   };
     var map = new google.maps.Map(mapDiv, options);
   }
})();

On Tue, Jun 12, 2012 at 2:15 PM, deep123 <cooldeepi...@gmail.com> wrote:
I am also facing this problem..

Any body has resolved it?
Reply all
Reply to author
Forward
0 new messages