Support » Plugin: WP Google Maps » Hide restaurant, shop … labels

  • Resolved morene

    (@morene)


    Hi,

    this is my website with wp google maps plugin: http://zivana.org/kontakt/ I would like to hide/remove business, schools, restaurant labels icon (not text only icon with cutlery, cup…). I tried to add this code

    {
    “featureType”: “poi.business”,
    “elementType”: “labels.icon”,
    “stylers”: [
    {
    “visibility”: “off”
    }
    ]
    }

    but it doesn´t work for me. thanks for help

    • This topic was modified 4 years, 10 months ago by morene.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @morene

    Sorry for only getting back to you now.

    Please use the below styling and let me know if this helps?

    [
      {
        "featureType": "poi",
        "stylers": [
          {
            "visibility": "off"
          }
        ]
      }
    ]
    Thread Starter morene

    (@morene)

    Hi, thanks, it isn´t right solution. I want to hide only icon in circle no text (like Živana, Garage pub…). It works like code up, it hide text + icon. You can see

    http://zivana.org/kontakt/

    Hi there

    Sorry for the confusion on my part. Please use the below styles and let me know if this helps?

    [
      {
        "featureType": "poi",
        "elementType": "labels.icon",
        "stylers": [
          {
            "visibility": "off"
          }
        ]
      }
    ]

    Hi – I would like to do the same thing. Can you tell me where this code should be added?
    Thanks

    Hi @shimarisu

    You’ll be able to add in the above styling by going to ‘Maps’ -> ‘Edit’ and clicking on the ‘Themes’ tab. You can then paste the code into the input area provided.

    I hope this helps 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide restaurant, shop … labels’ is closed to new replies.