New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@yatmo/elements

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yatmo/elements

Real estate maps, points of interest and neighbourhood text as HTML elements: <yatmo-map>, <yatmo-pois> and <yatmo-text> web components for property pages, with no framework and no build step. Powered by Yatmo.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
7
-36.36%
Maintainers
1
Weekly downloads
 
Created
Source

@yatmo/elements

Add real estate maps, points of interest and neighbourhood data to any website with one HTML element. @yatmo/elements gives property pages the Yatmo neighbourhood map (schools, nurseries, supermarkets, public transport, stations, travel times, isochrones), a list of the nearest places and a written neighbourhood text, as web components that work with no framework and no build step: Webflow, Wix custom code, Drupal, Laravel Blade, Rails, static HTML, or inside React, Vue and Svelte. 25 countries, 23 languages.

<script type="module" src="https://cdn.jsdelivr.net/npm/@yatmo/elements@1/dist/yatmo-elements.js"></script>

<yatmo-config key="YOUR_FRONTEND_KEY" country="BE" language="FR"></yatmo-config>

<yatmo-map latitude="50.8461" longitude="4.3664" marker="circle" isochrone="right"></yatmo-map>
<yatmo-pois latitude="50.8461" longitude="4.3664" categories="education,shopping"></yatmo-pois>
<yatmo-text latitude="50.8461" longitude="4.3664"></yatmo-text>

Yatmo neighbourhood map with points of interest and travel times on a property page

Install in 5 minutes

  • Get a Yatmo licence key at yatmo.com and use the frontend key, the one locked to your domains (keys explained).
  • Load the script, from the CDN as above or from npm (npm install @yatmo/elements, then import '@yatmo/elements').
  • Put <yatmo-config> once in the page with your key, country and language.
  • Drop the elements where the property's neighbourhood belongs, with the property coordinates.

Runnable page: yatmo-examples/10-web-components.

Elements

<yatmo-map>

The interactive map of the neighbourhood, as the Yatmo iframe plugin: points of interest with real travel times on foot, by bike, by car and by public transport, the summary over the map, isochrones and routes. Every parameter of the iframe plugin is an attribute, rebuilt live when it changes.

AttributeValues
latitude, longitudeProperty coordinates
addressInstead of the coordinates: the property address, located by Yatmo in the country of the config (one lookup per address and page, shared by the three elements). For no-code pages (Webflow, Wix, Squarespace) that only hold an address
modeoverlay (default), overlay-scores, map-top, map, summary, summary-tabs
zoom7 to 20, default 15
map-style1 to 7
accent-colorHex colour of the pin and highlights
marker, circle-radiuspin, circle (hides the exact address, radius in metres) or custom with custom-marker-url, custom-marker-width, custom-marker-height
roundedCorner radius in pixels, 1 to 15
isochroneleft or right: the 5, 10 and 20 minute areas
route-fromleft, right or popup: route to the place the visitor clicks
user-id, start-latitude, start-longitudeFavourite addresses of a logged-in visitor
height, titleCSS height (default 560px), accessible title
key, country, languageOverride <yatmo-config> for this element

<yatmo-pois>

The nearest places by category (nursery, school, supermarket, bus stop, station...) with distance and travel time, as headings and lists styled by your CSS.

AttributeValues
latitude, longitude or addressThe property location, as for <yatmo-map>
categorieseducation, transport, shopping, tourism (default: all)
modeTravel time shown: walking (default), bicycling, driving, transit
limitPlaces per sub-category, default 1
headingh2 to h6, default h3

Fires a yatmo-pois event with the summary once loaded.

<yatmo-text>

The written description of the neighbourhood (education, shopping, public transport, roads, leisure, nearby cities), headings and paragraphs with the key places in bold.

AttributeValues
latitude, longitude or addressThe property location, as for <yatmo-map>
paragraphsComma-separated among education, shopping, publictransports, transports, tourism, cities
headingh2 to h6, default h3
titlesstreet-city (default), city (never names the street), generic

Fires a yatmo-text event with the text once loaded. The text is fetched in the browser; to have search engines index it, render it on the server with @yatmo/sdk, the WordPress plugin or the Odoo module.

Styling

The elements render plain HTML in the light DOM (<iframe>, <h3>, <ul>, <p>, <strong>), so your page CSS applies. The map takes the width of its element; set height on <yatmo-map>.

More

Examples · Documentation · React components · API client

MIT licence. Yatmo is a paid service for real estate portals, agency networks and developers; a licence key is required.

Keywords

yatmo

FAQs

Package last updated on 01 Oct 2026

Related posts