GithubHelp home page GithubHelp logo

osm-categories's Introduction

OSM Categories

Contributors: Guido Handrick Tags: OpenStreetMap, geotag, geolocation, geocache, geocaching, OSM, travelogue, travelblog, OpenLayers, Open Layers, Open Street Map, marker, geocode, geotagging Requires at least: 3.0 Tested up to: 3.4.1 Stable tag: 1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

OpenStreetMap plugin to embed a map with markers to articles from different categories in different map layers.

Description

OSM Categories embed an OpenStreetMap map to your page by using the OpenLayer API. For every category in your blog a differnt layer on your map show markers for every article with an geotag. You just have to save the lon and lan parameters in a custom field. It's possible to use different marker images for every category.

In your page just insert the shortcode: [osm-cats]

Open the plugin settings page for basic settings like:

  • map dimensions
  • map center point
  • initial zoom faktor
  • exclude categories
  • article custom field for marker lon and lat parameters
  • marker popup content
  • marker images path

It's still BETA so please send me feedback and your ideas! Thanx a lot.

Frequently Asked Questions

= Why i see the hole world on the map? =

It's necessary to define a map center point on the plugin settings page.

= Where can i give you feedback? =

I sink the best would be here: https://github.com/KiTo/OSM-Categories

Installation

Either:

  1. Search for and install OSM Categories directly through the 'Plugins' menu in WordPress

Or:

  1. Download and unzip OSM Categories
  2. Upload the osm-categories directory to the /wp-content/plugins directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

Changelog

1.0

  • NEW: Include or exclude categories
  • NEW: Add Google Baselayers - Terrain, Roadmap, Satellite, Hybrid
  • NEW: Show only images with marker in the filename on the settings page

0.2

  • FIX: Use marker path from settings
  • NEW: Possibility to disable zoom wheel

0.1

  • NEW: First release with basic features

osm-categories's People

Contributors

kito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

unmonastery

osm-categories's Issues

Category settings ? Include Exclude?

Hi,

I included OSM-Categories into Wordpress an want to add some layers ( Categories)
e.g. Layer Restaurant how can I add these?

Where can I find a list of the categories?

I have tryied to find it in the readme and doc...but nothing there?

Thanx for Help!

Compatibility with wp plugin geolocation

Hi great plugin, many thanks.

I'm using the android wp app, together with wp plugin geolocation (http://wordpress.org/extend/plugins/geolocation/)

The only problem ist that geolocation plugin is using two sepperate custom fields for Lon and Lat. So i added some additional code to your plugin to get it to work. It's probably not fool proof but for me it works:

register_setting( 'osm_cats', 'osm_cats_marker_custom_fieldLon' ); //extra Lon field
register_setting( 'osm_cats', 'osm_cats_marker_custom_fieldLat' ); //extra Lat field
...

Or



Name of the two sepperate custom fields for Lon and Lat parameter. As used by geolocation plugin.
...
$lonlat_custom_fieldLon = get_option('osm_cats_marker_custom_fieldLon');
$lonlat_custom_fieldLat = get_option('osm_cats_marker_custom_fieldLat');
...
if($lonlat_value == '') {
if(get_post_meta(get_the_ID(), $lonlat_custom_fieldLon, true) != '' || get_post_meta(get_the_ID(), $lonlat_custom_fieldLat, true) != '') {
$lonlat_value = get_post_meta(get_the_ID(), $lonlat_custom_fieldLon, true).', '.get_post_meta(get_the_ID(), $lonlat_custom_fieldLat, true);
}
}

maybe you can add something like this "officially"
thanks
Andi

LonLat custom field not appearing

Hi,

I'm currently working on getting the plug in going on mappingthecommons.org/osm, but unfortunately the custom field you defined for the marker placement isn't showing up as an option.

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.