Re: Remove one of the Map type buttons
what I am up to:
Line 10: looks like the initialization for all the default map types.
in Line 10 this looks like the construction sequence for G_NORMAL_MAP:
var d=new Za(a,vb);
var e=new aa( [d],_mMapMode, _mMapModeShort, "m" );
Ua.push(e);
r("G_NORMAL_MAP",e)
Ua is an array of map types.
Interestingly G_NORMAL_MAP occupies Ua[1], while the non-maptype
G_DEFAULT_MAPTYPES label occupies the first slot.
Line 11: r();
Line 248: Za(); contains baseUrls used by G_NORMAL_MAP and HYBRID
Line 253: Ra(); also contains baseUrls used by SATELLITE
Line 226: aa();
vb has something to do with zoom levels and copyright -- see line 261
---
it might follow then that to add a new map type you would:
var d = newZa(pathtoTiles, copyrightinfo, png); //not sure what png is?
var e=new aa( [d],_mMapMode, _mMapModeShort, "m" ); // not sure what "m" is
Ua.push(e);
r("MAP_TYPE_NAME", e); //note - NOT for the button!
Not sure where you get the button text in there, but this should be
close. And the function calls prolly need to be map.newZa() or
something like that, and you might want to use more unique var names.
0 Comments:
Yorum Gönder
<< Home