×

Notice

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

TOPIC: set map bounds on dragging

set map bounds on dragging 9 years 7 months ago #27878

  • Gogodigital.it
  • Gogodigital.it's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Hello,
i've purchased some months ago this very well done component,
now i have a trouble i'm trying to resolve it but i need a suggestion please,
i would like to set bounds when dragging the map, to hide the grey part on the top and the bottom of the map,
to explain better the limits of the world, i don't want that an user drag a lot the map and see the grey parts...
How could i limit this? seeing a lot of js....mmm in wich . js i can operate?
Thanks a lot
VG

set map bounds on dragging 9 years 7 months ago #27890

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there,
Well maybe you can do this in media/com_hotpsots/js/sandbox.js

look around line 53 -> there we set some event listeners for zoom_changed and dragend. So maybe there you could try to read the current map boundaries and if it is outside the one you want, change them to the one you want.

Regards,
Daniel

set map bounds on dragging 9 years 6 months ago #27989

  • Gogodigital.it
  • Gogodigital.it's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Hey!
Thank you, it's exactly what i need, i've almost done..

One more thing, i would not a baloon popup on a single k2 article,
how can i disable it? in other .js? mmm how can i do..suggestions?
Thanks a lot,
Valerio

ps. great component..

set map bounds on dragging 9 years 6 months ago #27992

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Try with media\com_hotspots\js\modules\hotspot.js -> openUniqueInfoWindow

set map bounds on dragging 9 years 6 months ago #27993

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
or maybe the createInfoWindow in the same file
  • Page:
  • 1
Time to create page: 0.122 seconds