<div>Google Maps scales differ depending on latitude.</div>
<div> </div>
<div>Here is a javascript example to roughly gauge the approximate scale based on the Google Zoom Factor:</div>
<div>i.e. Google Zoom factor of 1 would be approximately 1:204800000<br></div>
<div> </div>
<div> </div>
<div>switch(this.map.getZoom())<br> {<br> case 1:<br> sScale = "204 800 000" <br> fScale = 204800000<br> <br> break; <br> case 2:<br> sScale = "102 400 000"<br> fScale = 102400000<br>
<br> break;<br> case 3:<br> sScale = "51 200 000"<br> fScale = 51200000<br> <br> break;<br> case 4:<br> sScale = "25 600 000"<br> fScale = 25600000<br> <br> break;<br> case 5:<br>
sScale = "12 800 000"<br> fScale = 12800000<br> mousefactor = 0;<br> break;<br> case 6:<br> sScale = "6 400 000"<br> fScale = 6400000<br> </div>
<div> break;<br> case 7:<br> sScale = "3 200 000"<br> fScale = 3200000<br> <br> break;<br> case 8:<br> sScale = "1 600 000"<br> fScale = 1600000<br> <br> break;<br> case 9:<br>
sScale = "800 000"<br> fScale = 800000<br> <br> break;<br> case 10:<br> sScale = "400 000"<br> fScale = 400000<br> <br> break;<br> case 11:<br> sScale = "200 000"<br>
fScale = 200000<br> <br> break;<br> case 12:<br> sScale = "100 000"<br> fScale = 100000<br> <br> break;<br> case 13:<br> sScale = "50 000"<br> fScale = 50000<br> break; <br>
case 14:<br> sScale = "25 000"<br> fScale = 25000<br> <br> break;<br> case 15:<br> sScale = "12 500"<br> fScale = 12500<br> <br> break;<br> case 16:<br> sScale = "6 250"<br>
fScale = 6250<br><br> break;<br> case 17:<br> sScale = "3 125"<br> fScale = 3125<br> break;<br> <br> <br> <br> }</div>
<div> </div>
<div> </div>
<div> </div>
<div>Again this is just for a rough approximation. MapGuide Maestro's MgCooker can generate or seed tiles.</div>
<div> </div>
<div> </div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Sun, Apr 19, 2009 at 11:13 AM, girish kumar bv <span dir="ltr"><<a href="mailto:girish778@rediffmail.com">girish778@rediffmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Can anyone help me out in relating mapguide scales with those of google maps scale. <br><br>Is it possible to generate tiles automatically for all scale ranges in mapguide studio, in our apps we are suppose to generate tiles from the composed thematic map .<br>
<br>Is there an apps to generate tiles from thematic layer of mapguide studio corresponding to google map scales.<br><br>Any help is appreciated.<br><br>regards,<br><font color="#888888">girish<br><br>
<table style="FONT-SIZE: 11px; LINE-HEIGHT: 15px; FONT-FAMILY: Verdana" height="57" cellspacing="0" cellpadding="0" width="644" border="0">
<tbody>
<tr>
<td><a href="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><img></a></td></tr></tbody></table></font><br>_______________________________________________<br>
mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></blockquote></div><br>