This object is in archive! 

links in mbtiles map do not work

Paulo shared this problem 9 years ago
Solved

In the MBTiles the UTFgrid works with mustache tags. From the website (http://mustache.github.io/mustache.5.html):


Tags are indicated by the mustaches. {{person}} is a tag, as is {{#person}}....

All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}}


Locus does not seem to handle the triple mustache. This mbtiles file for example was created using triple mustaches (which is what Tilemil dictates). In locus, a string like this:


click <a href="http://maps.vegetationmap4africa.org/docs/{{{PNVcode2}}}.html">here</a>


Shows as:


http://maps.vegetationmap4africa.org/docs/{bushland}.html


Which is obviously not working.

Replies (3)

photo
1

Good day Paulo,


may you please share with me any sample map for testing? I'll gladly fix this.

photo
1

Hi Menion, see attached. I think in this case I could have used double mustaches rather than triple, but given the specifications of the mustache tags (link in previous email) and the fact that Tilemil suggests the use of triple mustaches, it would be could if Locus could handle that too.


Btw, really great you implemented this. I was the one initially requesting it, but I see you got some good feedback from some others, leading to the actual implementation.. Great!. This opens up Locus for a whole new type of use; the sharing of thematic maps on the mobile.

photo
1

Oki Paulo, thanks for a map, I hope, issue is now solved.

Replies have been locked on this page!