Waveney
Waveney

Reputation: 610

Remove Selected POIs from Google map

I have generated an elaborate Google Map for an large local festival, I am involved with, which highlights venues throughout my local town where events will be taking place. It has a hundred additional markers added. Having most Points of Interest is good and highly relevant, but I would like to have a few removed from this particular map:

2 Are for car parks which will not be used as car parks for the weekend (There will be 2 or 3 additional large ones further out).

3 Are for very un-cooperative businesses who want the benefit of 50,000 extra people but don't want to contribute any money and are running their own things which are nothing to do the festival.

Here is a small segment of the map, how could I go about removing the "High Street Carpark" from this? (This is perhaps the least important one to change but is the easiest to see).

Small map

It is marked aas similar to another question, but that has not been answered either.

Upvotes: 0

Views: 4495

Answers (1)

Nikola Seke
Nikola Seke

Reputation: 122

You can use Google Map styling system and do something like:

  var styles = {
    default: null,
    hide: [
      {
        featureType: 'poi.business',
        stylers: [{visibility: 'off'}]
      },
      {
        featureType: 'transit',
        elementType: 'labels.icon',
        stylers: [{visibility: 'off'}]
      }
    ]
  };

You must find here what to hide here: https://developers.google.com/maps/documentation/javascript/3.exp/reference#MapTypeStyleFeatureType

The much easier way I could find is to use Google Map Styling Wizard: https://mapstyle.withgoogle.com/

Upvotes: 3

Related Questions