classygmaps icon indicating copy to clipboard operation
classygmaps copied to clipboard

Scale Bar

Open fm-usa opened this issue 8 years ago • 8 comments

Where is MILES? Got to have MILES. Our blocks are measured in parcels of MILES.

fm-usa avatar Feb 28 '16 12:02 fm-usa

Sadly the API doesnt have any options to use alternate units

https://developers.google.com/maps/documentation/javascript/3.exp/reference#ScaleControlOptions

barryhunter avatar Feb 28 '16 12:02 barryhunter

The Scale Bar can not have both? Is it not just a graphic overlay?

fm-usa avatar Feb 28 '16 12:02 fm-usa

No Try zooming, it dynamically rescales. The discrete scales are not are not nice round numbers On 28 Feb 2016 12:53, "fm-usa" [email protected] wrote:

The Scale Bar can not have both? Is it not just a graphic overlay?

— Reply to this email directly or view it on GitHub https://github.com/barryhunter/classygmaps/issues/104#issuecomment-189864585 .

barryhunter avatar Feb 28 '16 13:02 barryhunter

I know you're trying to keep it OEM to what it was, but any improvements? Like a transparent floating circle scale? It be a Drag and Measure.

[ Any chance, you bought a used Goldwing last year ]

fm-usa avatar Feb 28 '16 13:02 fm-usa

Nothing to do with OEM, just lazy. The existing scale bar is just a matter of toggling the option in the API. To do anything more would need to create it manually.

barryhunter avatar Feb 29 '16 21:02 barryhunter

fm, in case you're not aware, clicking on the scale bar will toggle it between miles and kilometers. :) I see Google Maps defaults to miles for me, but I don't know how they decide what the default is. Presumably based on geolocation of the server. Anyway, http://stackoverflow.com/a/25600717/2877364 has one suggestion - manually trigger click() on the scale-bar control after load.

For what it's worth, here's the open issue requesting Google add this to the API.

cxw42 avatar Mar 02 '16 17:03 cxw42

Ha, I never knew that either. Neat.

barryhunter avatar Mar 02 '16 17:03 barryhunter

Thanks, I did know the Miles/Kilo switching. I just wish there was a 'drag and hover' miles bar or circle with a center dot. I also suggested that to GOOFle but went on deaf ears I guess.

From: cxw42 Sent: Wednesday, March 02, 2016 11:36 AM To: barryhunter/classygmaps Cc: fm-usa Subject: Re: [classygmaps] Scale Bar (#104)

fm, in case you're not aware, clicking on the scale bar will toggle it between miles and kilometers. :) I see Google Maps defaults to miles for me, but I don't know how they decide what the default is. Presumably based on geolocation of the server. Anyway, http://stackoverflow.com/a/25600717/2877364 has one suggestion - manually trigger click() on the scale-bar control after load.

— Reply to this email directly or view it on GitHub.

fm-usa avatar Mar 02 '16 17:03 fm-usa