if you want a meaningful scale control on your map, your tiles should be geo-referenced.
If your tile is correctly geo-ferenced and your total pixel at each level is compatible with googles, the scale control should just work by itself. It seems have internal ways to determine the scale, but the difference between various of projection should be just a matter of minor distortion (except high latitude and large area). here are a few examples you can try: http://gmaps-utility-library-dev.googlecode.com/svn/trunk/arcgislink/examples/flat.html and http://gmaps-utility-library-dev.googlecode.com/svn/trunk/arcgislink/examples/stateplane.html On Jun 25, 10:34 am, shmil <[email protected]> wrote: > I am creating a custom map with linear projection and I would like > GScaleControl to work with it. The sample code is available > athttp://evonymap.com. The GScaleControl does not determine scales in > any rational fashion from my GProjection implementation, but it works > fine if my instance was replaced with a GMercatorProjection, which the > map doesn't use. Does anyone have an idea what specifically ties up > the GScaleControl to GMercatorProjection to make it work? > > I was following up on an old thread > athttp://groups.google.ca/group/Google-Maps-API/browse_thread/thread/d7... > and was hoping there is a solution by now. > > A more specific question is which coordinates does GScaleControl use > with GLatLng.distanceFrom(a) to figure out the scale? What "a" and > "this" are being used? I doubt it will help, but it's worth a try. I > think this control is very useful. > > Thank you. > - Novi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
