WP OSM Plugin – free mapping solution based on state of the art technology

Within the last weeks there have been several requests regarding the new WP OSM Plugin shortcode osm_map_v3 and the differences to osm_map. So it’s time for a more detailled answere which needs some background information. All mapping plugings are ususally structured like this:

  1. there are map data wich should be displayed (OpenStreetMap, Bin, GoogleMaps, …)
  2. there are software components to display map data (OpenLayers, Leaflet, GoogleAPI, …)
  3. there is additional functionality added by the mapping plugin (show geotagged posts, shortcode generator, …)

The responsibility for 1.) is handed over to blog admin / author, the maps differ a lot in the license and that’s way many people choose OpenStreetMap for commercial and non commercial sites.

The point 2.) is quite important for the compatibility of your map on different browsers / devices. A lot of mapping plugins integrate software components which are five years old or even older … especially in the last years this part changed a lot because of mobile devices. WP OSM Plugin V3.5.1 with argument osm_map_v3  integrates OpenLayers 3.10.1 which was released in October 2015.

The point 3.) is mainly the added value by the plugin development team.

WP OSM Plugin provides two shortcodes to integrate maps, it’s like a “two in one plugin”. The osm_map shortcode ist based on OpenLayers 2 technology (point 2.) which is not state of the art anymore but still works. The new osm_map_v3 uses a mapping software which is the state of the art OpenLayers 3 and was released 1 month ago.
osm_map_v3 is a new and seperate development and because of limitted resource, the maintenance os WP OSM Plugin is limitted to osm_map_v3. Also new features, like fullscreen map button <=> is only implemented in osm_map_v3!

osm_map_v3 focuses on mobile devices, performance and simplicity

The arguments to be used with osm_map_v3 changed compared to osm_map. Mostly the shortcode is autogenerated with the WP OSM Plugin shortcode generator when you edit the post, but if you want just manually change it, you might want to know the relation within the table at the end of the article.

A map with all geotagged posts has got this osm_map_v3 shortcode:

[*osm_map_v3 map_center="52.795,23.51" zoom="3" width="75%" height="300" tagged_type="post" marker_name="wpttemp-yellow.png" control="fullscreen" map_border="thin solid grey"]

Improvement needs your feedback

You should update your osm_map shortcode to osm_map_v3 shortcode to make sure your readers see want you want them to see – on different devices with different features and high performance.

For further improvements we want to know which shortcode you use – please leave a comment to this article with your shortcode.

WP OSM Plugin shortcode table:

osm_map osm_map_v3 comment
lat map_center lat and lon are compined in one argument
lon -“-
kml_file file_list filetype is recognized by osm plugin.
kml_file_list file_list -“-
gpx_file file_list -“-
gpx_file_list file_list -“-
control control not fully supported
kml_colour file_color_list color is automatically related to gpx or kml files
gpx_colour file_color_list -“-
gpx_colour_list file_color_list -“-
width width
height height
map_border map_border -“-
import tagged_type import and post_type is combined to one
post_type -“-
zoom zoom
marker_name marker_name
type type -“-
zoom zoom -“-
map_border map_border -“-
marker marker_latlon -“-
marker_height *** not supported yet
marker_width *** not supported yet
marker_focus *** not supported yet
marker_routing *** not supported yet
import_osm_cat_excl_name *** not supported yet
import_osm_cat_incl_name *** not supported yet
import_osm_line_width *** not supported yet
import_osm_line_color *** not supported yet
import_osm_line_opacity *** not supported yet
theme not supported anymore
marker_file not supported anymore
Posted in tutorial


WordPress OpenStreetMap Plugin with fullscreen released

After a break during summer a new release of WP OSM Plugin is released. Here are the features:

  • Fullscreen map in your blog (via this button in the map [] )
  • fix of “undefined” marker at widgets
  • fix of missing marker in the widget at some installations
  • latest OpenLayers version (V10.1)

Get the butten for the fullscreen like this:

[*osm_map_v3 map_center="42.124,15.501" zoom="12" width="100%" height="450" marker_latlon="42.11981,15.50389" marker_name="mic_green_pinother_02.png" control="fullscreen"]

Click on this button in the map to get fullscreen:

And use this argument in your shortcode:

control="fullscreen"

Looking forward your feedback:

 

 

Posted in announcement


FullScreen Map in WordPress with WP OSM Plugin

After quite a long time we are going to release WordPress OSM Plugin 3.4 in October. One of the new features is the fullscreen map:

You get a new button in your map to get the fullscreen map, just click on it in the map!

WP_OSM_Plugin_FullScreen_00

Just let us know on our new hanblog – facebook site, if you like this feature.

 

Posted in Allgemein
Tags: , , , , ,

WordPress OpenStreetMap Plugin OSM is now on facebook

It took some time, but you can find a site for the WordPress OpenStreetMap Plugin now also on facebook. It’s not perfectly prepared yet – but started. Feel free to give us a like to show it should continue:

WordPress OpenStreetMap Plugin on facebook

Posted in Allgemein



Translations for WordPress OpenStreetMap / OpenSeaMap Plugin

The latest version of WordPress OSM Plugin brings two topics which were driven by Marc:

  • French translations
  • moving icon when you zoom in / out

Thanks a lot to Marc.

Posted in announcement
Tags: , , , , , ,

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: , , , , , ,

Preview: WordPress OpenStreetMap Plugin OSM with OpenLayers 3 for GPX with Waypoints

WordPress 4.2 will be released very soon and the WP OSM Plugin is prepared quite well and will release with V3.2 by the end of next week. Main work of the last weeks is to bring whole functionality to OpenLayers 3 library and improve performance and usability.

Handling of KML and GPX files will be improved and GPX files also support waypoints. A map with 3 GPX files and 2 waypoints in each of them will be integrated with this shortcode:

[*osm_map_v3 map_center="52.862,5.437" zoom="9" width="100%" height="500" map_border="medium solid blue" file_list="../../../../wp-content/uploads/osm_map/OpenStreetMap_GPX_red.gpx,../../../../wp-content/uploads/osm_map/OpenStreetMap_GPX_green.gpx,../../../../wp-content/uploads/osm_map/OpenStreetMap_GPX_blue.gpx" file_color_list="red,green,blue"]

This shortcode generates the following map. Click on the waypoints to get the names:

> Let us know if you want to make Beta-tests! <

 

 

Posted in announcement
Tags: , , ,

blumax GPS Logger in Ubuntu 14.04 Linux als GPX Datei auslesen und komprimieren

Auf Reisen sind GPS Logger eine feine Sache, man kann damit Fotos georeferenzieren oder Routen aufzeichnen und in einer Karte darstellen. Der blumax GPS Logger ist viele Jahr alt und wird mit dem Standard Chipsatz auch unter Ubuntue 14.04 zum Auslesen der GPS Daten als GPX-file unterstützt.

blumax 4043 GPS Logger

blumax 4043 GPS Logger

Der Schalter am GPS-Logger muß in der Stellung >LOG< sein

Kommando zum Auslesen unter Linux Ubuntu ohne löschen:

sudo gpsbabel -t -w -i mtk -f /dev/ttyUSB0 -o gpx -F MyFile.gpx

Kommando zum Auslesen und löschen:

sudo gpsbabel -t -w -i mtk,erase -f /dev/ttyUSB0 -o gpx -F out.gpx

Für eine Reise von Bagdogra nach Darjeeling in Indien sieht ein einzelner trackpoint im 1.6 MB großen GPX file so aus:

  <trkpt lat="26.699590668999999" lon="88.319783779000005">
    <ele>150.00006099999999</ele>
    <time>2015-03-25T06:44:28Z</time>
    <speed>7.2144539999999999</speed>
    <fix>3d</fix>
  </trkpt>

Für die Darstellung in der Karten werden aber nur lat und lon benötigt und rot verursacht lediglich ladezeit, daher werden diese Bereich gelöscht:

cat Input.gpx | grep -v -E '<speed>|<fix>|<ele>|<time>' > Output.gpx

Damit sinkt die Filegröße von 1.6MB auf 607kB. Mit GPSBabel werden nun Punkte aus dem File entfernt die Näher als 10m aneinander liegen:

gpsbabel -i gpx -f Input_grep.gpx -x position,distance=10m -o gpx -F Outpu.gpx

Damit wird die Datei nochmals von 607kB auf 268kB optimiert und sieht in der OpenStreetMap Karte wie folgt aus:

WP OSM Plugin shortcode:

[*osm_map_v3 map_center="26.881,88.28" zoom="11" width="60%" height="630" map_border="medium solid red" file_list="../../../../wp-content/uploads/sites/2/2015/04/India_Bagdogra_Darjeeling_opt_01.gpx" file_color_list="red"]]
Posted in tutorial
Tags: , , , , , , ,

WordPress OpenStreetMap Plugin OSM released with basemap and OpenSeaMap in OpenLayers 3

The version WP OSM Plugin V3.1.1 supports to set markers in OpenSeaMap and basemap with OpenLayers 3 technology. Of course OpenStreetMap is included as well 😉

OpenSeaMap:

[*osm_map_v3 map_center="45.63,13.62" zoom="11" width="100%" height="450" map_border="2px solid red" marker_latlon="45.63083,13.62928" marker_name="mic_orange_sailing_1.png" type="OpenSeaMap"]

BaseMap for Austria:

[*osm_map_v3 map_center=”47.8,13.045″ zoom=”16″ width=”100%” height=”450″ map_border=”2px solid grey” marker_latlon=”47.79784,13.04535″ marker_name=”mic_black_pinother_02.png” type=”basemap_at”]

OpenStreetMap:

[*osm_map_v3 map_center="47.8,13.045" zoom="16" width="100%" height="450" map_border="2px solid grey" marker_latlon="47.79784,13.04535" marker_name="mic_black_pinother_02.png"]

 

Posted in announcement
Tags: , ,