Appearance
Examples
Simple Example
{exp:reinos_maps:html_header}
{exp:channel:entries entry_id="351"}
{maps_fieldtype}
{/exp:channel:entries}
{exp:reinos_maps:html_footer}Center a single marker
{exp:reinos_maps:html_header}
{exp:channel:entries limit="1"}
{exp:reinos_maps:map width="100%" center:latlng="{maps_fieldtype:markers_latlngs}" zoom="15"}
{maps:add_marker latlng="{maps_fieldtype:markers_latlngs}"}
{/exp:reinos_maps:map}
{/exp:channel:entries}
{exp:reinos_maps:html_footer}Channel Form
{exp:channel:form id="maps_fieldtype_channel_form" channel="maps_fieldtype" return="maps/channel-form" include_assets="yes"}
<input name="title" type="text">
<input name="url_title" type="text">
{field:maps_fieldtype}
<input type="submit" value="Submit">
{/exp:channel:form}Example Zoom
{exp:reinos_maps:html_header}
{exp:channel:entries entry_id="351"}
{maps_fieldtype zoom="12"}
{/exp:channel:entries}
{exp:reinos_maps:html_footer}Has marker check (conditional)
{exp:reinos_maps:html_header}
{exp:channel:entries limit="1"}
{if "{maps_fieldtype:has type='markers'}" == "1"}
...
{/if}
{/exp:channel:entries}
{exp:reinos_maps:html_footer}Marker loop with add_marker tag
{exp:reinos_maps:html_header}
{exp:channel:entries entry_id="3" dynamic="no"}
{exp:reinos_maps:map fit_map:markers="yes"}
{maps_fieldtype:markers}
{!-- Because we are using the add_marker tag from the Maps module, you can do anything that is documented here --> https://docs.reinos.nl/maps/map-tag-markers --}
{maps:add_marker latlng="{lat},{lng}"}
{/maps_fieldtype:markers}
{/exp:reinos_maps:map}
{/exp:channel:entries}
{exp:reinos_maps:html_footer}Marker loop
{exp:reinos_maps:html_header}
{exp:channel:entries entry_id="351"}
<ul>
{maps_fieldtype:markers}
<li>{tooltip} : {lat},{lng}</li>
{/maps_fieldtype:markers}
</ul>
{/exp:channel:entries}
{exp:reinos_maps:html_footer}Route based on the makers
The route uses the {maps:add_route} tag of Maps.
{exp:reinos_maps:html_header}
{exp:channel:entries entry_id="351"}
{exp:reinos_maps:map width="100%" fit_map:routes="yes"}
{maps_fieldtype:routes}
{maps:add_route
latlng:from="{from}{from:lat},{from:lng}{/from}"
latlng:to="{to}{to:lat},{to:lng}{/to}"
latlng:waypoints="{stops backspace='1'}{stops:lat},{stops:lng}|{/stops}"
}
{/maps_fieldtype:routes}
{/exp:reinos_maps:map}
{/exp:channel:entries}
{exp:reinos_maps:html_footer}