New Map Editor for WordPress Classic Editor
MapPress supports both Gutenberg and the WordPress ‘classic’ editor. For the classic editor, the MapPress map editor has been redesigned and is now accessed by clicking the ‘MapPress’ button above the post body.
Add Media to POIS
MapPress now supports inserting media into map POIs directly from the WordPress Media Library. In the map editor, open a POI to edit and use the new ‘Add media’ link to insert images, videos, etc. Note that some media types will not work properly because of the way they are inserted into the page. For example, images and YouTube videos work fine, but TikTok will not work within a map.
MapPress now fully supports the Gutenberg editor, with new blocks for maps and mashups.
Existing shortcodes will continue to work, but they must be converted to blocks in order to edit the underlying maps. To convert a post to the Gutenberg block editor, select a ‘classic block’ and choose ‘convert to blocks’ from the block menu.
Shortcodes must be on a separate line, with no adjacent text or punctuation.
Here’s an example of converting a classic block to the Gutenberg editor. The [mappress] shortcode is converted to a MapPress Map block.
If a separate shortcode block already exists, just use the ‘change block type’ button to convert it to a Map or Mashup block.
MapPress has a new map library where you can see and edit all of your mapsThe library is located under the MapPress settings.
From the library, maps can be created, edited and deleted. A button exists to copy the shortcode for any map.
Both maps and Mashups now support marker clustering. Switch this option on from the MapPress settings screen. The Leaflet version is more advanced, and also supports “spidering” (separating markers when they are very close together).
Custom Icons Upload
Custom icons can now be uploaded directly from your computer, from the MapPress settings screen.
When maps are small, they now automatically go into ‘mini’ mode if the POI list is on the left. The list is hidden, and toggle button are shown to allow the user to toggle between ‘list’ and ‘map’ views. The mini mode size can be set in the MapPress settings.
MapPress has actually always supported WPML, and all map controls and templates default to the current WPML language. But 2.56 adds new functionality to assist in copying posts to a translation.
When creating a WPML translation, there is an option to duplicate the content from the original post, overwriting the target (translation) post.
During duplication, MapPress will:
- Delete any maps in the target (translation) post
- Copy all maps from the original post to the translation post
- Update all shortcodes and Gutenberg blocks to use the new map IDs
The new maps can be edited in the translation language and will not affect the originals. This behavior can be switched off in the MapPress settings screen.