On Jun 25, 4:34 pm, 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?

Without getting into the guts of GScaleControl, you might want to
consider using Mike Williams' Euclidean projection, which is also
"flat".

I am using it here, with a slight modification to make both axes have
the same scale:
http://maps.forum.nu/gm_function_plotter.html

I have tried adding GScaleControl to it in my local copy, and it works
fine, only that since the mashup is not a map, the control is
meaningless, but it might work well for your map if you can use Mike's
projection.

--
Marcelo - http://maps.forum.nu
--





>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to