Skip to content

dart-creations.com

Advertisement
Home arrow Forums
DART Creations Forums
Welcome, Guest
Please Login or Register.    Lost Password?
(pre-)zoom in on location
(1 viewing) 1 Guest
Go to bottom
TOPIC: (pre-)zoom in on location
#147
(pre-)zoom in on location 1 Year, 5 Months ago  
Hi,
For me it would be nice, if the map could be zoomed into location, e.g. my country the netherlands, when it is loaded. One could allways zoom back out...
for example maps.google.com/maps?f=q&hl=nl&g...995,7.075195&z=7.
thanks
Bernhard
 
Logged Logged  
  The administrator has disabled public write access.
#148
DART ()
User Offline
Re:(pre-)zoom in on location 1 Year, 5 Months ago  
Will have to investigate and verify whether this is possible.
 
Logged Logged  
  The administrator has disabled public write access.
#177
vickis ()
User Offline
Re:(pre-)zoom in on location 1 Year, 4 Months ago  
Hi!
I'm just a beginner with web sites and Joomla, so I hope I'm allowed to do what I've done and that I haven't broken anything. I do love maps, which is what got me started on working this out.

When you sign up with Google, it gives an example of code, which includes "map.setCenter" and some coordinates. I found the code in the mod_j15visitormap.php file. I'm in Christchurch, New Zealand which is around 172 east, 43 south.

I changed the coordinates in the .php file from (0, 0), 1) - the last digit is for magnification.

map.setCenter(new GLatLng(-40, 182), 4)

You'll need to play around a bit to get the coordinates and magnification that work best for you. You can find your latitude and longitude from www.worldatlas.com

I guess for most people this will do until the fields become parameters.

This is a really neat module and I'm looking forward to our visitors starting to appear on the map!

Have fun!
Vicki
 
Logged Logged  
  The administrator has disabled public write access.
#179
Re:(pre-)zoom in on location 1 Year, 4 Months ago  
Hi Vicky,

thanks for replying to the topic,

because of your reply I too changed line 213 of mod_j15visitormap.php
to
map.setCenter(new GLatLng(52.167194, 5.537109), 6);
centering on the netherlands and part
of Belgium where most my visitors come from.

view
(on bottom of page)

greetings,
Bernhard
 
Logged Logged  
  The administrator has disabled public write access.
#180
DART ()
User Offline
Re:(pre-)zoom in on location 1 Year, 4 Months ago  
That's great! we'll add this as a feature
 
Logged Logged  
  The administrator has disabled public write access.
#181
DART ()
User Offline
Re:(pre-)zoom in on location 1 Year, 4 Months ago  
Module has been updated to parametrize latitude, longitude and zoom
 
Logged Logged  
  The administrator has disabled public write access.
Go to top

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!

Sponsors

Login Form






Lost Password?
No account yet? Register

Generated in 1.44205 Seconds