Make sure you have installed the SiteOrigin Widgets Bundle and that the Google Maps Widget is activated in the the Widgets Bundle interface under PluginsSiteOrigin Widgets. For more information see our Getting Started guide.
Navigate to the page or post on which you wish to display a google map, click the desired row and cell and click Add Widget to open the Add New Widget dialogue.
Click on the SiteOrigin Google Map widget to insert it into into the chosen row and cell. Hover over the widget to display further options namely Edit, Duplicate and Delete.
To edit a map, hover over the widget and click on the Edit link. The SiteOrigin Google Map edit dialogue will appear. Here you will find the standard Widget Styles settings as well as specific SiteOrigin Google Map Settings.
The specific SiteOrigin Google Map settings are covered below.
This is where you specify the name of a place, town, city, or even a country. It can also be an exact address.
Once you have specified the location the map will be displayed with its default settings as shown below:
A Google Maps API key is now required for your maps widget to function correctly. For a step-by-step guide on getting an API key, please, see: Get a Key/Authentication.
It’s also necessary to provide Google with your billing details. For help with adding your billing details, please see Add, remove, or update a payment method.
(A key shouldn’t be required for maps work on localhost but is required for live sites).
Under settings is where you set the map display options:
There are two map types to select from; Interactive (default) and Static Image, each with its own specific settings.
The interactive map settings include the following:
- Height: Defined in pixels. The map width is defined by the width of the cell into which the map is inserted.
- Zoom Level: Specified by a value from 0 to 21, where 0 is the world and 21 is highest zoom.
- Scroll to zoom: Allow scrolling over the map to zoom in or out.
- Draggable: Allow dragging the map to move it around.
- Disable default UI: Hides the default Google Maps controls.
- Keep map centered: Keeps the map centered when it’s container is resized.
The static image map settings include Width, Height and Zoom Level as defined above.
Markers are used to define points of interest on the map.
Clicking on the checkbox displays a marker at the center of the map, based on the information you provided in the Map Center field.
To replace the default map marker with your own image, click on the “Choose Media” button to select the icon from the media library.
This feature allows you to drag all markers around the map.
To create a new marker click on “Add” under the Marker positions tab. A new marker will appear.
Click on the drop down arrow to specify the marker location or address in the “Place” field.
Continue adding as many markers as are required.
Click and hold on a marker to drag it around when the draggable feature is enabled.
Click on the Custom map style radio button to reveal additional custom styling options.
Here is where you title your custom map settings. The title will appear in the top right corner of the map.
Here is where you can style various features of the map. To add a new feature click on the “Add” button under Custom Map Styles. Click on the drop down arrow of that style to begin editing. Continue adding as many features as you wish to edit.
- Select map feature to style
To select which map feature you would like to style click on the drop down menu. The list includes the following features (default feature is Water):
In this example I will style the default feature, Water.
- Select element type to style
When styling a feature you can choose to style the features Geometry, Label or both. Click on the drop down menu to select which element you wish to style.
The visible setting allows you to turn the visibility of a feature element on or off by clicking on the checkbox.
The example below has the following settings: Map feature: Water, Element type: Geometry, Visibility: off
Change the color of the feature element by clicking on the “Select Color” button. Select the desired color using the color pallet or type in the color Hex (#) Value. Adjust the color intensity using the slider.
The example below has the following settings: Map feature: Water, Element type: Geometry, Color: #81d742
Clicking on the Raw JSON radio button will reveal two additional options; Styled Map Name as explained above and the Raw JSON Styles editing window.
Here you can copy and paste predefined styles from Snazzy Maps. In the example below I used the Blue Essence styling from Snazzy Maps. Some of the styles do not work correctly with the Static Image Map Type.
The directions settings are used to display a route on your map, with waypoints between your starting point and destination.
Begin by specifying the starting point and destination in the fields provided.
Select the expected mode of travel using the drop down menu. Options available include Driving, Walking, Bicycling and Transit.
Select whether to avoid highways and tolls by clicking on the check box next to each. Based on the mode of travel you select and what routes to avoid, different travel routes will be selected.
A waypoint is any location that you wish to be included in the travel route. A waypoint could be a point of interest or a stop over. Add a waypoint by clicking on the “Add” button under waypoints. Begin editing a waypoint by clicking on the dropdown arrow in the far right corner of that particular waypoint.
Specify a waypoint location by typing the address in the location field provided. Waypoints will be indicated by a white dot on the map.
If the waypoint you wish to specify is a stopover, click on the stopover checkbox. The waypoint will now be displayed as a green marker.
The Starting Point, Stopover waypoints and Destination will all display in alphabetical order. Click on any of the markers to display its address.
Waypoint Limits: There is a limit of 25 waypoints. For further information on pricing in this regard, please see the pricing changes documentation.
Clicking on the optimize waypoints checkbox allows the Google Maps service to reorder waypoints for the shortest travelling distance.