×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Remove POIs

Remove POIs 10 years 11 months ago #20470

  • Nikos Chouliaras
  • Nikos Chouliaras's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Hello. I wonder where to put this code, so i will remove the default google map POIs.
Thank you in advance.
styles:[{
featureType:"poi",
elementType:"labels",
stylers:[{
visibility:"off"
}]
}]

Remove POIs 10 years 11 months ago #20471

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
This seems to be a styled map? Well, since 3.3 we support it and you need to go to the configuration -> map -> styled map and paste it there.

Regards,
Daniel

Remove POIs 10 years 11 months ago #20586

  • Nikos Chouliaras
  • Nikos Chouliaras's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Thank you very much, that worked perfect!

Remove POIs 10 years 11 months ago #20591

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Awesome! Don't forget to post a review over here:
extensions.joomla.org/extensions/maps-a-...-locations/maps/9468

Cheers,
Daniel

Remove POIs 10 years 9 months ago #21733

  • Krx
  • Krx's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi

I tried suggested piece of code, but it doesn't work.
I can still see some default locations added by Google.

I tried to put code in Settings - Map - Styled maps
and in Joomla menu item (Basic options - Styled maps) which calls hotspots component.

Website is being developed locally so I cannot publish live link.


Joomla 2.5.11
Hotspots 3.4 (upgraded from 3.3)




EDIT:
I've did it "dirty" way:

In file "media/com_hotspots/js/sandbox.js"

After this comment line "// add the styled maps option" approx line 176

I've added this:
var mapStyle = [{
featureType:"poi",
elementType:"labels",
stylers:[{
visibility:"off"
}]
}]
 
var mapOptions = {           
styles: mapStyle};
 



So far it seems that this works - no bugs (and Google POIs) shown :)




Thanks
Regards

Remove POIs 10 years 9 months ago #21850

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
@Krx - maybe magic quotes are turned on on your server. Generally if you input a correct json string in the style field it should work as expected. No need to hack anything :)

Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.114 seconds