Joomla.it Forum
Joomla! 3 => Joomla! 3 => : judyksp 12 Feb 2010, 13:25:19
-
Sorry but I do not speak Italian. In fact, it took me one week before I can even get this far to write this post. :-[
This is a great module and I see many potentials for it. After several hits with the wall, I finally managed to get it to work.
Now I have three issues that I cannot seem to get around:
a. my map is way too small. How can I get the map to zoom automatically?
b. Can I change the marker? If yes, how do I do this?
c. When I click on the marker, the popup is too big. Can I make that smaller? Or can the popup be from my article which is actually a picture? I can make a thumbnail if required.
My website is http://ksvtdevt.kohsamui-virtual-tours.com/ . To login in, type test and test01 and then click on map from the top menu. This is development site.
-
- I think there's a zoom factor hardcoded or as a parameter, for landing page, then you can increase zoom factor by double click on map.
M.
-
I do not want my viewers to click on the map to zoom. I would prefer to fix the map size and remove all the zooming around. This is a tourist map of the island and it is not point for the viewer to try and zoom and then get themselves lost.
That is why I need to know where I should place the parameters to make the map bigger. Do I have to change the source code of this module?
-
I would prefer to fix the map size and remove
---------------------------------------------
I don't know your module or any modules to do this, I know that the starting zoom factor is a parameter like geographical reference
M.
-
Where can I put the starting zoom factor? Or how do I fix the size of the map?
I do not mind fixing the size. In fact that would be much better as the users cannot resize it then. Please let me know how I can do this with your module.
-
I've not a module, I wrote, as a procedural code, only a single page that show me a flag in some custom place, come from a db query.
This is a snippet of header inclusion code(note setting zoom):
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("MyMap")); // map istance
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng('Your latitude', Your longitude ), 'Your custom starting zoom value');
map.setMapType(G_SATELLITE_MAP); // Tipo mappa default (satellite)
function createMarker(point, text, title) {
var marker = new GMarker(point,{title:title});
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(text);
});
return marker;
}
nothing to do, it comes from Google api
M.
-
Sorry for the late reply. I was away and have just got back.
On your mail, which file should I be looking at for the codes?
-
Hi
I am still not able to find out where I should add those codes. Is it in all the three .js files? If yes, should I be adding it after the function(){ ...} or before it?
Regards