Skip to content

Interactive map

The interactive map widget adds your campsite map to your website, with the search bar above it. After guests pick their dates and guests, each place on the map turns green when it’s free for the whole stay and red when it isn’t.

Clicking a free place shows its accommodation with a Select button, which opens the booking form with that place selected. Guests can zoom and drag the map.

The widget uses the map and markers you’ve set up in Camping.care. Without a map, the widget shows nothing.

This widget is available on the Premium plan and up.

Copy the code below and paste it into your website. See Widgets for where to find your administration slug and how to create a public key.

<booking-engine
administration="{Your administration slug}"
public-key="{Your public key}"
widget="map"
></booking-engine>
<script type="module" crossorigin src="https://widgets.camping.care/assets/plugin.js"></script>

Add parameters as attributes. Each one falls back to the same parameter in the URL of your page.

Attribute Description
accommodation Shows only the places of this accommodation.
arrival, departure The stay to show free places for, YYYY-MM-DD.
default_days Number of nights when no departure is given.
persons, guests The guests. See Search and book.
linkout_url Page with the Booking Engine to send guests to when they select a place.
lang Language code, such as nl or de.
<booking-engine
administration="{Your administration slug}"
public-key="{Your public key}"
widget="map"
accommodation="55"
></booking-engine>

Try it: pick your dates, then click a green place. The example uses our demo campsite, Widgets Demo Park.

Event When
select-place The guest clicks Select on a free place. Cancelable.

See Styling and events for the details.