×

Notice

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

TOPIC: Change zoom level

Change zoom level 12 years 6 months ago #15986

  • Ton Driessen
  • Ton Driessen's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 42
  • Thank you received: 1
Hi, I like to change the zoomlevel when i select one hotspot-icon from the mapview.
When i do the zoom level has a default value. I tried to change it in configuration but that doesn't make any difference.



Perhaps i missed something, or should i change some php code?

Regards Ton

Re: Change zoom level 12 years 6 months ago #15990

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there!
Are you talking about the zoom level that you get when you click on zoom?

it is hard coded in the hotspots.js file (media/com_hotspots/js)
if(this.map.getZoom() < 10) {
			zoom = new Element('span', {
				'html' : this.locale.zoom,
				'class' : 'link',
				events: {
					click: function(){
						self.map.setCenter(new google.maps.LatLng(hotspot.latitude, hotspot.longitude));
						self.map.setZoom(10);
						self.infoWindow.close();
					}
				}
			});
		}

Change 10 from this code to something higher and you'll get a higher zoom when you click the button.

Daniel
  • Page:
  • 1
Time to create page: 0.108 seconds