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
aidstringYesYour Stay22 affiliate ID. Signup for free here.

Location

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

ParameterTypeRequiredDefaultDescription
addressstringNoDestination address or place name. URL-encode spaces as + or %20.
latnumberNoLatitude. Use with lng. Takes priority over address.
lngnumberNoLongitude. Use with lat.

Dates

ParameterTypeRequiredDefaultDescription
checkinstringNoCheck-in date in YYYY-MM-DD format.
checkoutstringNoCheck-out date in YYYY-MM-DD format.

Guests

ParameterTypeRequiredDefaultDescription
adultsnumberNoNumber of adult guests.
childrennumberNoNumber of children.
infantsnumberNoNumber of infants.
roomsnumberNoNumber of rooms. Defaults to 1.
bedroomsnumberNoNumber of bedrooms.
bedsnumberNoNumber of beds.
bathroomsnumberNoNumber of bathrooms.

Tracking

ParameterTypeRequiredDefaultDescription
campaignstringNoCampaign ID for tracking. To know where this map is being embedded, and where the booking came from.
gclidstringNoGoogle Click ID for AdWords attribution.

Viewport & Bounds

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

ParameterTypeRequiredDefaultDescription
zoomnumberNoForce a specific map zoom level. Higher numbers = more zoomed in. Typical range: 1 (world) to 18 (street level). Defaults to 16.
freezeviewportbooleanNoLock the map viewport. Prevents automatic adjustments when filters change or results load.
nelatnumberNoNortheast latitude of a bounding box. Use with nelng, swlat, swlng.
nelngnumberNoNortheast longitude of a bounding box.
swlatnumberNoSouthwest latitude of a bounding box.
swlngnumberNoSouthwest longitude of a bounding box.
scrollstringNoScroll/zoom behavior on the map. Options: enabled, disabled.

GPX Trails

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

ParameterTypeRequiredDefaultDescription
gpxstringNoURL 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.
gpxlinecolorstringNoTrail line color. Hex without #. Defaults to 45aaf2.
gpxlineopacitynumberNoTrail line opacity from 0 to 1. Defaults to 1.
gpxlinethicknessnumberNoTrail line thickness in pixels. Defaults to 4.

Filters

ParameterTypeRequiredDefaultDescription
minnumberNoMinimum price filter.
maxnumberNoMaximum price filter.
priceperstringNoPrice display mode. Options: nightly, total.
minstarratingnumberNoMinimum star rating filter.
minguestratingnumberNoMinimum guest rating filter.
limitnumberNoMaximum 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
mapstylestringNoMap visual style. Options: dark, light, satellite. Defaults to standard.
maincolorstringNoPrimary accent color. Hex value without the # (e.g. ff5a5f).
invmodestringNoInventory mode. Options: accommodation (default), experience.
listviewexpandbooleanNoShow list view alongside the map. The iframe must be wider than 400px for the list to appear.
viewmodestringNoInitial view. Options: map, listview, all.
markerimagestringNoURL for a custom marker icon on the destination pin.
navimagestringNoURL for a custom navigation icon.
dotlistingsbooleanNoShow listings as dots on the map instead of price markers.

Colors

All hex values, without the # prefix.

ParameterTypeRequiredDefaultDescription
fontcolorstringNoPrimary font color.
fontcolorsubstringNoSecondary font color.
hotelscolorstringNoHotel marker color.
hotelsfontcolorstringNoHotel marker font color.
rentalscolorstringNoRental marker color.
poibgcolorstringNoPOI background color.
bordercolorstringNoBorder color.
loadingbarcolorstringNoLoading bar color.
chpincolorstringNoCustom pin color.
chpinfontcolorstringNoCustom pin font color.

Custom Content

ParameterTypeRequiredDefaultDescription
poistringNoCustom 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.
fitmaptopoibooleanNoFit the map bounds to include all POI positions.
hotelsstringNoCustom hotel listings as a URL-encoded JSON array passed in the query string. Typically set programmatically rather than by hand.
titlestringNoWidget title override. Pass null to remove.
customfontlinkstringNoURL to a custom font (e.g. Google Fonts link).
customfontstringNoCustom font name. Requires customfontlink.

Provider Selection

ParameterTypeRequiredDefaultDescription
hotelsapistringNoHotel API provider override (e.g. booking, expedia).
rentalsapistringNoRental API provider override (e.g. vrbo, airbnb).

Listing Filtering

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

ParameterTypeRequiredDefaultDescription
showhotelsbooleanNoShow hotel listings.
showothersbooleanNoShow other accommodation types.
skiphcidsstringNoHotel IDs to exclude (comma-separated).
onlyhcidsstringNoOnly show these hotel IDs (comma-separated).

UI Toggles

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

ParameterTypeRequiredDefaultDescription
hideenlargemapbooleanNoHide the fullscreen/enlarge button.
hidesettingsbooleanNoHide the settings button.
hidecurrencybooleanNoHide the currency selector.
hidelanguagebooleanNoHide the language selector.
hidesearchbarbooleanNoHide the search bar.
hidefiltersbooleanNoHide all filters.
hidepricefilterbooleanNoHide the price filter.
hidecheckinoutbooleanNoHide the check-in/check-out controls.
hideguestpickerbooleanNoHide the guest picker.
hideadultsbooleanNoHide the adults selector.
hidechildrenbooleanNoHide the children selector.
hideroomsbooleanNoHide the rooms selector.
hidemodeswitcherbooleanNoHide the accommodation/experience mode switcher.
hidemainmarkerbooleanNoHide the main center marker.
hidestarratingbooleanNoHide star ratings.
hideguestratingbooleanNoHide guest ratings.
hidepriceperbooleanNoHide the per-night price label.
hideroomtypefilterbooleanNoHide the room type filter.
hidenavbuttonsbooleanNoHide navigation buttons.
hidebrandlogobooleanNoHide the Stay22 brand logo.
hidefooterbooleanNoHide the footer.
hidenavimagebooleanNoHide the navigation image.
hideallezbuttonbooleanNoHide the Allez redirect button.

Localization

ParameterTypeRequiredDefaultDescription
currencystringNoCurrency code (e.g. USD, EUR). Auto-detected by default.
supportedcurrenciesstringNoRestrict available currencies to this comma-separated list.
supportedlangstringNoRestrict available languages to this comma-separated list.
unitsystemstringNoUnit 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