Re: Remove one of the Map type buttons
Wasn't it Will who wrote:
>
>Mike, can you give me a line number where GMapType() is? and if you
>know, a line number for where the normal map type gets created - I am
>searching....but not finding the first. thanks
In maps2.31a.api.js and maps.30.api.js the GMapType class is defined on
line 209
function N(){}
Note that there's no parameters, no code and no initializer. All there
are are a handful of methods, not all of which are accessible.
G_NORMAL_MAP is created on lines 10 and 11 respectively in those two
versions.
if(a.length>0){
var d=new Sa(a,qb);
var e=new aa([d],_mMapMode,_mMapModeShort,"m");
Na.push(e);
s("G_NORMAL_MAP",e)
}
At this point "a" contains an array of paths to tiles (the workload is
shared equally across however many paths are listed), and "qb" is an
empty object of inaccessible class "bb".
aa() and Sa() are inaccessible classes (which call other inaccessible
things, which call others, so it would be a real pain to duplicate the
whole stack).
Na is G_DEFAULT_MAP_TYPES
s() is the thing that makes an object accessible.
--
The Blackpool Community Church Javascript Team
http://www.econym.demon.co.uk/googlemaps/
0 Comments:
Yorum Gönder
<< Home