×

Notice

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

TOPIC: Zoom level for single hotspot

Zoom level for single hotspot 12 years 7 months ago #13563

  • Oliver Coats
  • Oliver Coats's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi,

How can I set the zoom level for viewing a single hotspot, to a custom value.

I'd like it so that when a user clicks the 'read more' link in the popup on the larger map, they are then taken to the single hotspot view, with a very zoomed in map, to show precisely where the location is.

Also, what does the 'Zoom of the search' setting do, in the Advanced Settings, configuration tab?

Many thanks,
Oliver

Zoom level for single hotspot 12 years 7 months ago #13571

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Oliver,
Please search the forum about your first question "zoom level for single hotspot". I know that I have answered this in another thread few days ago - you will need to change a line of code :)

Zoom of the search - that is a good one :) I don't know why we have this right now. I think that it is not working anymore and we have to delete (it is left from a previous version - it was so that when searching for a hotspot the map the zoom on the results would be taken from this version - right now the map automatically determines how to zoom)

Daniel

Zoom level for single hotspot 12 years 7 months ago #13594

  • Oliver Coats
  • Oliver Coats's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Thanks Daniel,

Any chance you can point me in the direction of that thread? Searching and scanning through the different boards isn't coming up with the answer, I'm afraid. :)

Many thanks,
Oliver

Zoom level for single hotspot 12 years 7 months ago #13604

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Oliver,
I'm really sorry for my bad support! I got confused! I found the thread that I was suggesting, but I'm explaining how to set the map type and not the zoom...

Anyway, go to media/com_hotspots/js/Hotspots.Hotspot.js

around line 37 you have this
this.map.setZoom(this.options.mapStartZoom.toInt());

you can change it to something like this
this.map.setZoom(10);

any value between 1 and 20 is right.

Kind regards,
Daniel

Zoom level for single hotspot 12 years 7 months ago #13623

  • Oliver Coats
  • Oliver Coats's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hey Daniel,

No problem. We got there in the end. The solution is exactly what I was looking for, and can say for certain that I wouldn't have worked that one out myself.

Many thanks,
Oliver
:D
  • Page:
  • 1
Time to create page: 0.160 seconds