Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

Waymorphic Map & Custom Maps Wordpress Plugin - Rating, Reviews, Demo & Download

Waymorphic Map & Custom Maps Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Waymorphic Map adds interactive maps to your posts and pages. The maps are vector maps of the whole planet, made from OpenStreetMap data and served by Waymorphic Map. They are free. You do not need an account, an API key or a payment card.

This is the official plugin of Waymorphic Map. The author of the plugin operates the map service.

  • A block for the editor. Type an address and select it from the suggestions: the map goes there and gets a marker. Click the map to add more markers, drag them into position, and click a marker to change its text. Select the map style from five swatches. The editor shows the map, its markers and its shapes. The list, the search, the groups and the category buttons show on the page.
  • A shortcode for the classic editor, widgets and templates.
  • Five map styles: Positron, Bright, Liberty, Dark and Fiord.
  • Markers with popups. Add as many as you want. The map can fit its view to them.
  • Marker colours, pictures and animations. Give each marker a colour or your own picture. Markers can drop or bounce when the map opens.
  • Shapes. Polygons, lines, circles and rectangles, each with a popup. Draw them on the map in the block, or use the shortcodes.
  • Import. Add the markers, lines and areas of a CSV, GeoJSON, KML or GPX file. A GPX track shows a route on the map.
  • Groups of markers (clusters). Markers that are near to each other show as one circle with their number.
  • Heatmaps.
  • A list of the markers below the map. A click on a name shows that marker.
  • A search for the nearest markers (store locator). The visitor types an address or uses the location of the browser, and sees the markers in a distance, nearest first.
  • Categories. Give the markers a category, and visitors can show one category at a time.
  • Directions. Each popup and each row of the list can have a directions link. You select the map service that the link opens: Google Maps, Apple Maps, Waze or OpenStreetMap. Or the visitor selects the service from a list.
  • A location button that shows the position of the visitor on the map.
  • Addresses. Give the shortcode an address and the plugin finds the coordinates.
  • Does not take over the scroll wheel. The page scrolls; ctrl or cmd + scroll zooms the map. You can change this for each map.
  • Fast. The map script loads only on pages that have a map, and a map starts only when the visitor scrolls near it.
  • No tracking. The plugin sets no cookies. MapLibre GL JS is included in the plugin, not loaded from a CDN.

The shortcode

A map with one marker:

[waymorphic_map lat="51.5074" lng="-0.1276" zoom="11" label="London"]

A map from an address:

[waymorphic_map address="10 Downing Street, London" zoom="16" style="bright"]

A map with many markers. Without lat and lng, the view fits the markers:

[waymorphic_map height="500"]
[waymorphic_marker lat="48.8584" lng="2.2945"]<strong>Eiffel Tower</strong>[/waymorphic_marker]
[waymorphic_marker lat="48.8606" lng="2.3376" open="true"]The Louvre[/waymorphic_marker]
[waymorphic_marker address="Cathédrale Notre-Dame de Paris"]Notre-Dame[/waymorphic_marker]
[/waymorphic_map]

Attributes of [waymorphic_map]:

  • lat, lng – the centre of the map. lon and long are other names for lng.
  • address – an address or place name, used when lat and lng are not given. A marker shows the place.
  • zoom – 0 (the world) to 22. The default is in the settings. When the view fits two or more markers, zoom is the upper limit of the view (15 when it is not given).
  • style – positron, bright, liberty, dark or fiord.
  • height – a CSS length such as 400px or 60vh. A number is in pixels. A percentage is not a height.
  • width – a CSS length such as 300px or 50%. A number is in pixels.
  • The units of height and width are px, vh, vw, dvh, svh, lvh, dvw, svw, lvw, vmin, vmax, em, rem and ch (and % for the width). Other values, such as calc(), give the default.
  • marker – true puts a marker at the centre.
  • label – popup text for the marker at the centre.
  • controls – false hides the zoom and fullscreen buttons.
  • scroll_zoom – true lets plain scroll zoom the map. Without it, ctrl or cmd + scroll zooms the map, and on a touch screen two fingers move the map (one finger scrolls the page).
  • interactive – false makes a still map.
  • title – the name of the map for screen readers.
  • popup_title – false: the popup of a marker does not start with the title of the marker.
  • cluster – true puts markers that are near to each other in a group.
  • list – true shows the list of the markers below the map.
  • locator – true shows the search for the nearest markers above the map.
  • radius – the first distance of the search. The default is 25.
  • unit – km or mi, for the search and the list.
  • filter – true shows a button for each marker category.
  • directions – true adds a directions link to the popups and the list. The link opens the map service of the settings. Or give the service: google, apple, waze or osm. Or choice: the visitor selects the service from a list.
  • locate – true shows the button that goes to the position of the visitor.
  • animation – drop or bounce, for all the markers.
  • colour – the colour of the marker at the centre, such as #d63638.

Attributes of [waymorphic_marker]: lat and lng, or address; open="true" shows the popup when the page opens. The text between the tags is the popup. Optional: title (the name in the list and the first line of the popup), category, colour (such as #d63638), icon (the URL of a picture to use as the marker) and animation (drop or bounce). A marker with no popup text can have a slash at the end and no closing tag: [waymorphic_marker lat="51.5" lng="-0.12" /].

Use straight quotes (") in the shortcodes. A user who can edit the page sees a message below the map when an address was not found, when a position is not valid, or when the search found an address very far from the places of the map that have a lat and a lng (the map must have two such places, or a centre with a lat and a lng). Visitors do not see this message. The search gives the place that it knows best: write the town in an address, and the area or the full name of the country when other towns have the same name (address="Buckingham Palace, London", address="Boston, Lincolnshire"). Write United Kingdom and United States, not UK and USA. In a very large country, a correct town can be that far: with the full name of its area or of its country in the address (address="Perth, Western Australia"), it gets no message.

Shapes

Put the shape shortcodes in [waymorphic_map]. The points are latitude,longitude pairs with ; between them. The text between the tags is the popup of the shape.

[waymorphic_map]
[waymorphic_polygon points="51.50,-0.20; 51.55,-0.12; 51.50,-0.05" colour="#008a20"]The area we deliver to[/waymorphic_polygon]
[waymorphic_line points="51.50,-0.20; 51.52,-0.10; 51.51,0.00" colour="#d63638" width="4"]
[waymorphic_circle lat="51.5074" lng="-0.1276" radius="500"]
[waymorphic_rectangle points="51.48,-0.20; 51.49,-0.15"]
[/waymorphic_map]
  • [waymorphic_polygon] – three or more points, 500 at most.
  • [waymorphic_line] – two or more points, 500 at most.
  • [waymorphic_circle] – lat and lng, or address, and radius in metres.
  • [waymorphic_rectangle] – two opposite corners.
  • All shapes: colour (the outline), width (the outline, in pixels). Polygons, circles and rectangles: fill (the colour of the inside) and opacity (0 to 1).
  • [waymorphic_heatmap] – points, 5000 at most. A point can have a weight as a third number: 51.5,-0.12,3. Optional: radius in pixels (the default is 30) and opacity (0 to 1).

Files

[waymorphic_map cluster="true" list="true"]
[waymorphic_file url="https://example.com/wp-content/uploads/shops.csv" category="Shops" colour="#008a20"]
[waymorphic_file url="https://example.com/wp-content/uploads/walk.gpx"]
[/waymorphic_map]

[waymorphic_file] shows the markers, lines and areas of a CSV, GeoJSON, KML or GPX file. The browser of the visitor gets the file each time the page opens, so a change to the file shows on the map. Ten files for each map at most.
  • A CSV file has a first row with the names of the columns: lat (or latitude), lng (or lon, longitude), and the optional title (or name), description, category, colour and icon. A position is a number: 51.5074, 51,5074, or 0.1276 W. A row whose position has other text does not show.
  • The file must be on your site, or on a server that permits your site to read it (CORS).
  • The text of a file shows as plain text. HTML in a file does not operate.
  • colour and category on the shortcode are for the markers that have none in the file.
  • For a file with some hundreds of markers or more, use cluster="true". The map draws only the markers that are not in a group, and stays quick.

In the block, “Import a file” in the Markers panel reads a file from your computer and adds its markers and shapes to the block. The file is not uploaded. A block can have 1000 markers. One file gives 100 shapes at most, and a line keeps 500 points.

A store locator

[waymorphic_map locator="true" list="true" filter="true" directions="true" unit="mi" radius="10"]
[waymorphic_marker address="10 Downing Street, London" title="London shop" category="Shops"]Open 9 to 5[/waymorphic_marker]
[waymorphic_marker lat="53.4808" lng="-2.2426" title="Manchester depot" category="Depots"]
[/waymorphic_map]

External service

This plugin shows maps from the Waymorphic Map tile server, https://tiles.waymorphic.com. The author of this plugin operates this server.

  • When a visitor sees a map, the browser of the visitor gets the map style, map tiles, fonts and icons from that server. As with all web requests, the server sees the IP address and the browser of the visitor, and the tiles requested.
  • When you use an address in a shortcode, your WordPress site sends that address to the search of the server and keeps the position for one year. If the search does not find the address, the site asks again after one day. If the search does not answer, the site asks again after five minutes.
  • When you search for a place in the block editor, your browser sends the search text to the server, with the centre and the zoom of the map of the block.
  • When a map has the search for the nearest markers (locator), the browser of the visitor sends the search text to the server, with the centre of the markers of the map: the server prefers places near the markers. With “Use my location”, the position stays in the browser.

The directions link (directions) is a link to the map service that you select in the settings, on the shortcode or in the block:

The plugin sends nothing to these sites. The visitor goes there only with a click on the link, and the link has the position of the marker. The waymorphic_map_directions_services filter changes the list of the services.

The terms of use of the service are its fair use rules. The same rules have the privacy statement of the service (“No tracking”): the server has no accounts, no cookies and no analytics, and it keeps the usual access logs for a short time to operate the service. The service is free and best effort: there is no uptime guarantee. If you run your own Waymorphic Map server, you can set its URL in Settings > Waymorphic Map.

Map data © OpenStreetMap contributors, with the OpenMapTiles schema. The credit in the corner of each map is a licence requirement. Do not remove it.

Third-party code

The plugin includes MapLibre GL JS 5.21.0 (BSD 3-Clause licence) in assets/vendor/maplibre-gl. The file maplibre-gl.js is the minified build from the npm package maplibre-gl. The source code is at https://github.com/maplibre/maplibre-gl-js/tree/v5.21.0.

Screenshots

  1. A map with a marker, a popup and a directions link on a page.

    A map with a marker, a popup and a directions link on a page.

  2. A store locator: the visitor searches for a place, selects a category, and sees the nearest places in the list with their distances.

    A store locator: the visitor searches for a place, selects a category, and sees the nearest places in the list with their distances.

  3. The directions link: the visitor selects Google Maps, Apple Maps, Waze or OpenStreetMap.

    The directions link: the visitor selects Google Maps, Apple Maps, Waze or OpenStreetMap.

  4. Shapes on the Bright style: an area, a line for a route, and a circle.

    Shapes on the Bright style: an area, a line for a route, and a circle.

  5. Markers with a colour for each category, on the Dark style.

    Markers with a colour for each category, on the Dark style.

  6. A new block asks for the place. The search gives suggestions while you type.

    A new block asks for the place. The search gives suggestions while you type.

  7. The block in the editor: the search field on the map, the markers, and the fields of a marker in the sidebar.

    The block in the editor: the search field on the map, the markers, and the fields of a marker in the sidebar.

  8. The settings page with the defaults for new maps.

    The settings page with the defaults for new maps.


Reviews & Comments