Reinos.nl internet media examples

Channel Form

Maps 5.0.1 Code only

The Maps field in a Channel Form, so visitors can draw on the map when they add an entry.

Template
{exp:channel:form id="maps_fieldtype_channel_form" channel="maps_fieldtype" return="maps/channel-form"}
   <input name="title" type="text">
   <input name="url_title" type="text">
   
   {field:maps_fieldtype}
   
   <input type="submit" value="Submit">
{/exp:channel:form}

Build it in your own site

What this example needs in ExpressionEngine, step by step.

  1. Install Maps.
  2. Create the field, with these short names:
    Short nameTypeNotes
    maps_fieldtypeMapsMarkers, lines and areas drawn per entry.
  3. Create the channel maps_fieldtype (Maps field) and assign the field.
  4. Put the code in a template.
  5. Add an entry and draw some markers in the Maps field. The examples use entry 351 (a bike tour with 4 markers): change the entry_id to yours.

This example comes from the Maps docs: the preview runs exactly the code above.