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

Hi I would like to draw several areas on the map (which are not overlapping), preferrably in different colour each. Each area should have one central point (headquarter). It can be marked with marker. Website visitors can then see which area they are within and which central point they need to report. However, those areas are useful to the visitors of my web site only i.e. they are not county borders or anything similar worth marking permanently and sharing with general public (but no problem if needed to be). The map should be embedded on my web site. It should look something similar to this: link text Is it possible to do it using OpenStreetMap, and what would be the best way?

asked 30 Nov '12, 17:11

Nik's gravatar image

accept rate: 0%

You would not technically be doing this "with OpenStreetMap". You would just display OpenStreetMap as your background layer (or, indeed, any other map), and use a suitable JavaScript library (OpenLayers or Leaflet) to display your polygons on top of that. That will require a little JavaScript coding but not much. You will also need a way to feed your polygons into the JavaScript - this can either happen through a static KML document that you amend with an editor each time a polygon is added or changed, or it could be with a database on some kind of server.

permanent link

answered 30 Nov '12, 18:10

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Thanks Frederik, I hoped that there is some ready made solution, as I'm not a Java programmer, but I'll figure it out with the help of some friends.

(30 Nov '12, 23:14) Nik

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 30 Nov '12, 17:11

question was seen: 3,879 times

last updated: 30 Nov '12, 23:14

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