Changing Zoomlevel on Bingmaps does not work

  • I have from start added a zoom=14" to the bingmaps layer which is a medium of what I need but I wanted to see if I could change that in some scenes by using the setzoom so I added this to some scenes
    onstart="layer[skin_map].setzoom(5);"

    It did not work so I removed all zoom settings and discovered that it still zoomed to my initial setting around 14.
    What ever I do it does not change from this. Is this a default setting and why does not using zoom="5" or any other level change this.

    Hans

  • Ok thanks. in meantime I have found this.

    The onstart="layer[skin_map].setzoom(5);" actually worked but only if I open after the initial load. I assume it is your zoomToSpotsExtent() that overrides it.

    I also found that adding the setzoom to the layer it self like this also worked. onmapready="skin_addmapspots();layer[skin_map].setzoom(12);" >

    I guess I can do what I want now easier by removing your default action.

    Hans

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!