Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2024-08

OpenStreetMap / Leaflet example ?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Jean SUZINEAU
Jean SUZINEAU wrote 10 lines
In July I've made a small app (in French) to compute the time of sun rise for the current location: https://jsuzineau.github.io/pascal_o_r_mapping/jsCiel/ https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2024_07_16_jsCiel Eventually if it's useful I could extract some code from it to make an example for pas2js/JOB of access to OpenStreetMap / Leaflet from Web Assembly.

It's definitely useful, it would be nice to be able to include in pas2js. With demo, it would be even better :-)

Michael.

Jean SUZINEAU
to Michael Van Canneyt

Le 29/08/2024 ? 09:05, Michael Van Canneyt via Pas2js a ?crit?:

It's definitely useful, it would be nice to be able to include in pas2js. With demo, it would be even better ?

I've just created a merge request:

https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/839

This is my first contribution to Freepascal and first pull request since a suggestion of fix of Math.SinCos on Linux something like 24 years ago, so it may not be right the first time ...

I have temporarily published the running example at :

https://jsuzineau.github.io/pascal_o_r_mapping/leaflet/

I created my interface and class for Leaflet? by hand with just the few methods I use, but I imagine there is a better way to do this with webidl2pas

Michael Van Canneyt
to Jean SUZINEAU
Jean SUZINEAU wrote 19 lines
Le 29/08/2024 ? 09:05, Michael Van Canneyt via Pas2js a ?crit?: > It's definitely useful, it would be nice to be able to include in pas2js. > With demo, it would be even better ? I've just created a merge request: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/839 This is my first contribution to Freepascal and first pull request since a suggestion of fix of Math.SinCos on Linux something like 24 years ago, so it may not be right the first time ... I have temporarily published the running example at : https://jsuzineau.github.io/pascal_o_r_mapping/leaflet/ I created my interface and class for Leaflet? by hand with just the few methods I use, but I imagine there is a better way to do this with webidl2pas

No problem. I will look at the patch this weekend, but already: Thanks for the contribution. The more demos, the better... :-)

Michael.