[mapguide-users] web layout script

Jérôme DUCKERS jerome.duckers at gmail.com
Thu Dec 4 06:13:43 PST 2014


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 result will be better.

In place of "object", you will have the description of the object with all
the properties.





2014-12-04 14:23 GMT+01:00 GordonL <gordon.luckett at arrowgeomatics.com>:

> 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-script-tp5175525p5176465.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20141204/4860342a/attachment.html>


More information about the mapguide-users mailing list