=== MapPress – Free Map Plugin for Google Maps, or OpenStreetMap With No API Key ===
Contributors: chrisvrichardson
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4339298
Tags: map, maps, google maps, openstreetmap, leaflet
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.0
Stable tag: 2.98
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free map plugin: unlimited maps and markers, no API key, no cookies from MapPress. Google Maps, OpenStreetMap & Mapbox. Map blocks, store locators.

== Description ==
MapPress is the easiest way to add beautiful interactive maps to WordPress, with Gutenberg map blocks and classic editor support.

Create unlimited maps and markers in the free version, with no upgrade required. MapPress works the moment you activate it: no API key, no billing account, no configuration.

Pick the map service that fits you: Google Maps, or free keyless Leaflet maps using OpenFreeMap (OpenStreetMap data) — no API key required. Mapbox is also supported.

Privacy friendly for GDPR (DSGVO): MapPress itself sets no cookies and doesn't track your visitors. The free maps use OpenStreetMap data and tiles from OpenFreeMap, which says it uses no cookies.

Add one location or hundreds: there is no limit on markers per map. Perfect for contact pages, store and office locations, real estate listings, travel routes, delivery areas and directories.

Upgrade to [MapPress Pro](https://mappresspro.com/mappress) to build a store locator, show your posts on a map, let visitors search and filter locations by category, and use custom marker icons (with a built-in icon editor!).  See it in action on the [MapPress Home Page](https://mappresspro.com/mappress) or test it yourself with a [Free Demo Site](https://mappresspro.com/demo)!

[Home Page](https://mappresspro.com/mappress)
[Documentation](https://mappresspro.com/mappress-documentation)
[FAQ](https://mappresspro.com/mappress-faq)
[Support](https://mappresspro.com/forums)

= Key Features =
* Unlimited maps and markers in free version
* No API key, no setup and no fees
* Google Maps, Leaflet, Mapbox, and free OpenFreeMap maps (using OpenStreetMap data)
* Gutenberg editor map blocks
* Classic editor support
* Styled maps
* Marker clustering
* Add maps to any post, page or custom post type
* Responsive maps
* Size maps by pixels, percent or viewport
* Popups with custom text, photos, images, and links
* Google overlays for traffic, bicycling and transit
* Directions from Google Maps
* Geocoders from Google, Nominatim, and Mapbox
* KML map overlays
* GPX tracks
* Draw polygons, circles, and lines (Google Maps engine)
* Generate maps using PHP
* WPML compatible
* MultiSite compatible

= Pro Version Features =
* Get [MapPress Pro](https://mappresspro.com/mappress) for additional functionality
* Build a searchable map or store locator with search, geolocation and filtering
* Custom markers upload
* Marker editor with thousands of icons, shapes and colors
* Gutenberg "mashup" block for searchable maps and store locators
* Map widget and mashup widget
* Customizable templates for markers and lists
* Generate maps automatically from custom fields
* Automatically assign marker icons by taxonomy, tag, or category
* Advanced Custom Fields (ACF) integration

= Localization =
MapPress is translated by volunteers. You can help translate it into your language at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/mappress-google-maps-for-wordpress/).  Many thanks to everyone who has created and updated translations.

== Installation ==
1. Install and activate the plugin through the 'Plugins' menu in WordPress
1. You should now see a MapPress meta box in the 'edit posts' screen

See full [installation instructions and Documentation](https://mappresspro.com/mappress-documentation).

Updating is automatic.  Your maps are stored in the database, so they are preserved across updates.

== Frequently Asked Questions ==

= Is the free version limited? =
No. The free version allows unlimited maps and markers — no cap, and no upgrade required. Pro adds more features, but it doesn't raise any limit, because there isn't one.

= Do I need a Google Maps API key? =
No. MapPress includes free Leaflet maps using OpenFreeMap, which serves OpenStreetMap data and needs no API key. A key is only required if you choose the Google Maps or Mapbox engines. You can switch engines at any time without losing your maps.

= How do I add a map with multiple locations? =
Add a MapPress block to your page (or use the MapPress box in the classic editor), then add a marker for each location by searching for its address. There is no limit on markers per map. To show locations from many posts on one map, see "Can I show my posts on a map?" below.

= Can I build a store locator? =
Yes, with [MapPress Pro](https://mappresspro.com/mappress). The mashup block shows locations from many posts on one map with a list of results, location search with a search radius, centering on the visitor's location, and filters.

= Can visitors search and filter locations by category? =
Yes, with MapPress Pro. Visitors can search by location and filter by post type, category, tag or custom field.

= Can I show my posts on a map? =
Yes, with MapPress Pro. Add a map to each post, then use a mashup to show them all on one map. Mashups work with any post type and can be limited by category, tag or custom field.

= Can I use custom marker icons? =
Yes, with MapPress Pro. Upload your own icons or design them in the built-in icon editor, and assign icons automatically by category, tag or taxonomy.

= Which map engine should I choose? =
Leaflet maps using OpenFreeMap need no API key or billing setup, or choose Google Maps (which require an API key). Your maps are stored independently of the engine, so you can switch at any time without losing data.

= Does MapPress work with the block editor, classic editor and page builders? =
Yes.  MapPress includes a Gutenberg map block and full classic editor support, and you can place maps anywhere using a shortcode or directly in PHP.

= Is MapPress GDPR compliant? Does it set cookies or track visitors? =
MapPress itself sets no cookies and doesn't track visitors. Its default maps load tiles from OpenFreeMap, which says it uses no cookies. Google Maps and Mapbox may track users, but with the Complianz consent plugin, MapPress blocks them until a visitor consents.

= Does MapPress work with caching plugins? =
Yes.  If a map stops loading after enabling aggressive JavaScript optimization, exclude the MapPress scripts from minification or deferral.

= Does MapPress support WPML and multilingual sites? =
Yes.  MapPress is WPML compatible, including translation of map and marker content.

= How do I report a security issue? =
Please [contact us](https://mappresspro.com/contact).  Thanks to the security researchers who help keep MapPress safe, including vuxvinh and shovon.bd.

= Where can I find documentation and support? =
[Documentation](https://mappresspro.com/mappress-documentation)
[FAQ](https://mappresspro.com/mappress-faq)
[Support](https://mappresspro.com/forums)

== Screenshots ==
1. Store locations map with custom markers (Pro) on free OpenStreetMap maps, no API key
2. Unlimited maps in the map library, with no cap and no upgrade required
3. Map editor: add markers, popups, photos and directions
4. Google Maps or OpenStreetMap map block in the WordPress block editor
5. Pro: searchable store locator showing locations from many posts on one map
6. Settings: choose Google Maps or free OpenStreetMap maps with no API key
7. Clustering: group nearby markers, choose the zoom where clustering stops, and split up markers at the same location (spiderfy)
8. Pro: search settings: search radius, country, bounding box and placeholder text, plus centering the map on the visitor's location
9. Pro: filters for mashups and maps, by post type, category, tag or custom field

== Changelog ==

= 2.98 = 
* Added: new marker clusterer for both Google and Leaflet
* Added: new spiderfier for both Google and Leaflet
* Added: new KML/GPX parser for Google and Leaflet (Google is dropping support for KML files in May, 2027, see the MapPress FAQ for details)
* Added: new drawing tools replacement for the now-deprecated Google drawing tools
* Added: Leaflet can now display shapes drawn and saved with Google
* Changed: better reporting of conflicts from compliance plugins
* Changed: MapPress now renders local KML and GPX files itself instead of using Google's deprecated KML layer
* Changed: administrators are now alerted if the site is still using Google's legacy Places API, with a direct link to enable the new one
* Changed: the check for "Places API (New)" no longer consumes the site's autocomplete quota
* Changed: the mappress_filter_{key} filter now passes the filter values as the first argument and the query as the second
* Fixed: KML styles were only partly applied 
* Fixed: KML files that specify no outline or no fill were drawn with one anyway
* Fixed: on Google maps, KML and GPX files ignored their styling entirely and drew with default colors
* Fixed: sort by distance showed miles but labelled them km on sites using metric units
* Fixed: Complianz and AMP were not detected when network-activated on multisite
* Fixed: with WPML, translated posts showed the original map instead of their own copy. Marker text for a newly translated post is now translated in the copy's strings in String Translation
* Fixed: with WPML, maps inside group, column or other container blocks were not copied to the translation

= 2.97.17 =
* Added: map and mashup shortcodes accept 'units' (metric or imperial) and 'radius' (search radius, in those units), e.g. [mashup search="true" units="imperial" radius="25"]
* Fixed: distances in the POI list were calculated in miles but labelled km
* Fixed: clicking the map did not close popups on OpenFreeMap maps
* Fixed: when a map is resized, an open popup now stays inside the map and the location list updates
* Updated: complete translations for German, Japanese, Italian, Dutch, Spanish, Czech and Brazilian Portuguese

= 2.97.16 =
* Added: templates support {{#field}}...{{/field}} blocks that show only when a field has a value ({{^field}} for empty), and hyphenated custom field names
* Removed: mashup "test" debugging attribute and mp_test parameter
* Changed: icon IDs and addresses are sanitized when maps are saved
* Changed: only administrators can snooze the review notice
* Changed: template delete is limited to MapPress templates and respects DISALLOW_FILE_EDIT
* Changed: standard templates updated to support a Content-Security-Policy without 'unsafe-eval'
* Fixed: mashup embed URL could show maps for private posts
* Fixed: trashed maps could be displayed through the embed URL
* Fixed: expired license notice now shows on every admin page until the license is renewed
* Fixed: iframe maps processed POI content twice

= 2.97.15 =
* Fixed: user details could be exposed through the map embed URL
* Changed: user mashup popups no longer show an email address 

= 2.97.14 = 
* Fixed: early return prevents map display

= 2.97.13 =
* Fixed: prevent other plugins from displaying notice dismissal code

= 2.97.12 =
* Fixed: bug causing settings page reload
* Fixed: mashup block queries not updating properly

= 2.97.11 =
* Changed: multiple compatibility updates for the WP 7.1 iframed editor
* Changed: you can now choose which post types display a 'map' colum independently from the geocoding settings
* Changed: minimum WP version is now 6.3
* Fixed: sidebar preview for poi list and filters was not working in Gutenberg editor

= 2.97.10 =
* Changed: better labeling of the search box for the map editor 
* Fixed: Google removed the drawing manager, breaking MapPress functionality

= 2.97.9 =
* Changed: better handling for 'excerpt_more' filters for mashup POIs
* Changed: improvements to the Pro updater, to prevent accidentally overwriting Pro with free version
* Changed: POI 'more' links now open outside iframe for iframed maps

= 2.97.8 =
* Added: improve terms fetching for mashup block, applies to sites with large numbers of taxonomies and hosts limiting connections
* Added: map-level POI list toggle
* Changed: update icon sizing to work with newer Leaflet stylesheet
* Fixed: mashup block lines/search buttons weren't responding


= 2.97.7 =
* Added: dark theme for OFM maps
* Changed: improved reminders
* Changed: better tile service setup
* Changed: better prevention for Siteground Optimizer minification problems
* Fixed: 'search' and 'filter' buttons were not working for Gutenberg mashup block
* Fixed: mashup block taxonomies were read with 'edit' context, should be 'view'
* Fixed: prevent reading draft/deleted posts in popups
* Fixed: try to implement workaround for hosts limiting connections, which intermittently prevents taxonomy reads

= 2.97.6 =
* Added: check that webGL is active
* Added: prevent optimizers like Siteground from re-minifying mablibre

= 2.97.5 =
* Changed: limit query and filter nonce check for sites with caching plugins

= 2.97.4 = 
* Added: escape in iframe

= 2.97.3 = 
* Fixed: change in 2.97 caused mashup shortcodes to show all posts
* Changed: improved hierarchical taxonomy handling in filters

= 2.97.2 = 
* Fixed: invalid Nominatim geocoder with Google engine
* Fixed: wp-cli error prevented translation file generation

= 2.97.1 =
* Bump version

= 2.97 =
* Added: compatibility with WP7
* Changed: required minimum version is now WordPress 6.2
* Changed: maplibre scripts are now bundled with plugin 
* Changed: more restrictive permissions for API calls
* Fixed: changes to support pooled SQL connections
* Fixed: add missing ob_start

= 2.96.6 = 
* Fixed: better compatibility with Complianz when using ofm

= 2.96.5 =
* Fixed: improved click/drag handling inside Gutenberg editor's new content iframe 

= 2.96.4 =
* Fixed: clicking on map not closing popup with openfreemap
* Fixed: latest Leaflet defaults autoPanOnFocus true

= 2.96.3 =
* Fixed: error with filter for empty taxonomy (with no terms)

= 2.96.2 =
* Fixed: version error

= 2.96 = 
* Added: OpenFreeMap (OFM) GL maps, a better looking default instead of OpenStreetMaps (OSM) raster tiles
* Added: for mashups, empty filters now default to only the 'include' terms or post types
* Added: dropdown slug search for filters
* Changed: new styled maps component, including support for OFM
* Fixed: selecting specific post types was not possible in post types filter
* Fixed: resetting post types filter uses only default post types

= 2.95.12 =
* Changed: save options when tileservice changes
* Changed: allow 'lon' as synonym for 'lng' when importing
* Fixed: 'post types' filter not displaying checkboxes correctly
* Fixed: try to give better errors on import invalid JSON

= 2.95.11 =
* Fixed: fatal error in wpml module

= 2.95.10 =
* Fixed: template editor not saving properly

= 2.95.9 = 
* Fixed: lines attribute not saving in Gutenberg block
* Fixed: string saving with WPML

= 2.95.8 =
* Fixed: error in filters dropdown from 2.95.7

= 2.95.7 =
* Added: travel lines can now be toggled on/off in the map editor
* Added: Google Material Symbols font for icon editor
* Added: new WPML integration to allow map POI translation 
* Changed: remove top margin from 'directions' wrapper div
* Fixed: error when displaying filters but custom CSS has hidden the header
* Fixed: scrollbars not restored closing icon editor with escape key

= 2.95.6 = 
* Added: new setting for 'directions' text for easier change/translation
* Fixed: error when creating new Mapbox style
* Fixed: Nominatim geocoder was not honoring lat, lng entry
* Fixed: default google directions to https
* Changed: removed google directions server URL setting 
* Changed: adjustments to POI list CSS for padding

= 2.95.5 =
* Changed: improved merging of queries when using ACF location fields
* Fixed: Google drawing manager displayed twice on the map
* Fixed: better error highlighting in settings page
* Fixed: updated importer to treat input/radio/select fields as strings, checkboxes as arrays
* Fixed: additional bug fixes for template handling

= 2.95.4 =
* Added: better error handling for empty/missing template files
* Changed: move 'mapp_filters_get' query parameter to build version
* Fixed: scrollbars not restored after dialog box is closed

= 2.95.3 = 
* Added: JS event on map ready.  See documentation for details.
* Changed: 'mapp_filters_get' updated to include map query as parameter

= 2.95.2 =
* Added: support Places API (New) to stop Google warnings.  If you would like to use this API, enable it in the cloud console.

= 2.95.1 =
* Fixed: single-map filters not working

= 2.95 =
* Added: corrected line colors in Leaflet KMLs
* Added: mashup filter checkboxes now default from initial query values
* Added: filter 'mappress_filter_values'

== Upgrade Notice ==     

= 2.97.10 =
Google removed the map drawing tools from their API. This update restores them. If your maps stopped displaying or you couldn't add markers or shapes in the editor, please update.                        