This object is in archive! 

Clickable MBtiles layer

Paulo van Breugel shared this idea 11 years ago
Completed

Hi, in Tilemill it is possible to make clickable layers (teasers at hover or tap) and export these as MBTiles (see http://support.mapbox.com/discussions/t ... -clickable).


The MBTiles show perfectly in Locus, but the interactive part (the teasers) do not show. Would it be possible to implement support for this feature? It would expand the usability of Locus far beyond a simple map viewe

Replies (18)

photo
0

I only get this if I click on the link in your post:


The page you are looking for can`t be found


Check to see if you typed in the correct URL — if you still can`t find it, the page may have moved.

photo
0

Here is the correct link:


http://support.mapbox.com/discussions...

photo
0

I thought I wrote here already a response but seems not ...


Paulo, I cannot find any exact documentation or some description to this. I don`t know if data are stored directly database or are downloaded from internet. I also don`t use TileMill so it ̈s hard for me to check it.


So, do you have some testing map that I can use for checking, what`s going on inside? Or at least some more precise description then link on discussion where owner "only" say "We are working to get this functionality into a stable release, but for now you will have to be on the cutting edge!" ... thanks :)

photo
0

Hi Menion, I found this here.

photo
0

Just as a side note, using (long) links in the comments does not work, they are cut off to a maximum length (that is why the link in my first post did not work).

photo
0

Just to make sure you don`t miss them, the link to the page link with info on how interactive maps are implemented in mbtiles contains two other links to pages with further information:, see here

photo
0

+1 for supporting interactive .mbtiles. This format is becoming very popular and having this support in Locus would put it way ahead of similar apps.


MBTiles UTFGrid info: https://www.mapbox.com/developers/utf...


MBTiles spec: https://github.com/mapbox/mbtiles-spec


UTFGrid spec: https://github.com/mapbox/utfgrid-spec


Thanks!

photo
1

Any updates on this? I'd be happy to help work through this and provide any additional information I can. Mapbox has really gained a lot of traction with this format and if you want an example .mbtiles file with UTFGrid interaction, I can send one along.


Thanks!

photo
1

Hello Bryan,


I know that MapBox grow fast. Last time with big changes on CloudMade servers and their suggestions for MapBox.


Anyway as I see just thanks to votes, there is not a big interest in this feature in Locus community and I personally do not have clear opinion about usage of this feature. So for now, no changes.


Btw. I see you have new account, but the one in post above is also yours from GetSatisfaction right? Do you want to merge them?

photo
1

Hi Menion,


Thanks for responding, I just wanted to check in and see if this was still under consideration. I would actually rather have you working on Locus GIS anyway! Spring is finally starting to arrive here and I'm excited to get out and use Locus more! Please feel free to merge my GetSatisfaction account.

photo
1

Sure, you are welcome.


Topic is still open for voting so if there will be a bigger interest, I should think about it.


And Locus GIS is still work in progress. Hope that during May will be out fully working version for testing ;). But this is another story ...

photo
1

Hello, Menion.

I sent you a proposal about this idea on Oct 10th via http://www.asamm.com/contact/ .

Has the proposal been forwarded to you?

david dot collins at trade dot nsw dot gov dot au


Mapbox now provide an Android SDK so it might be easier now than when last discussed in this forum.

photo
1

Hello Tybion,


ah damn. Yes I received it and I also answered. That day, I had anyway some serious problems with network connection and my email client still get me some warning about send message. So I was worried I sent that email ten times and seems that not ...


Anyway to make it short, are you able to generate for me some sample map, because I'm unable to find any existing sample map for testing. To be true, from docs, I'm still not perfectly sure, how content of SQLite database looks like. So I'll rather firstly check some DB, before I promise some more work. Thank you.

photo
1

Thanks, Menion.


Yes, we are currently using TileMill to create an improved version of our Geology phone map. We haven't yet set it up to be clickable, but we will now do this next week, and send the clickable MBTiles map to you.

photo
1

Hello, Menion.


We are getting closer with providing you with a MBTiles file and more details. Can you please privately email me, so I have an email address to use.


By the way, these are the tables in the MBTiles file ..


CREATE TABLE grid_key (

grid_id TEXT,

key_name TEXT

);


CREATE TABLE grid_utfgrid (

grid_id TEXT,

grid_utfgrid BLOB

);


CREATE TABLE images (

tile_data blob,

tile_id text

);


CREATE TABLE keymap (

key_name TEXT,

key_json TEXT

);


CREATE TABLE map (

zoom_level INTEGER,

tile_column INTEGER,

tile_row INTEGER,

tile_id TEXT,

grid_id TEXT

);


CREATE TABLE metadata (

name text,

value text

);

photo
1

oki, thanks.


Best address to use is support.locus@asamm.com.

photo
1

So, I'm closing this issue as implemented. In version 3.4.0, clickable MBT maps are fully working.


I want's now discuss an improvements in handling. Currently, if I understand whole system correctly, MBT tiles offer three templates. 'location', 'teaser' and 'full'.


What I currently did and what I like is following handling


- moving with map (and stop), display 'location' template as a small panel in top of screen for current map center. This panel may be clicked to display 'full' template


- tapping on any place on a map, display new Popup view with filled 'teaser' template. Tap on this popup, display again 'full' template.


What you think? I'm asking, because I have currently two MBT maps, where

- one do not have defined 'location' template, so there is no top title bar and also has same 'teaser' as 'full'. Both are really long so popup is also really long.


- and second also do not have 'location' (map from you - Rwanda)


So I would like to know you opinion on this and if my solution is ok, or this should be done better. Thanks

photo
1

David thanks for your email.


So final solution.


- 'location' is ignored for now

- 'teaser' is visible as tool tip at top and also when you tap on a map as a small popup view

'full' is visible after tap on top info panel or popup view


You will see in next version, but ... it works nice ;)

Replies have been locked on this page!