Comments (11)
Is MbTiles supported in Openlayers? It seems that there is configuration to get tiles.
Please check this example,
from mbtiles-spec.
The second argument to the constructor should be the base path, not a path of a tile:
new OpenLayers.Layer.TMS("MapBox Tile Natural Earth 2", "http://localhost:8888/", {
layername: 'natural-earth-2',
type: 'png',
transitionEffect: 'resize'
}),
from mbtiles-spec.
Also, OpenLayers does not access MBTiles directly - a component is needed to serve tiles from localhost or any other server. Unless http://localhost:8888/1.0.0/natural-earth-2/0.0.0.png
resolves in your iPad app, this won't work.
from mbtiles-spec.
I realise it now that TMS or Openlayers Base Maps (e.g. WMS, TMS, etc.) are design to work on server side.
Since natural-earth-2.mbtiles is sqlite3 base format can I assign it into a sqlite3 database and query it using SQL select statement to get the tiles? If I can do a SELECT query, what is the SQL query and how would it be pass to Openlayers.Layer.TMS?
is "http://localhost:8888/1.0.0/natural-earth-2/0.0.0.png" string that can be equated in text.value? I am not sure where this question is leading to? But fishing for ideas how to pass the data from WebView to the mbtile and vice versa.
Any ideas how to get a local support for MbTiles in mobile gadget without the server?
One possible way is to have a server in the ipad. Possible in Jailbreak ipad and use Tileserver with Node.js.
Still waiting for ipad 2 jailbreak.
from mbtiles-spec.
You've seen the MapBox iPad App right? This is exactly what it sets out to do.
from mbtiles-spec.
new OpenLayers.Layer.TMS("MapBox Tile Natural Earth 2", "http://localhost:8888/", {
layername: 'natural-earth-2',
type: 'png',
transitionEffect: 'resize'
}),
Can I map this "http://localhost:8888/" into the mbtiles in Objective-C
var sampleDatabase = new DataAccessObject("natural-earth2.mbtiles")
Now in WebView javascript side
http://localhost:8888/ = sampleDatabase
from mbtiles-spec.
Er, yes, kind of. See the route-me project that has a connector for mbtiles, and the mbtiles ios example. If you aren't going the MapBox for iPad app route or an online server, this is probably a several-week task to do this with OpenLayers, which, unless you really need its other capabilities, isn't a necessary tool for this.
from mbtiles-spec.
I want Spatialite visualation in Openlayers thru JSTS. I can query my spatialite to render polygons, route, KML just PostGIS terminal is doing. However, I like to do with Javascript Topology Suite (JSTS), PostGIS terminal is using AsWKT function.
I can visualite crime statistic, umemployment figures, property values on Spatialite terminal and get the map in Openlayer canvas.
from mbtiles-spec.
I am not a programmer / developer, I am struggling with Objective-C
and route-me people are not so helpful at. Does not reply to questions
Hence, I just try to do it javascript / jquery.
On 6/2/11, tmcw
[email protected]
wrote:
Er, yes, kind of. See the route-me
project that has a connector for
mbtiles, and the mbtiles ios
example. If you aren't going
the MapBox for iPad app route or an online server, this is probably a
several-week task to do this with OpenLayers, which, unless you really need
its other capabilities, isn't a necessary tool for this.Reply to this email directly or view it on GitHub:
#14 (comment)
from mbtiles-spec.
OpenLayers unfortunately isn't going to make your job any easier on the iPad. You might want to try out the mbtiles ios example and see if you can modify it to your needs, or see if you can pre-render visualizations and use them in the MapBox iPad app.
from mbtiles-spec.
Closing; this is outside the scope of this respository.
from mbtiles-spec.
Related Issues (20)
- spec says grid data is gzip compressed, but in reality it's deflate compressed HOT 1
- Regarding .MBTiles to .DB Conversion HOT 3
- Explain how vector tile data is stored HOT 8
- The mbtiles-spec is outdated, needs revison
- Update URL in github description HOT 1
- zxy from zoom_level, tile_column, tile_row in mbtiles file HOT 2
- SQLite4 compatibility HOT 1
- EPSG:4326 projection support HOT 3
- Document maskLevel
- Uncaught (in promise) Error: Unimplemented type: 3 HOT 2
- Update vector_layers to match tilejson-spec 3.0 HOT 1
- grids vs tiles HOT 1
- View tiles in specification HOT 2
- png-palette metadata and support for multiple palettes
- iOS UTTypeIdentifier in Info.plist?
- Support custom tiling scheme HOT 4
- update the url for specification documents for the MBTiles tileset format
- Clarify kind of version number HOT 4
- Add tile size to metadata
- Wrap around 180th meridian HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbtiles-spec.