mobileaviation / flutter_mapping_lib

Basic Mapping Library for Flutter written in DART
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Does this example work on IOS? #1

Open bertbeck opened 4 years ago

bertbeck commented 4 years ago

I just tried to build and run the example on the ios simulator. It hangs/aborts with the following message:

Exception has occurred. SqfliteDatabaseException (DatabaseException(open_failed /sdcard/Download/VAC-EDWL-Langeoog.mbtiles))

I just read the note in the /files/README.md file.

"Copy the files from this directory to the /sdcard/Download directory on your device.."

How do we copy this file to the right location on IOS? It looks like on IOS, default files should go in the Documents directory but not sure how to place them there.

mobileaviation commented 4 years ago

Hello Bert,I have not tested it on an ios device yet. I do not own a mac so am not able to do so. But, generally speaking there should be no reason why it won't work on ios. You could just remove the mbtiles layer and test without. I do not know what the correct download  folder on ios should be. The example uses a general flutter lib to determine the locations on diffent device type. Please study the code. It should be simple to find.Regards, RobOp 26 mrt. 2020 20:12 schreef Bert Beckmann notifications@github.com: I just tried to build and run the example on the ios simulator. It hangs/aborts with the following message: Exception has occurred. SqfliteDatabaseException (DatabaseException(open_failed /sdcard/Download/VAC-EDWL-Langeoog.mbtiles)) I just read the note in the /files/README.md file. "Copy the files from this directory to the /sdcard/Download directory on your device.." How do we copy this file to the right location on IOS? It looks like on IOS, default files should go in the Documents directory but not sure how to place them there.

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

bertbeck commented 4 years ago

Thanks! I will study the code. I am digging deeply into understanding osm and map rendering.

It looks like you are pulling maptiles from your server using this url: "https://snapshots.openflightmaps.org/live/##AIRAC##/tiles/world/noninteractive/epsg3857/merged/256/latest/##Z##/##X##/##Y##.png";

Is that correct?

Are you running an OSM database in postgres on your backend using a config something like this? https://www.linuxbabe.com/ubuntu/openstreetmap-tile-server-ubuntu-18-04-osm

I'm a C#/C++/Java now Dart dev (love Dart) and want to use OSM as a backend for my map apps. I'm working on a Corona map right now. It looks like tiles are served up as .png's by your backend? I assume they are dynamically created (maybe cached) from a local postgres OSM database?

I'm trying to understand and eventually serve up minimal detail maps - just country and state/province boundaries with some major city labels and I think understanding the OSM database and tile rendering process will help me achieve this.

Thanks for your example - this helps me understand everything - soup to nuts.

If you could connect with me at https://www.linkedin.com/in/bert-beckmann/ or @FlutterUI on twitter I'd appreciate it and could be a resource as I get more familiar with OSM.

The whole .pbf to postres to postgis to .png map tile looks pretty heavyweight - my goal is to maintain a local postgres osm database and serve up svg in a lightweight fashion. I've just finished downloading the latest 50G OSM .pbf file and am embarking on loading it up.

mobileaviation commented 4 years ago

Hello Bert,

I am not owner or supply any backend services whatsoever. If you study the code you’ll see that there is a class called TileProvider or CachedTileProvider which you can supply an url to thats formatted like the one you’ve mentioned below. The Openflightmaps url is just an example. There are many sites that supply map tiles like openstreetmap and many others. There is a class that points to the openstreetmap tile servers as well. Please do check the code. The software itself is just a library that compiles into your own codebase. You don’t need any backend or postgressql database whatsoever unless you want to create and serve your own tiles but that not what this library is about.

Regards, Rob

Van: Bert Beckmann [mailto:notifications@github.com] Verzonden: vrijdag 27 maart 2020 15:04 Aan: mobileaviation/flutter_mapping_lib CC: Mobile Aviation Tools; Comment Onderwerp: Re: [mobileaviation/flutter_mapping_lib] Does this example work on IOS? (#1)

Thanks! I will study the code. I am digging deeply into understanding osm and map rendering.

It looks like you are pulling maptiles from your server using this url: "https://snapshots.openflightmaps.org/live/##AIRAC##/tiles/world/noninteractive/epsg3857/merged/256/latest/##Z##/##X##/##Y##.png";

Is that correct?

Are you running an OSM database in postgres on your backend using a config something like this? https://www.linuxbabe.com/ubuntu/openstreetmap-tile-server-ubuntu-18-04-osm

I'm a C#/C++/Java now Dart dev (love Dart) and want to use OSM as a backend for my map apps. I'm working on a Corona map right now. It looks like tiles are served up as .png's by your backend? I assume they are dynamically created (maybe cached) from a local postgres OSM database?

I'm trying to understand and eventually serve up minimal detail maps - just country and state/province boundaries with some major city labels and I think understanding the OSM database and tile rendering process will help me achieve this.

Thanks for your example - this helps me understand everything - soup to nuts.

If you could connect with me at https://www.linkedin.com/in/bert-beckmann/ or @FlutterUI https://github.com/FlutterUI on twitter I'd appreciate it and could be a resource as I get more familiar with OSM.

The whole .pbf to postres to postgis to .png map tile looks pretty heavyweight - my goal is to maintain a local postgres osm database and serve up svg in a lightweight fashion. I've just finished downloading the latest 50G OSM .pbf file and am embarking on loading it up.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mobileaviation/flutter_mapping_lib/issues/1#issuecomment-605018025 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQX3S57VAD2MF24QM3S2DLRJSW5JANCNFSM4LUPEFPA . https://github.com/notifications/beacon/ACQX3SYRZG7RJXFZXS4Y43LRJSW5JA5CNFSM4LUPEFPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQH5PKI.gif

bertbeck commented 4 years ago

Ok - thanks - will study more closely

On Sun, Mar 29, 2020 at 11:51 AM Mobile Aviation Tools < notifications@github.com> wrote:

Hello Bert,

I am not owner or supply any backend services whatsoever. If you study the code you’ll see that there is a class called TileProvider or CachedTileProvider which you can supply an url to thats formatted like the one you’ve mentioned below. The Openflightmaps url is just an example. There are many sites that supply map tiles like openstreetmap and many others. There is a class that points to the openstreetmap tile servers as well. Please do check the code. The software itself is just a library that compiles into your own codebase. You don’t need any backend or postgressql database whatsoever unless you want to create and serve your own tiles but that not what this library is about.

Regards, Rob

Van: Bert Beckmann [mailto:notifications@github.com] Verzonden: vrijdag 27 maart 2020 15:04 Aan: mobileaviation/flutter_mapping_lib CC: Mobile Aviation Tools; Comment Onderwerp: Re: [mobileaviation/flutter_mapping_lib] Does this example work on IOS? (#1)

Thanks! I will study the code. I am digging deeply into understanding osm and map rendering.

It looks like you are pulling maptiles from your server using this url: " https://snapshots.openflightmaps.org/live/##AIRAC##/tiles/world/noninteractive/epsg3857/merged/256/latest/##Z##/##X##/##Y##.png ";

Is that correct?

Are you running an OSM database in postgres on your backend using a config something like this? https://www.linuxbabe.com/ubuntu/openstreetmap-tile-server-ubuntu-18-04-osm

I'm a C#/C++/Java now Dart dev (love Dart) and want to use OSM as a backend for my map apps. I'm working on a Corona map right now. It looks like tiles are served up as .png's by your backend? I assume they are dynamically created (maybe cached) from a local postgres OSM database?

I'm trying to understand and eventually serve up minimal detail maps - just country and state/province boundaries with some major city labels and I think understanding the OSM database and tile rendering process will help me achieve this.

Thanks for your example - this helps me understand everything - soup to nuts.

If you could connect with me at https://www.linkedin.com/in/bert-beckmann/ or @FlutterUI https://github.com/FlutterUI on twitter I'd appreciate it and could be a resource as I get more familiar with OSM.

The whole .pbf to postres to postgis to .png map tile looks pretty heavyweight - my goal is to maintain a local postgres osm database and serve up svg in a lightweight fashion. I've just finished downloading the latest 50G OSM .pbf file and am embarking on loading it up.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/mobileaviation/flutter_mapping_lib/issues/1#issuecomment-605018025> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACQX3S57VAD2MF24QM3S2DLRJSW5JANCNFSM4LUPEFPA> . < https://github.com/notifications/beacon/ACQX3SYRZG7RJXFZXS4Y43LRJSW5JA5CNFSM4LUPEFPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQH5PKI.gif>

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mobileaviation/flutter_mapping_lib/issues/1#issuecomment-605674256, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO7WQSBRGUIZARL5TRXR4DRJ6DD5ANCNFSM4LUPEFPA .