barryhunter / classygmaps

Rip-off of Classic Google Maps, get a mostly functional version of Classic Maps, implemented with the Maps API
26 stars 14 forks source link

Scale Bar #104

Open fm-usa opened 8 years ago

fm-usa commented 8 years ago

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

barryhunter commented 8 years ago

Sadly the API doesnt have any options to use alternate units

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

fm-usa commented 8 years ago

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

barryhunter commented 8 years ago

No Try zooming, it dynamically rescales. The discrete scales are not are not nice round numbers On 28 Feb 2016 12:53, "fm-usa" notifications@github.com 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 .

fm-usa commented 8 years ago

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 ]

barryhunter commented 8 years ago

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.

cxw42 commented 8 years ago

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.

barryhunter commented 8 years ago

Ha, I never knew that either. Neat.

fm-usa commented 8 years ago

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.