Hello,

I'm trying to understand how Mike Williams' 'CustomGetTileUrl'
function is used (http://econym.org.uk/gmap/custommap.htm). As you
will probably realise, I am fairly new to JavaScript. However, I
haven't been able to find an answer to the following problem anywhere
online.

I have been trying to understand the example on this website:

http://www.microtyp.org/

The code from the website is as follows:


  var tilelayers = [new GTileLayer(copyrightCollection , 10, 13)];
      tilelayers[0].getTileUrl = CustomGetTileUrl;

  function CustomGetTileUrl(a,b) {
    var z = b;
    var f = "/map/index.php?x="+a.x+"&y="+a.y+"&zoom="+z;
    return f;
  }


CustomGetTileUrl seems to require two input arguments, which are
passed to a php query. However, the line that calls the function
doesn't pass any arguments to CustomGetTileUrl. Also, a and b are not
global variables.

If anyone could shed any light on where a and b come from this it
would be very helpful. I apologise if this is a very silly question.

Many thanks,
Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to