Appearance
Map Circle
The {maps:add_circle} tag, for use inside the {exp:reinos_maps:map} tag.

The tag
{exp:reinos_maps:map}
{maps:add_circle}
{/exp:reinos_maps:map}Tag parameters
Below are the Tag Parameters. Those parameters can be used in the tag described above.
address
The address for the circle
address=""latlng
The latlng for the circle
latlng=""stroke:enable
Enable the stroke
stroke:enable="yes" [OPTIONAL]stroke:color
set the stroke color.
stroke:color="#000000" [OPTIONAL]stroke:opacity
set the stroke opacity.
stroke:opacity="1" [OPTIONAL]stroke:weight
set the stroke weight.
stroke:weight="1" [OPTIONAL]fill:enable
enable to fill the circle
fill:enable="yes" [OPTIONAL]fill:color
set the fill color.
fill:color="#000000" [OPTIONAL]fill:opacity
set the fill opacity.
fill:opacity="0.4" [OPTIONAL]radius
set the radius in meters, or with a unit: m, km, mi or ft, e.g. radius="5km" or radius="1.5 mi"(units from v5.0.0). A value that is not a radius gives 1000 meters, with an error in the Maps log.
radius="1000" [OPTIONAL]tooltip:content
set the tooltip content.
tooltip:content="" [OPTIONAL]tooltip:direction
Direction where to open the tooltip. Possible values are: right, left, top, bottom, center, auto.
auto will dynamically switch between right and left according to the tooltip position on the map.
tooltip:direction="auto" [OPTIONAL]tooltip:permanent
Whether to open the tooltip permanently or only on mouseover.
tooltip:permanent="no" [OPTIONAL]tooltip:sticky
If yes, the tooltip will follow the mouse instead of being fixed at the center.
tooltip:sticky="no" [OPTIONAL]class
Set a class for the circle object
class="maps_circle" [OPTIONAL]popup:content
The content for the popup (infowindow) e.g: <h1>Yeah [location]</h1>
Variables : [location] [route_to_url] [route_from_url] [map_url] [directions_url]
Geocoding variables (only with the address param): [address] [street_name] [street_number] [city] [country] [country_code] [zipcode] [lat] [lng]. A variable without a value is empty in the popup (before v5.0.0 it stayed as text, and [lat] and [lng] were not filled)
Note for complex HTML (e.g. from a WYSIWYG editor) use the encode tag
popup:content="" [OPTIONAL]popup:directions
The app or site that [directions_url] in the popup opens, with the directions to the location: google (default), apple or osm. On a phone, the Google Maps and Apple Maps links open the app. (from v5.0.0)
e.g. popup:content="<a href='[directions_url]' target='_blank'>Get directions</a>"
popup:directions="google" [OPTIONAL]popup:max_width
Specify the max width for the popup
popup:max_width="300" [OPTIONAL]popup:min_width
Specify the min width for the popup
popup:min_width="50" [OPTIONAL]popup:open_on_hover
Open the popup on hover
popup:open_on_hover="no" [OPTIONAL]popup:open_by_default
Open the popup by default
possible values no|yes
popup:open_by_default="no" [OPTIONAL]popup:auto_close
Close the popup when another popup is opened.
In case if you want to open 2 or more popups by default, you can combine this with popup:open_by_default="yes"
possible values no|yes
popup:auto_close="yes" [OPTIONAL]category
The categories of the circle, separated by |, for the legend of the map (filter="yes") (from v5.0.0)
category="Shops|Food" [OPTIONAL]keys
The keys to find the circle with the Javascript API. By default a circle can be found by its number (1 for the first circle). Use this param to add your own keys.
Use a colon : to give it multiple keys
keys="key1_for_the_first_circle:key2_for_the_first_circle"