Leaflet Maps Marker v1.7 is available

Posted on 22 February, 2012

Category:

Free-Version Releases
Attention: this is not the changelog for the latest stable version 4.29.1 (see related release notes)

“When you wish, I shall act” – well, this isn´t true for all feature suggestions, but this time I am glad that I could implement the idea from Phoenix04 about combining multiple layers into one as the main new feature for v1.7 of Leaflet Maps Marker quicker than I thought (I will spare you the technical challenges, just believe me, they were there 🙂 )

Multi Layer Maps

So let´s get into detail: imagine you have two layer maps, named cats and dogs. Multi layer maps now allow you to easily create a third layer map animals which shows all markers from the layers cats and dogs. This gives you a much higher flexibility when dealing with a large number of markers.

Creating a multi layer map is quite easy: choose “add new layer” from the plugins menu, set the “Multi Layer Map” option to “yes” and select the layers which markers you would like to display on this multi layer map:

After saving the map by clicking the button “add layer”, you can use this map just like any other layer map. Due to technical limitations, only the following restrictions apply:

  • markers cannot be added directly to a multi layer map – you have to add markers to a regular layer and then add this layer to a multi layer map.
  • multi layer maps do not support the feature to display a list of markers under the map
  • GeoJSON-feeds for multi layer maps are not supported (use GeoJSON-feeds for individual layers instead)
  • Dynamic preview on admin backend is not supported – please select the layers you would like to use on the multi layer map, click save and then the edit button again in order to display the multi layer map with the markers from the assigned layers.

Please note that you can use this feature to also easily create a map with all markers you have added to your blog – just check the option “display all markers”.

I also added the new column “Type” on layer list view so that you can easily distinguish multi layer maps from singe layer maps:

Wikitude enhancements

Another feature suggestion was made by padimails and this was really quite easy to implement: the use of custom marker icons for Wikitude augmented-reality browser. Initially I thought this was not possible, as this was not mentioned in the offical specs. So I asked the CTO of Wikitude, Martin Lechner, who informed me how to add this feature.

This means, that now the markers shown via Wikitude World Browser display the custom marker icons instead of one standard icon (which is now only used as icon for the layer in Wikitude and still can be set in settings / AR). Here´s a screenshot of the map view in Wikitude with custom marker icons:

List marker enhancements

Niko Hofinger, who uses my plugin for his project http://www.tripmarks.at/, suggested adding a limit for the list of markers below layer maps. This is now also implemented in v1.7 and you change change the limit globally in Settings / Layer defaults / List marker settings:

The default value is set to 100, please change accordingly to your needs.

Other changes and enhancements

David Ramí­rez, http://www.hiperterminal.com, was so kind to contribute a Spanish translation of the plugin. This translation is based on v1.4, so some text strings will still be English. An updated translation for v1.7 will be added when available.

I also added width & height-attributes to the custom marker icons-<img>-tags on marker edit pages. This should speed up admin page load especially on Safari (thanks again Niko for the hint).

Full changelog:

  • NEW: added multi-layer support allowing you to combine markers from different layer maps
  • NEW: Wikitude World Browser now displays custom marker icons instead of standard icon from settings
  • NEW: option to set the maximum number of markers you want to display in the list below layer maps
  • NEW: Spanish translation thanks to David Ramí­rez, http://www.hiperterminal.com
  • OPTIMIZED: added with & height attributes to custom marker-image-tags on marker edit page to speed up page load time
  • CHANGED: default font color in popups to black due to incompabilities with several themes

Please let me what you think of this new release. If you have any issues, please see this page on how to get support. If an important feature is missing, please add your feature requests on Github. I am also looking for more translations – if you would like to contribute a new one, please visit this page for more information.