0

I'm trying to disable poi markers in a mobile page i'am working on. It looks like the gmap-constructor should accept the style option. But I can't get it to work so far.

 $('#map_canvas').gmap({styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}]});

Any ideas? I know this can be done without using the plugin. I was just hoping to get it working without going that route.

oljones
  • 135
  • 3
  • 14

1 Answers1

1

try this

$('#map_canvas').gmap({'center' : mapdata.origin, 
    'mapTypeControl' : true, 
    'navigationControl' : true,
    'navigationControlOptions' : {'position':google.maps.ControlPosition.LEFT_TOP},
    'styles':[{'featureType': "poi.business",
        'elementType': "labels",
        'stylers': [
          { 'visibility': "off" }]}]

mapdata.origin has the lat and long.

Adi Lester
  • 24,731
  • 12
  • 95
  • 110
Shanti
  • 15
  • 5