Re: [mapguide-users] Getting layer's maxscale to Viewer API

2010-02-15 Thread Kenneth Skovhede, GEOGRAF A/S
Not sure this is what you are asking but, this is how I understand your question. Basically the output of an ASPX page is html (or any format really). Since you want to output the scale, you would want the following html output: var maxScale = <%=serverGeneratedMaxScale%>; GetMap().ZoomToView

[mapguide-users] Getting layer's maxscale to Viewer API

2010-02-15 Thread Johannes Foell
Hi List, I'm new to MG (and JS) and have a question about the layer's maxscale. I can read the maxscale out of the Layerdefinition using a XML-File. Having the maxscale read out for each layer, I need the highest maximum for the layergroup at the Viewer API to zoom to a given coordinate and this