×

Notice

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

TOPIC: Start Zoom of plotting page

Start Zoom of plotting page 10 years 11 months ago #20669

  • Shaun Kehoe
  • Shaun Kehoe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 1
Hey Daniel,

I was wondering where I would go to change the start zoom location of the map that generate in the plotting page. We have the zoom set to where we want it for the map when you click your hotspots and it takes you to that hotspot. But we want to change the zoom(zoom it out more) for when a user plots a hotspot. I know we can change it in the backend of joomla but then it changes the zoom for both maps, we want to just zoom out only the plotting a hotspot map.

Thanks,
Shaun

Start Zoom of plotting page 10 years 11 months ago #20684

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You'll have to make a template override for components/com_hotspots/views/form/tmpl/form.php

on line 41 you have this:
{$options}
change it to this:
{$options}
hotspots.DefaultOptions.mapStartZoom = 15;

This way you'll override the value that comes from the db. You can also use this trick to basically override any value from the configuration for the form view.
Cheers,
Daniel
The following user(s) said Thank You: Shaun Kehoe

Start Zoom of plotting page 10 years 11 months ago #20695

  • Shaun Kehoe
  • Shaun Kehoe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 41
  • Thank you received: 1
That works perfect. Thank you!

-Shaun
  • Page:
  • 1
Time to create page: 0.112 seconds