NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello everyone. I figured out how to embed a map on my site (via HTML). But the map is inserted without a search bar http://joxi.ru/BA0Xn5aC1GDa5A . Can you tell me how to add a search bar? where can i find documentation?

asked 10 Feb '22, 13:48

%D0%9F%D0%B5%D1%82%D1%801245's gravatar image

Петр1245
11112
accept rate: 0%

edited 10 Feb '22, 13:50


Hi.

Unfortunately the iframe code from opentreetmap.org is only meant to display a simple map, optionally with a single marker. Here is the doc.

I'm afraid you'll need to write your own code, using the Leaflet js framework for example.

Or I think you can use facilmap, based on OSM data. Here some code that looks like what you want.

Regards.

permanent link

answered 10 Feb '22, 19:16

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

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:

×193

question asked: 10 Feb '22, 13:48

question was seen: 1,169 times

last updated: 10 Feb '22, 19:16

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum