Allows people to display GeoJSON feeds on a map.
Author: | Chris Abraham (profile at wordpress.org) |
WordPress version required: | 2.8 |
WordPress version tested: | 3.4.1 |
Plugin version: | 0.1 |
Added to WordPress repository: | 29-08-2012 |
Last updated: | 29-08-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://openplans.org |
Total downloads: | 984 |
Active installs: | 10+ |
Click to start download |
GeoJSON Maps facilitates displaying multiple GeoJSON feeds on a map. It has a custom legend to toggle on/off each data layer. The map can be displayed on a WordPress post or page via a short code. All you need is some GeoJSON feeds (both json and jsonp) and some styling markup. See here for a demo.
GeoJSON Maps uses Argo. Its configuration is provided here. Take note of the "rules" and "popupContent" items to be entered when setting up a layer. So, in the Schools layer from the demo, "Layer Rules" is set to:
[{
condition: '"{{LOCLEVEL}}" === "Elementary School"',
style: {color: 'green', radius: 3, opacity: 0.9, fillOpacity: 0.2}
},
{
condition: '"{{LOCLEVEL}}" === "Middle Secondary"',
style: {color: 'orange', radius: 3, opacity: 0.9, fillOpacity: 0.2}
},
{
condition: '"{{LOCLEVEL}}" === "High School"',
style: {color: 'red', radius: 3, opacity: 0.9, fillOpacity: 0.2}
}]
And "Popup Text" is set to:
{{LOCNAME}}