Giter Site home page Giter Site logo

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!

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?

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

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.