I want to make Choropleth map in Openlayers 3 which is already implemented in Leaflet but not in Openlayers 3. how to integrate 'colorbrewer' in Openlayers 3? Give the working example of it.


1 Answer 1


You can use this thematic mapping api which provides choropleth using open layers using GEOJSON and KML both.

Please have a look on this api

Themetic mapping API

There is also another API which provides live demo here

Map Fish API

openlayers 2 is working but for openlayers 3 there is still search in progress. Dynamic sld is one option with open layers 3.

  • Themetic mapping API is used with Openlayers 2 only. It does not support Openlayers 3. Sep 1, 2015 at 5:52
  • But you can also make dynamic sld with openlayers 3
    – prem30488
    Sep 1, 2015 at 5:54
  • That works if style attribute is in shape file which should be published in map server. But if our style attribute is in outside database(not in shape file) then this technique will not work. for example, I want to make population categorized map. But if that population data is not in shape file, how to colorize map on population basis. Sep 1, 2015 at 6:18
  • That is different question/case.There is an example in geoserver that shows population of usa. That kind of maps can be generated using geoserver. For the case of reading attribute see this gis.stackexchange.com/questions/71986/… and stackoverflow.com/questions/18373628/…
    – prem30488
    Sep 1, 2015 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.