[mapguide-users] re; Google and mapguide scales
Kori Maleski
kori.maleski at gmail.com
Mon Apr 20 16:03:35 EDT 2009
Google Maps scales differ depending on latitude.
Here is a javascript example to roughly gauge the approximate scale based on
the Google Zoom Factor:
i.e. Google Zoom factor of 1 would be approximately 1:204800000
switch(this.map.getZoom())
{
case 1:
sScale = "204 800 000"
fScale = 204800000
break;
case 2:
sScale = "102 400 000"
fScale = 102400000
break;
case 3:
sScale = "51 200 000"
fScale = 51200000
break;
case 4:
sScale = "25 600 000"
fScale = 25600000
break;
case 5:
sScale = "12 800 000"
fScale = 12800000
mousefactor = 0;
break;
case 6:
sScale = "6 400 000"
fScale = 6400000
break;
case 7:
sScale = "3 200 000"
fScale = 3200000
break;
case 8:
sScale = "1 600 000"
fScale = 1600000
break;
case 9:
sScale = "800 000"
fScale = 800000
break;
case 10:
sScale = "400 000"
fScale = 400000
break;
case 11:
sScale = "200 000"
fScale = 200000
break;
case 12:
sScale = "100 000"
fScale = 100000
break;
case 13:
sScale = "50 000"
fScale = 50000
break;
case 14:
sScale = "25 000"
fScale = 25000
break;
case 15:
sScale = "12 500"
fScale = 12500
break;
case 16:
sScale = "6 250"
fScale = 6250
break;
case 17:
sScale = "3 125"
fScale = 3125
break;
}
Again this is just for a rough approximation. MapGuide Maestro's MgCooker
can generate or seed tiles.
Cheers,
On Sun, Apr 19, 2009 at 11:13 AM, girish kumar bv
<girish778 at rediffmail.com>wrote:
> Hi,
>
> Can anyone help me out in relating mapguide scales with those of google
> maps scale.
>
> 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 .
>
> Is there an apps to generate tiles from thematic layer of mapguide studio
> corresponding to google map scales.
>
> Any help is appreciated.
>
> regards,
> girish
>
>
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
> _______________________________________________
> 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/20090420/14265109/attachment.html
More information about the mapguide-users
mailing list