Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Mapping Solutions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Perth, Western Australia
    Posts
    965

    Default Mapping Solutions

    Hi All

    We are currently looking into a hopefully basic mapping solution.

    We want to display map in windows using WebView2, when a user drops a pin on the map we want to get the GEO location and save a record in code. And then when the record is found it displays the location on the map.

    We don't expect a lot of throughput, although in the future we may be more like routing.

    The goto used to be Google Maps but what are the alternatives that people that people have found based on...

    - free, cheap
    - easy to implement

    We're currently looking at Bing Maps, has anyone else used Bing?
    Cheers,

    Thomas Murphy
    Triumph Business Systems Pty Ltd
    www.triumph.com.au

  2. #2
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,800

    Default Re: Mapping Solutions

    Thomas

    We've done quite a lot with this stuff. We long ago used both Google Maps and Bing, but there are many, many alternatives these days and many are free.

    See my much more recent presentation from Scanduc 2021 for some details, although that stuff - like everything we've done in that area - is Web, not Windows, but it should be adaptable using cWebView2browser to your needs. Some of the code behind that presentation is on GitHub/DataFlexCode: the LeafletLibrary and a demo workspace for it.

    Feel free to ask questions. I could do a Zoom (Teams, etc.) demo for you if we can find a time when we are both awake and working!

    Mike

  3. #3
    Join Date
    Mar 2009
    Location
    Cumming, Georgia USA
    Posts
    1,886

    Default Re: Mapping Solutions

    Testing out your Mapping solution using Mapbox. I have an AccessToken from Mapbox. In the following what is {id}, {z},{x},{y}?:

    Set psTileLayer to "https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=mykey

  4. #4
    Join Date
    Feb 2009
    Posts
    5,457

    Default Re: Mapping Solutions

    Hi Mike

    Just downloaded your library & demo

    Updated to 23.0 (just edited sws)

    I got a LocationIQ key and put it in config.json

    On the Simple Map Test I just clicked send and it draws a grey panel with a pin and zoom +/- but no map is displayed

    Tried a couple of other views too with same result

    The LocationIQ dashboard shows some activity on the geocoding requests but nothing on the map requests

    The anBox array in DrawMap is passed data

    Did I miss something?

    Thanks

    OK looking at the page source it seems to be wanting to get the tiles from MapBox i.e. not LocationIq or Mapquest for that matter
    OK2 looking a bit further seems that uses a Leaflet API key in config.json so I guess I need to hunt for one of those
    Last edited by Focus; 26-May-2023 at 05:13 AM. Reason: Extra Extra info
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

  5. #5
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,800

    Default Re: Mapping Solutions

    Andrew

    You'll need a Leaflet key first to display any maps at all. Do you have that?

    Mike

  6. #6
    Join Date
    Feb 2009
    Posts
    5,457

    Default Re: Mapping Solutions

    That is what was throwing me (the name) as it is actually the MapBox key

    Go it working now, thanks
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

  7. #7
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,800

    Default Re: Mapping Solutions


  8. #8
    Join Date
    Feb 2009
    Posts
    5,457

    Default Re: Mapping Solutions

    I know it is a demo and the main focus was geocoding but did you consider https://www.thunderforest.com/pricing/ for maps as they seem a lot less than mapbox?
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

  9. #9
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,800

    Default Re: Mapping Solutions

    Andrew

    I use Leaflet, which is free.

    Mike

  10. #10
    Join Date
    Feb 2009
    Posts
    5,457

    Default Re: Mapping Solutions

    Leaflet library is free but the mapbox data/tiles you access with it are not (once you go over 200k tiles)

    As I understand it OSM is free but it is not a map but a complex database that a map can be drawn from

    Third party companies like mapbox take that free data, render the map, host the service and then not unreasonably charge by the tile as they have servers to run etc
    Success consists of going from failure to failure without loss of enthusiasm - Winston Churchill

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •