Parameters

All iframe URL parameters for Maps embeds.

All parameters are passed as query strings in the iframe src URL:

https://www.stay22.com/embed/gm?aid=<AID>&address=Bell+Centre+Montreal&checkin=2026-08-15

Try it

Toggle parameters on and off to see how they affect the map in real time.

Don't have one? Just hit Go. We'll use demo_affiliate_id as a placeholder.

Required

ParameterTypeRequiredDefaultDescription
aidstringYes—Your Stay22 affiliate ID. Signup for free here.

Location

At least one location parameter is needed. Coordinates are the most precise.

ParameterTypeRequiredDefaultDescription
addressstringNo—Destination address or place name. URL-encode spaces as + or %20.
latnumberNo—Latitude. Use with lng. Takes priority over address.
lngnumberNo—Longitude. Use with lat.

Dates

ParameterTypeRequiredDefaultDescription
checkinstringNo—Check-in date in YYYY-MM-DD format.
checkoutstringNo—Check-out date in YYYY-MM-DD format.

Guests

ParameterTypeRequiredDefaultDescription
adultsnumberNo—Number of adult guests.
childrennumberNo—Number of children.
infantsnumberNo—Number of infants.
roomsnumberNo—Number of rooms. Defaults to 1.
bedroomsnumberNo—Number of bedrooms.
bedsnumberNo—Number of beds.
bathroomsnumberNo—Number of bathrooms.

Tracking

ParameterTypeRequiredDefaultDescription
campaignstringNo—Campaign ID for tracking. To know where this map is being embedded, and where the booking came from.
gclidstringNo—Google Click ID for AdWords attribution.

Viewport & Bounds

Control the map viewport, zoom level, and visible area.

ParameterTypeRequiredDefaultDescription
zoomnumberNo—Force a specific map zoom level. Higher numbers = more zoomed in. Typical range: 1 (world) to 18 (street level). Defaults to 16.
freezeviewportbooleanNo—Lock the map viewport. Prevents automatic adjustments when filters change or results load.
nelatnumberNo—Northeast latitude of a bounding box. Use with nelng, swlat, swlng.
nelngnumberNo—Northeast longitude of a bounding box.
swlatnumberNo—Southwest latitude of a bounding box.
swlngnumberNo—Southwest longitude of a bounding box.
scrollstringNo—Scroll/zoom behavior on the map. Options: enabled, disabled.

GPX Trails

Render a route or trail on the map from a GPX file.

ParameterTypeRequiredDefaultDescription
gpxstringNo—URL to a GPX file. Renders the trail as a polyline on the map. Must be hosted on HTTPS. You may need to configure CORS headers on the hosting server to allow the iframe to fetch it.
gpxlinecolorstringNo—Trail line color. Hex without #. Defaults to 45aaf2.
gpxlineopacitynumberNo—Trail line opacity from 0 to 1. Defaults to 1.
gpxlinethicknessnumberNo—Trail line thickness in pixels. Defaults to 4.

Filters

ParameterTypeRequiredDefaultDescription
minnumberNo—Minimum price filter.
maxnumberNo—Maximum price filter.
priceperstringNo—Price display mode. Options: nightly, total.
minstarratingnumberNo—Minimum star rating filter.
minguestratingnumberNo—Minimum guest rating filter.
limitnumberNo—Maximum number of results to display. Min 5, max 99.

Visual

These change how the map looks. Toggle them in the playground above to see what each one does.

ParameterTypeRequiredDefaultDescription
mapstylestringNo—Map visual style. Options: dark, light, satellite. Defaults to standard.
maincolorstringNo—Primary accent color. Hex value without the # (e.g. ff5a5f).
invmodestringNo—Inventory mode. Options: accommodation (default), experience.
listviewexpandbooleanNo—Show list view alongside the map. The iframe must be wider than 400px for the list to appear.
viewmodestringNo—Initial view. Options: map, listview, all.
markerimagestringNo—URL for a custom marker icon on the destination pin.
navimagestringNo—URL for a custom navigation icon.
dotlistingsbooleanNo—Show listings as dots on the map instead of price markers.

Colors

All hex values, without the # prefix.

ParameterTypeRequiredDefaultDescription
fontcolorstringNo—Primary font color.
fontcolorsubstringNo—Secondary font color.
hotelscolorstringNo—Hotel marker color.
hotelsfontcolorstringNo—Hotel marker font color.
rentalscolorstringNo—Rental marker color.
poibgcolorstringNo—POI background color.
bordercolorstringNo—Border color.
loadingbarcolorstringNo—Loading bar color.
chpincolorstringNo—Custom pin color.
chpinfontcolorstringNo—Custom pin font color.

Custom Content

ParameterTypeRequiredDefaultDescription
poistringNo—Custom points of interest as a URL-encoded JSON array. Each object supports: lat, lng (position), name (pin label), desc (hover text), url (click destination), img (icon URL), size (1-5), disablehover (skip hover card). Typically set programmatically.
fitmaptopoibooleanNo—Fit the map bounds to include all POI positions.
hotelsstringNo—Custom hotel listings as a URL-encoded JSON array passed in the query string. Typically set programmatically rather than by hand.
titlestringNo—Widget title override. Pass null to remove.
customfontlinkstringNo—URL to a custom font (e.g. Google Fonts link).
customfontstringNo—Custom font name. Requires customfontlink.

Provider Selection

ParameterTypeRequiredDefaultDescription
hotelsapistringNo—Hotel API provider override (e.g. booking, expedia).
rentalsapistringNo—Rental API provider override (e.g. vrbo).

Listing Filtering

Show, hide, or feature specific listings by their provider IDs. All ID lists are comma-separated.

ParameterTypeRequiredDefaultDescription
showhotelsbooleanNo—Show hotel listings.
skiphcidsstringNo—booking.com Hotel IDs to exclude (comma-separated).
onlyhcidsstringNo—booking.com Only show these hotel IDs (comma-separated).

UI Toggles

Hide specific UI elements. All are boolean — set to true to hide.

ParameterTypeRequiredDefaultDescription
hideenlargemapbooleanNo—Hide the fullscreen/enlarge button.
hidesettingsbooleanNo—Hide the settings button.
hidecurrencybooleanNo—Hide the currency selector.
hidelanguagebooleanNo—Hide the language selector.
hidesearchbarbooleanNo—Hide the search bar.
hidefiltersbooleanNo—Hide all filters.
hidepricefilterbooleanNo—Hide the price filter.
hidecheckinoutbooleanNo—Hide the check-in/check-out controls.
hideguestpickerbooleanNo—Hide the guest picker.
hideadultsbooleanNo—Hide the adults selector.
hidechildrenbooleanNo—Hide the children selector.
hideroomsbooleanNo—Hide the rooms selector.
hidemodeswitcherbooleanNo—Hide the accommodation/experience mode switcher.
hidemainmarkerbooleanNo—Hide the main center marker.
hidestarratingbooleanNo—Hide star ratings.
hideguestratingbooleanNo—Hide guest ratings.
hidepriceperbooleanNo—Hide the per-night price label.
hideroomtypefilterbooleanNo—Hide the room type filter.
hidenavbuttonsbooleanNo—Hide navigation buttons.
hidebrandlogobooleanNo—Hide the Stay22 brand logo.
hidefooterbooleanNo—Hide the footer.
hidenavimagebooleanNo—Hide the navigation image.
hideallezbuttonbooleanNo—Hide the Allez redirect button.

Localization

ParameterTypeRequiredDefaultDescription
currencystringNo—Currency code (e.g. USD, EUR). Auto-detected by default.
supportedcurrenciesstringNo—Restrict available currencies to this comma-separated list.
ljsstringNo—Force the widget language. Two-letter code. Options: en, fr, de, es, pt, it, nl, pl, zh, zh-tw, ja, cs, no, tr, sv, uk. Auto-detected by default.
supportedlangstringNo—Restrict available languages to this comma-separated list.
unitsystemstringNo—Unit system. Options: metric, imperial.

Full example

<iframe
  src="https://www.stay22.com/embed/gm?aid=<AID>&lat=45.4960&lng=-73.5693&checkin=2026-08-15&checkout=2026-08-17&adults=2&campaign=bell_centre_concert"
  style="width: 100%; height: 380px; border: none;"
  loading="lazy"
></iframe>

Sizing

The iframe is responsive by default. Recommended dimensions:

  • Width: 100% of the container
  • Height: 380px is a good default; adjust to fit your layout
  • Border: none for a clean look
iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 8px; /* optional */
}

See also

On this page