Giorgi625 VIP
Total posts: 655
06 Янв 2021 09:26

I am creating something like City portla where I display every organization which is in my city on a map, but many of them has registered on Google and display their information on google map. because of this it is hard to find my markers on same map. So is there possibility to modify map code so that it only displays map, without markers or anything else? andshows markers only from Cobalt?

https://i.postimg.cc/0QS9MZJJ/Opera-Snapshot-2021-01-06-132047-zugdidi-cobaltcck-com-ge.png

Последние изменения: 10 Янв 2021


Sergey
Total posts: 13,748
10 Янв 2021 12:14

In a map template file find var mOptions = {...} and add there

{
styles: {
      featureType: "poi.business",
      stylers: [{ visibility: "off" }],
    }
}

https://developers.google.com/maps/documentation/javascript/examples/hiding-features

Работает на Cobalt