Why not ask your question on the new OpenStreetMap Community Forum?

Hallo, Mit dem OSM SlippyMap Generator habe ich eine Karte erstellt und mehrere Marker eingefügt - jeweils:

addMarker(layer_markes, lon,lat ,“<b>Text</b>< /p>“, false,0);

Wie kann man erreichen, dass beim Anklicken des jeweiligen Markers jeweils eine spezielle html-Seite aufgerufen wird? Danke

asked 01 Mar '12, 16:45

JoeJohn's gravatar image

JoeJohn
1222
accept rate: 0%

edited 16 Apr '13, 03:08

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


Du kannst einen HTML-Link in die Markerbeschreibung einfügen:

<a href="http://example.com/">Link-Beschreibung</a>

Der Link wird dann im Popup angezeigt, der erscheint, wenn man auf den Marker klickt.

permanent link

answered 21 Mar '12, 21:04

hfs's gravatar image

hfs
85151525
accept rate: 17%

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:

×284
×98
×35
×5

question asked: 01 Mar '12, 16:45

question was seen: 5,284 times

last updated: 16 Apr '13, 03:08

powered by OSQA