Back to top

Autore Topic: How to make my map bigger  (Letto 4414 volte)

Offline judyksp

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
How to make my map bigger
« il: 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.

mau_develop

  • Visitatore
Re:How to make my map bigger
« Risposta #1 il: 12 Feb 2010, 14:10:19 »
- 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.
« Ultima modifica: 12 Feb 2010, 14:11:57 da mau_develop »

Offline judyksp

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re:How to make my map bigger
« Risposta #2 il: 12 Feb 2010, 14:21:38 »
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?

mau_develop

  • Visitatore
Re:How to make my map bigger
« Risposta #3 il: 17 Feb 2010, 14:02:18 »
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.

Offline judyksp

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re:How to make my map bigger
« Risposta #4 il: 18 Feb 2010, 10:54:23 »
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.

mau_develop

  • Visitatore
Re:How to make my map bigger
« Risposta #5 il: 18 Feb 2010, 12:36:04 »
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.
« Ultima modifica: 18 Feb 2010, 12:38:26 da mau_develop »

Offline judyksp

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re:How to make my map bigger
« Risposta #6 il: 23 Feb 2010, 12:01:03 »
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?

Offline judyksp

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re:How to make my map bigger
« Risposta #7 il: 08 Mar 2010, 14:41:42 »
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

 



Web Design Bolzano Kreatif