sg

Cuma, Ocak 06, 2006

Re: Remove one of the Map type buttons


I can only guess that you derive your custom map from the first map in
the map.getMapTypes() array. If you have only specified the satellite
map, then the custom map will be derived from that. The satellite type
is especially bad since all the tiles are in some, as of yet,
ununderstandable format. I would suggest that you initialize your map
with the normal map type also.

I haven't tried this but I hope it might work for you (using the Mapki
custom map tutorial):
map = new
GMap(document.getElementById("map",[G_SATELLITE_TYPE,G_MAP_TYPE]);
yourmaptype = copy_obj(map.mapTypes[0]);
var toThrowAway = map.mapTypes.pop();
map.mapTypes[map.mapTypes.length] = yourmaptype

The pop function should cut the last item in the array and thus only
leave you with Satellite before you add your own.

Let me know if it works.

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık