I believe it is time for be to get reading glasses.
I cut and pasted your code and it works.
So obviously I have a typo somewhere.
Thanks for all the help, at least I learnt a few tricks on how to debug i.e.
alert and the tip from Jerome regarding console.debug
cheers
--
View this message in c
Mal,
If you like the alert function. You will fall in love with
console.debug()
The console.debug don't give you an alert message but a log in the console.
Be careful, console.debug doesn't work with IE !!
So use Chrome (with development tool) or Firefox (with the plugin Firebug)
and the resul
This works for me:
var myMap=parent.parent.mapFrame;
var X=myMap.GetCenter().X;
var Y=myMap.GetCenter().Y;
var Scale=prompt("Enter Scale: ","");
var newScale=parseInt(Scale);
ZoomToView(X,Y,Scale,true);
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/web-layout-s