Re: Map Widget - how does it actually work?

2020-05-30 Thread Prothero-ELS via use-livecode
Graham,
My demo stack was enhanced a lot by Hermann but I don’t know where it is, after 
a cursory search. He added a bunch of other capabilities, but I felt a quick 
look at the Google map docs would make it easy to add them. His expanded 
version may be in the examples repository. I didn’t check it.

My main problem was to calculate the bounding lat/lons of the displayed map.

Good luck with it.

William Prothero
https://earthlearningsolutions.org

> On May 29, 2020, at 11:24 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Bill, thanks for all this. I will study it today (it’s breakfast time in 
> France as I write this).
> 
> I did some internet searching to look at the underlying Apple Map system - 
> which is used for the LC version of the Map widget for iOS - and its API. 
> It’s rich and complex, so the widget just scratches the surface of the 
> available functionality, 
> 
> This saddened my a bit, but then I reflected on the enormous simplification 
> that LC represents for a developer compared with what you’d have to learn and 
> apply before getting anywhere at all coding a mobile app ‘outside’ LC. It 
> really is quite alarming. I was a geek once, and learned and applied some 
> very obscure languages within very primitive and obscure systems, but I have 
> zero taste for that sort of thing now. As a further example, take a quick 
> look at what Apple say to attract you to their Swift language. They want to 
> tell you it’s easy and fun - I think one can have a contrary opinion, 
> especially if one has never coded in Objective-C or anything like it. [That 
> was a pro-LiveCode rant, in case you didn’t notice.]
> 
> Graham
> 
>> On 30 May 2020, at 00:44, prothero--- via use-livecode 
>>  wrote:
>> 
>> Graham:
>> If that doesn’t have everything, I have a zip file at:
>> http://earthlearningsolutions.org/google-static-maps-demo/ 
>> 
>> William A. Prothero
>> Santa Barbara, CA. 93105
>> http://earthlearningsolutions.org/
>> 
 On May 29, 2020, at 3:42 PM, William Prothero via use-livecode 
  wrote:
>>> 
>>> Graham:
>>> Here is a link to an example that I, with lots of help from Hermann 
>>> created. Maybe it will be useful. All done in livecode, so it should work. 
>>> Haven’t tried it since 2017, tho.
>>> Bill
>>> 
>>> https://www.dropbox.com/s/kg5l80bi82u1sap/google-maps-demo.livecode?dl=0 
>>> 
>>> 
>>> William A. Prothero
>>> https://earthlearningsolutions.org
>>> 
 On May 25, 2020, at 1:57 PM, Graham Samuel via use-livecode 
  wrote:
 
 Back to my problems with inadequate documentation on widgets. The Map 
 widget is probably very powerful, but the Dictionary entry simple tells 
 you the names of the parameters. I can’t work out anything about the 
 format of the data you can feed in, or what it looks like when it comes 
 out. There isn’t even enough info to start a meaningful experiment, IMHO.
 
 Does anyone know of a source of helpful documentation on this? I am as 
 ever interested in the iOS version.
 
 Thanks for any info.
 
 Graham
 ___
 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
> 
> 
> ___
> 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


Re: Map Widget - how does it actually work?

2020-05-30 Thread Graham Samuel via use-livecode
Bill, thanks for all this. I will study it today (it’s breakfast time in France 
as I write this).

I did some internet searching to look at the underlying Apple Map system - 
which is used for the LC version of the Map widget for iOS - and its API. It’s 
rich and complex, so the widget just scratches the surface of the available 
functionality, 

This saddened my a bit, but then I reflected on the enormous simplification 
that LC represents for a developer compared with what you’d have to learn and 
apply before getting anywhere at all coding a mobile app ‘outside’ LC. It 
really is quite alarming. I was a geek once, and learned and applied some very 
obscure languages within very primitive and obscure systems, but I have zero 
taste for that sort of thing now. As a further example, take a quick look at 
what Apple say to attract you to their Swift language. They want to tell you 
it’s easy and fun - I think one can have a contrary opinion, especially if one 
has never coded in Objective-C or anything like it. [That was a pro-LiveCode 
rant, in case you didn’t notice.]

Graham

> On 30 May 2020, at 00:44, prothero--- via use-livecode 
>  wrote:
> 
> Graham:
> If that doesn’t have everything, I have a zip file at:
> http://earthlearningsolutions.org/google-static-maps-demo/ 
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
>> On May 29, 2020, at 3:42 PM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Graham:
>> Here is a link to an example that I, with lots of help from Hermann created. 
>> Maybe it will be useful. All done in livecode, so it should work. Haven’t 
>> tried it since 2017, tho.
>> Bill
>> 
>> https://www.dropbox.com/s/kg5l80bi82u1sap/google-maps-demo.livecode?dl=0 
>> 
>> 
>> William A. Prothero
>> https://earthlearningsolutions.org
>> 
>>> On May 25, 2020, at 1:57 PM, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> Back to my problems with inadequate documentation on widgets. The Map 
>>> widget is probably very powerful, but the Dictionary entry simple tells you 
>>> the names of the parameters. I can’t work out anything about the format of 
>>> the data you can feed in, or what it looks like when it comes out. There 
>>> isn’t even enough info to start a meaningful experiment, IMHO.
>>> 
>>> Does anyone know of a source of helpful documentation on this? I am as ever 
>>> interested in the iOS version.
>>> 
>>> Thanks for any info.
>>> 
>>> Graham
>>> ___
>>> 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


___
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


Re: Map Widget - how does it actually work?

2020-05-29 Thread prothero--- via use-livecode
Graham:
If that doesn’t have everything, I have a zip file at:
http://earthlearningsolutions.org/google-static-maps-demo/ 

William A. Prothero
Santa Barbara, CA. 93105
http://earthlearningsolutions.org/

> On May 29, 2020, at 3:42 PM, William Prothero via use-livecode 
>  wrote:
> 
> Graham:
> Here is a link to an example that I, with lots of help from Hermann created. 
> Maybe it will be useful. All done in livecode, so it should work. Haven’t 
> tried it since 2017, tho.
> Bill
> 
> https://www.dropbox.com/s/kg5l80bi82u1sap/google-maps-demo.livecode?dl=0 
> 
> 
> William A. Prothero
> https://earthlearningsolutions.org
> 
>> On May 25, 2020, at 1:57 PM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> Back to my problems with inadequate documentation on widgets. The Map widget 
>> is probably very powerful, but the Dictionary entry simple tells you the 
>> names of the parameters. I can’t work out anything about the format of the 
>> data you can feed in, or what it looks like when it comes out. There isn’t 
>> even enough info to start a meaningful experiment, IMHO.
>> 
>> Does anyone know of a source of helpful documentation on this? I am as ever 
>> interested in the iOS version.
>> 
>> Thanks for any info.
>> 
>> Graham
>> ___
>> 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


Re: Map Widget - how does it actually work?

2020-05-29 Thread William Prothero via use-livecode
Graham:
Here is a link to an example that I, with lots of help from Hermann created. 
Maybe it will be useful. All done in livecode, so it should work. Haven’t tried 
it since 2017, tho.
Bill

https://www.dropbox.com/s/kg5l80bi82u1sap/google-maps-demo.livecode?dl=0 


William A. Prothero
https://earthlearningsolutions.org

> On May 25, 2020, at 1:57 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Back to my problems with inadequate documentation on widgets. The Map widget 
> is probably very powerful, but the Dictionary entry simple tells you the 
> names of the parameters. I can’t work out anything about the format of the 
> data you can feed in, or what it looks like when it comes out. There isn’t 
> even enough info to start a meaningful experiment, IMHO.
> 
> Does anyone know of a source of helpful documentation on this? I am as ever 
> interested in the iOS version.
> 
> Thanks for any info.
> 
> Graham
> ___
> 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


Re: Map Widget - how does it actually work?

2020-05-26 Thread Graham Samuel via use-livecode
Thanks Bernard. I shall shelve my map utility until I notice the bug is fixed.

Graham

> On 26 May 2020, at 19:18, Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Unfortunately polylines stoppt working in recent versions of LC
> 
> https://quality.livecode.com/show_bug.cgi?id=22377
> 
> Kind regards
> Bernd
> 
> ___
> 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


Re: Map Widget - how does it actually work?

2020-05-26 Thread Niggemann, Bernd via use-livecode
Unfortunately polylines stoppt working in recent versions of LC

https://quality.livecode.com/show_bug.cgi?id=22377

Kind regards
Bernd

___
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


Re: Map Widget - how does it actually work?

2020-05-26 Thread Graham Samuel via use-livecode
Thanks Alex - that’s solid gold! I might even be able to use the widget, though 
perhaps not for what I intended which was to draw a route consisting of a 
series of standard Lat-Lon coordinates, in other words a very large number of 
linked polylines. This is a tentative conclusion, so probably wrong.

This is the first time I’ve realised that the Guide you get when you click on 
‘Dictionary’ in the LC menu is different from the “User Guide” which you can 
access via the same menu. I haven’t got time to find out the differences, but I 
note that “Map Widget” appears in one and not the other. Or am I wrong? Try 
searching  the "LiveCode 9.6.0-rc-2 User Guide 5/19/20” and see what you get.

Graham


> On 26 May 2020, at 02:39, Alex Tweedly via use-livecode 
>  wrote:
> 
> However, in the dictionary under "Guide" you can find some more info / 
> example about the map widget. In particular, it defines the format used for  
> region, coordinates, span and markers - which is probably all that you need 
> (I think all the others parameters in the API are booleans).


___
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


Re: Map Widget - how does it actually work?

2020-05-25 Thread Mark Wieder via use-livecode

On 5/25/20 5:39 PM, Alex Tweedly via use-livecode wrote:

The source code for all the widgets provided 'out of the box' is 
accessible so you can take those widgets as a base and improve and 
extended them as you need.


Unfortunately, there is a non-obvious meaning to "out of the box" - what 
it means is "source code for all the widgets provided 'out of the box' 
*in the community version* is accessible ..."


So, sadly, you can't just go look at the source code to find out what 
you need.


The manifest xml file for the map widget lists its license as 
"community", which seems wrong. However, *every* extension has a license 
of "community", which seems wronger still. I don't see any way to set 
that, so it must be an extension builder "feature".


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


Re: Map Widget - how does it actually work?

2020-05-25 Thread Alex Tweedly via use-livecode
Well, the big advantage of widgets is that you can look at the source 
code. As it says in the Livecode Lesson ( 
http://lessons.livecode.com/m/4071/l/1005132-how-do-i-modify-a-livecode-widget 
),


What do you do if a LiveCode widget is missing a property or message 
you need?


The source code for all the widgets provided 'out of the box' is 
accessible so you can take those widgets as a base and improve and 
extended them as you need.


Unfortunately, there is a non-obvious meaning to "out of the box" - what 
it means is "source code for all the widgets provided 'out of the box' 
*in the community version* is accessible ..."


So, sadly, you can't just go look at the source code to find out what 
you need.


However, in the dictionary under "Guide" you can find some more info / 
example about the map widget. In particular, it defines the format used 
for  region, coordinates, span and markers - which is probably all that 
you need (I think all the others parameters in the API are booleans).


Disclaimer: I have never used the map widget - everything I say here is 
taken at face value from the doc and the visible files within the widget 
folder of 9.6.0(rc1)


Alex.

On 25/05/2020 21:57, Graham Samuel via use-livecode wrote:

Back to my problems with inadequate documentation on widgets. The Map widget is 
probably very powerful, but the Dictionary entry simple tells you the names of 
the parameters. I can’t work out anything about the format of the data you can 
feed in, or what it looks like when it comes out. There isn’t even enough info 
to start a meaningful experiment, IMHO.

Does anyone know of a source of helpful documentation on this? I am as ever 
interested in the iOS version.

Thanks for any info.

Graham
___
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