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:
[*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"]
[*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"]
Possibility to disable ajax by define
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:
- go to the folder wp-content/plugins/osm
- open file osm-config-sample.php
- 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);
Set your preferred location for geotagger as define
- go to the folder wp-content/plugins/osm
- open file osm-config-sample.php
- 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);
Leave a Reply