mbtiles

how to export a mapbox studio map as .mbtiles file

谁说胖子不能爱 提交于 2020-07-18 06:09:26
问题 So I'm guessing the answer to this is "no", but is there any way to export a map I've designed online with mapbox studio (https://www.mapbox.com/studio/) into a .mbtiles file so I can host it myself? Honestly, I'd be willing to pay money for this (saving me the trouble of getting a world .pbf file and getting it into a postgresql db is really a pain, especially with a mediocre computer like mine) It sounds like maybe there used to be a way to do this, but as of now it looks like they've taken

How to set tile_data from .mbtiles file as tiles for leaflet?

烈酒焚心 提交于 2020-02-05 04:09:09
问题 I'm developing a hybrid mobile app using meteorjs and cordova. App needs to have offline map support. I exported a .mbtiles file using Maperitive, of area that can be viewed offline and copied the file to my app so I can access it when loading tiles with Leaflet. For that i used cordova plugins for file system (to copy .mbtiles to the right place) and cordova sqlite plugin (for accessing .mbtiles data) and that part works, I can successfully load tile_data when leaflet requests tiles whit z,

Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library

不打扰是莪最后的温柔 提交于 2020-01-12 23:51:12
问题 When online access to the internet is not possible, I would like the (offline) HTML5 app show an OSM map via an OSM file. Can you give an example of how I can show in an offline Html5 app OSM tiles that are loaded from an offline OSM map file like Mapsforge / Geofabrik etc? Example: via the openstreetmap.org I first exported a small part of a map. How can I show this downloaded OSM map in the Html5 offline webapp. 回答1: Yes, it's possible to do this in Leaflet, or any other mapping library.

SQL connection error from PHP after many operations

烂漫一生 提交于 2019-12-24 11:36:03
问题 I'm currently looping to create a MBTiles map, and add information to my database each time. Here's how I configured my connection and execute actions during the loop: if ($pdo_mbtiles == null) { echo "Opening new database connection".PHP_EOL; $pdo_mbtiles = new PDO('sqlite:'.$filename, '', '', array( PDO::ATTR_PERSISTENT => true ) ); $pdo_mbtiles->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); $pdo_mbtiles->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } $q = $pdo

Use of MBTiles in offline iOS app

痴心易碎 提交于 2019-12-20 02:39:10
问题 I already have a map stored using the MBTiles format that I want to use in an app I am making. It is vital that the app will run with no signal/connection on the mobile device. Mapbox previously had an example of how to use MBTiles together with RMMBTilesSource so that the mapping data could all be stored locally. This has now been deprecated, see https://github.com/mapbox/mapbox-ios-example. I also enquired with Mapbox as to whether they were going to replace this example with another that

Possible to style MBTiles in a leaflet map?

孤街醉人 提交于 2019-12-10 21:25:20
问题 I'm trying to display a .mbtiles layer (created by Tippecanoe) in a Leaflet map. The tiles are loaded with Leaflet.TileLayer.MBTiles. So far nothing is visible on the map, although the MBTiles load fine and are identifiable in the browser's inspector console. I'm guessing that because I haven't externally styled the MBTiles with MapBox Studio (or similar), they don't have any style assigned (color, size, etc...). Is it possible to style .mbtiles with CSS, JS, or otherwise in the html? I've

Offline Map for Private Property with Navigation in iOS

若如初见. 提交于 2019-12-10 14:23:18
问题 I have an idea of building offline Map for my University Campus (its covering almost 3-4 miles). Like new students or guests can navigate to various blocks in campus. Student can see himself/herself marked on map at current location & can chose destination from pre-defined list of places and application will navigate them. I have explored alot like maptiles can help me in showing maps. But is there any other efficient way of showing campus map ? And I have no idea how will I navigate user

How to use an mbtiles database with Android TileProvider?

左心房为你撑大大i 提交于 2019-12-08 08:30:22
问题 What is the best way to use an mbtiles database with google's TileProvider? I've been told that tiles as files are difficult to manage so i'm trying to use the mbtiles directly. 回答1: Take a look here: https://github.com/cocoahero/android-gmaps-addons/blob/master/src/com/cocoahero/android/gmaps/addons/mapbox/MapBoxOfflineTileProvider.java That class will do it for you. I hope you can use it. 来源: https://stackoverflow.com/questions/22512949/how-to-use-an-mbtiles-database-with-android

How to use an mbtiles database with Android TileProvider?

倖福魔咒の 提交于 2019-12-06 16:48:32
What is the best way to use an mbtiles database with google's TileProvider ? I've been told that tiles as files are difficult to manage so i'm trying to use the mbtiles directly. Take a look here: https://github.com/cocoahero/android-gmaps-addons/blob/master/src/com/cocoahero/android/gmaps/addons/mapbox/MapBoxOfflineTileProvider.java That class will do it for you. I hope you can use it. 来源: https://stackoverflow.com/questions/22512949/how-to-use-an-mbtiles-database-with-android-tileprovider

Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library

大兔子大兔子 提交于 2019-12-04 05:57:15
When online access to the internet is not possible, I would like the (offline) HTML5 app show an OSM map via an OSM file. Can you give an example of how I can show in an offline Html5 app OSM tiles that are loaded from an offline OSM map file like Mapsforge / Geofabrik etc? Example: via the openstreetmap.org I first exported a small part of a map. How can I show this downloaded OSM map in the Html5 offline webapp. Yes, it's possible to do this in Leaflet, or any other mapping library. All you have to do is convert the OSM file into a set of tiles, then point your tile layer to the locally