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


I have developed an application where I have saved in a database some country names, and through a geocoding function of MapQuest I am showing a map with the markers. What I want to do now is create a kind of choropleth map, where each of the countries that exist in my database will be drawn as polygons in the map, and then filled with specific colors based on the corresponding value for each country.

Is there a way for me to geocode my geographic data and get/draw the polygon for each of my countries?


asked 10 Jul '14, 15:22

mariagr's gravatar image

accept rate: 0%

Thank you for your replies. I did see the leafletjs example along with the geofabrik country shapes, but my issue is that in the first example, the countries file is "handmade" for the specific example, while the second provides very large files per country. But because I dont have fixed countries, I want to dynamically get the boundaries for each country depending on what my user chooses.

(11 Jul '14, 07:57) mariagr

Using an internet search engine with "choropleth map openstreetmap" gives several hints e.g. to leafletjs.


permanent link

answered 10 Jul '14, 20:12

stephan75's gravatar image

accept rate: 6%

You might want to get the country shapes at, simplify the geometries and use OpenLayer/Leaflet JS libs to realize a cloured highlightning.

permanent link

answered 10 Jul '14, 19:58

iii's gravatar image

accept rate: 10%

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: 10 Jul '14, 15:22

question was seen: 4,711 times

last updated: 11 Jul '14, 10:08

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