WordPress OpenStreetMap / OpenSeaMap Plugin OSM V3.3 released

The latest version of WP OSM Plugin focused on changing technology to cover features of mobile devices and simplify the shortcode. Features of the latest versions are:

  • display KML files with osm_map_v3 shortcode
  • Possibility to disable ajax by define
  • Set your preferred location for geotagger as define
  • Update to OpenLayers 3.5

Display KML files with osm_map_v3 shortcode

The shortcode of the WP OSM Plugin detects the filetype of GPX and KML file:

GPX-file in OpenSeaMap:
[*osm_map_v3 map_center="52.628,5.291" zoom="9" type="OpenSeaMap" width="75%" height="330" file_list="../../../../wp-content/uploads/osm_map/OpenStreetMap_GPX_red.gpx"]
<=remove the “*”
KML-file in OpenStreetMap:
[*osm_map_v3 map_center="38.713,-9.136" zoom="16" width="75%" height="300" map_border="thin solid orange" theme="ol_orange"  file_list="../../../../wp-content/uploads/osm_map/OSM_01_red.kml, ../../../../wp-content/uploads/osm_map/OSM_01_black.kml" file_color_list="red,black"]
<=remove the “*”

Possibility to disable ajax by define

It has been reported that some user got the error:
Forbidden
You don't have permission to access /wp-admin/post.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

There are many possible reasons, most time it’s related to the .htaccess file. We do not want to make any security advices, but we provide a define to disable ajax for WP OSM Plugin only:

  1. go to the folder wp-content/plugins/osm
  2. open file osm-config-sample.php
  3. change and save
    from:
      // replace >True< with >False< if you want to disable it
      define (“OSM_enable_Ajax”, True);
    to:
      // replace >True< with >False< if you want to disable it
      define (“OSM_enable_Ajax”, False);
Important: This setting is deleted after WP OSM Plugin update. You have to reset it after update!

Set your preferred location for geotagger as define

You can also preset the start location of the maps in geotagger and shortcode generator. Eg to set it for Hamburg:
  1. go to the folder wp-content/plugins/osm
  2. open file osm-config-sample.php
  3. change and save
    from:
      // change them for shortcode generatgor & geotagger
      // to your location
    define (“OSM_default_lat”, 48.856614);
      define (“OSM_default_lon”, 2.352222);
    to:
      // change them for shortcode generatgor & geotagger
      // to your location
    define (“OSM_default_lat”, 53.551085);
    define (“OSM_default_lon”, 9.993682);
Let us know which feature you want next – here.
Posted in announcement
Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*