I just uploaded a new version, with a few minor tweaks to my Google static maps demo stack, at Hermann’s suggestions (same link address I sent previously). You don’t need to get a Google APIKey anymore, but will need it for a real app.
If anybody would like to modify it to work with Bing maps or OSM, that would be great and I’d like to see it. Be careful, though, as a critical need, for my intended purpose, is to have the lat/lon values of the corners of the displayed map. The calculations that work for Google may not work for the other map services. For apps that generate a gazillion hits, you may have to pay, too. Best, Bill P > On Jul 7, 2017, at 7:59 AM, Jonathan Lynch via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hey guys - just a quick warning about google. Read their TOS very carefully > before building an app around their service. One can find several horror > stories online about Google cancelling contracts without really explaining > why. > > Bill's stack should work well with a little bit of adaptation for bing maps > and OSM providers. > > > Sent from my iPhone > >> On Jul 7, 2017, at 10:36 AM, Mark Wieder via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >>> On 07/06/2017 10:33 PM, William Prothero via use-livecode wrote: >>> Mark: >>> Yes, you’ve done it all. >> >> Cool. It's working as expected then. >> >> It was intended just to demo the display of a Google Static Map and show how >> to get the corners of the image so the lat/lon of the mouse position could >> be calculated. To do that, I had to rely oh Hermann’s expertise with >> Javascript to convert a posted solution to LCS. I spent time carefully >> checking that the corners calculation agreed with the box plotted by the >> maps api. The map image is also slightly stretched horizontally (to fit my >> own project map size) and I had to do some tweaking to the corners code to >> make that work. >>> The links to the Google API get the programmer to the web site that tells >>> how to display streets, display a map of a particular city or other >>> feature, add symbols, etc. For those who need to do that, this should help. >>> It’s pretty trivial to change the URL params, so I felt I could leave that >>> to the user. Actually, the entire thing is pretty trivial, but it did take >>> me quite a bit of time, thrashing through the details because I’d never >>> worked with the Google maps api, so perhaps others might find it useful. >>> My project will continue and plot data on a captured image, scroll the map, >>> etc. I hadn’t planned on including that part in the demo, but could, if >>> requested. >> >> The demo doesn't seem to be trivial at all, especially looking at the >> libraries involved - you've put a lot of work into that. >> >> -- >> Mark Wieder >> ahsoftw...@gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode