3
2

Hi there!

Is there a way to make clickable tiles? I understand how the Markers work, but what I would like to see is something like an html imagemap, stored in tiles.

For example, for transport map, associate to each bus stop the link to the schedule page.

Is that possible?

Thanks!

asked 23 Mar '12, 14:26

berguina's gravatar image

berguina
56125
accept rate: 0%

edited 07 Dec '13, 23:09

aseerel4c26's gravatar image

aseerel4c26 ♦
32.1k16239551


The easiest solution is to use OpenLayers vectorial features. You can add a marker (even transparent) on each bus stop node, and associated an event to the click on this marker.

So, yes, that is possible :-)

For example, you can try and see the code of this (so beautifull) map. Each marker is clickable and will display additionnal informations.

Feel free to precise what do you want.

permanent link

answered 26 Mar '12, 13:13

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

edited 27 Mar '12, 09:35

As far as I know you cannot store additional information in tile files, because that are just bitmap graphics.

You need an additional source of information when you want to click an object on a tile based map and display information thet is associated with that object.

Have a look for example at the OSM Inspector by geofabrik.de ... zoom to a smaller area and choose one of the inspector's layers. There you can click on any marked object, and some data is displayed on the right side of the map.

Does that come near your aim? If yes, ask the developers there how they did their work to display that.

Or have a look at openstreetbrowser .. there you can also click map objects.

permanent link

answered 25 Mar '12, 16:32

stephan75's gravatar image

stephan75
12.5k453209
accept rate: 6%

edited 25 Mar '12, 16:33

There was a renderer for Mapnik 2.0, called Metawriter that would give you the positions of a all labels and POIs enabling you to have a clickable map (see demo here). Remember that clickable vector features on the map doesn't have to be visible, you can let the image map tiles be the visual information, and handle the interaction with vector information.

So sorry can't give you a solution that seems viable at the moment, but mapnik 2.0 isn't that old so I hope you have the time to see if metawriter is an option to you..

permanent link

answered 10 Dec '13, 15:01

emj's gravatar image

emj
2.0k123447
accept rate: 15%

edited 10 Dec '13, 15:07

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×233
×109
×55
×10

question asked: 23 Mar '12, 14:26

question was seen: 5,143 times

last updated: 10 Dec '13, 15:07

powered by OSQA