Jump to content

Custom Map Styles


Mark Brindley

Recommended Posts

Hello All,

 

I am trying to implement a new custom style to Google maps that will remove certain points of interest (POI) icons and labels.

By default Google renders POI markers on the map that are clickable, which in turn is leads to clicks lost to Google + or Google MyBusiness.

 

Reading through Google Map developer documentation it recommends creating a new style

https://developers.google.com/maps/documentation/javascript/styling?csw=1

 

var styleArray = [
   {
   featureType: "poi.business",
   elementType: "labels",
   stylers: [
     { visibility: "off" }
   ]
 }
];

 

Has anybody successfully implemented this, or able to point me in the right where I need to add the code to make it work.

 

 

Link to comment
  • 1 month later...
  • 4 years later...
  • 2 weeks later...
  • Alejandro unpinned this topic

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...