hi,
i have created a google map in html5 output like described in the tutorial. the map starts in satellite view. is there a way to start the map in the ordinary map mode (non satellite view), so that the user don't have to switch to normal mode manually?
starting Google Maps in non-satellite view
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
HI,
Yep you can change the default. It's in the HTML page and you need to find and change this line:
You then have the options:
ROADMAP
SATELLITE
HYBRID
TERRAIN
So for example to change the default to terrain you would change the line to:
Remember as soon as you republish the HTML page this will get over written.
Regards,
Hopki
Yep you can change the default. It's in the HTML page and you need to find and change this line:
Code: Select all
mapTypeId: google.maps.MapTypeId.HYBRID
ROADMAP
SATELLITE
HYBRID
TERRAIN
So for example to change the default to terrain you would change the line to:
Code: Select all
mapTypeId: google.maps.MapTypeId.TERRAIN
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Hi, Hopki!
Great! It just came right to help me out with the tests I,m doing on a tour.
Is there a way to change the initial position of the map?. I mean the initial zoom and also the position of the map so that the "hotspots" are in the center of the frame when opening.
Thanks!
Regards, Martin
Great! It just came right to help me out with the tests I,m doing on a tour.
Is there a way to change the initial position of the map?. I mean the initial zoom and also the position of the map so that the "hotspots" are in the center of the frame when opening.
Thanks!
Regards, Martin
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Martin,
Not really played with this as what your asking it sort of does as default?
The map opens with all the locations in view, so centring all the nodes.
Can you do a screen shot and highlight what you mean to give me a better understanding for what it is our after?
Regards,
Hopki
Not really played with this as what your asking it sort of does as default?
The map opens with all the locations in view, so centring all the nodes.
Can you do a screen shot and highlight what you mean to give me a better understanding for what it is our after?
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Hi, Hopki!
Yes the map opens certainly with all the nodes centered, but in case one need it zoomed out a little more, is that possible?
This is the default zoom:
But just as an example I would prefer this initial position of the zoom:
BTW, is there a way to move the map automatically to have the active node in the center or center the map when clicking on a hotspot in the panorama?
Thanks for your help.
Regards, Martin
Yes the map opens certainly with all the nodes centered, but in case one need it zoomed out a little more, is that possible?
This is the default zoom:
But just as an example I would prefer this initial position of the zoom:
BTW, is there a way to move the map automatically to have the active node in the center or center the map when clicking on a hotspot in the panorama?
Thanks for your help.
Regards, Martin
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Martin,
This can be set manually but you need to remove some code and change a value.
First remove this code:
This is found at the bottom or the page, make sure you remove all the brackets or you may get an error.
Now your looking for:
The value zoom: 14, is what you adjust.
0 = zoom out max
19 = zoom in max
Regards,
Hopki with a little help from Christoph
This can be set manually but you need to remove some code and change a value.
First remove this code:
Code: Select all
}
if (!bounds.isEmpty()) {
map.fitBounds(bounds);
Now your looking for:
Code: Select all
var mapOptions = {
zoom: 14,
center: activeNodeLatLng,
mapTypeId: google.maps.MapTypeId.HYBRID
0 = zoom out max
19 = zoom in max
Regards,
Hopki with a little help from Christoph
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ArkiTonio
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Guys,
For now you can only effect the Zoom by modifying the skin.js file.
In V6 out later you can set zoom and if your want the 45 degrees tilt fro the Map elements properties.
Regards,
Hopki
For now you can only effect the Zoom by modifying the skin.js file.
In V6 out later you can set zoom and if your want the 45 degrees tilt fro the Map elements properties.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
I've just tested this and it seems to be working. If "Disable 45º View" is selected, then when you zoom in, then the map doesn't switch to the 45º view. Only if you manually click the map control to turn it on.
Hi k.ary n,
Thanks for checking on this.
Can you please look at digitaldarwin.au.... see the map select button top centre. When that is selected, the map appears at 45 deg.
Is this use case like the "manually click the map control" that you mention?
Although it's nice and workable as it is, the map will be more readable if it's not at 45 degrees.
Thanks, Matt
Thanks for checking on this.
Can you please look at digitaldarwin.au.... see the map select button top centre. When that is selected, the map appears at 45 deg.
Is this use case like the "manually click the map control" that you mention?
Although it's nice and workable as it is, the map will be more readable if it's not at 45 degrees.
Thanks, Matt