Re: Remove one of the Map type buttons
Wasn't it Will who wrote:
>
>Mike are you sure you are copying both the baseUrls and baseUrls[0] -
>which is where you set the path. If you set it at baseUrls then you
>will over ride the referenced map type. But you prolly know this.
The problem is that I can't find the .baseUrls properly in version 2, so
I'm currently not able to copy them.
In version 1, .baseUrls[] is a property of the GMapType().
In version 2, .baseUrls[] is a property of an obfuscatedly named
GTileLayer() which is in turn a property of the GMapType().
Let's call the GTileLayer() "Rd", which is its name in maps2.30.api.js.
The version 1 custom map technique of using copy_obj() will copy (a
reference to) the G_NORMAL_MAP.Rd object without prior knowledge of its
obfuscated name, but I can't see a way to copy
G_NORMAL_MAP.Rd.baseUrls[0] without such prior knowledge.
If I write code using "Rd", then it won't work when maps2.31a.api.js
goes live because the obfuscation is different and it becomes "Sd".
--
Mike Williams
Gentleman of Leisure
0 Comments:
Yorum Gönder
<< Home