Integrate the DeROSE Schools Map with /locator/embed
Automatic translation. View original
Integrate the DeROSE Schools Map into your site using a iframe. This guide is aimed at external site developers.
The map is public and does not require logging in, an API key, or a school identifier. The integration is available on Learn DeROSE.
Complete example
<iframe
src="https://learn.derose.app/locator/embed?locale=es"
title="Mapa de escuelas DeROSE"
width="100%"
height="650"
loading="lazy"
allow="geolocation">
</iframe>
The route /locator/embed already uses the embedded presentation. You do not need to add embedded=true.
The map shows the main geolocated locations of enabled DeROSE schools. It excludes exclusively online schools. By selecting a marker, the visitor can view the school's information.
Adjust the height to the available space. The iframe does not automatically adjust its height to the content.
Parameters
Add the parameters to the URL. Use & to separate parameters within the HTML attribute src.
| Parameter | Usage |
|---|---|
locale |
Language: es, pt, en, fr or it. |
lat and long
|
Initial or fallback center, in decimal degrees. Send both values. If the visitor authorizes their location, the map can center on it. |
zoom_w_location |
Zoom when the visitor's location is obtained. Default: 16. |
zoom_wout_location |
Initial and fallback zoom when the location is not obtained. Default: 5. |
cluster |
Filters schools of a group. Use the group identifier agreed with DeROSE. It is not the name of a city or a school identifier. |
Example with center in Buenos Aires and fallback zoom:
<iframe
src="https://learn.derose.app/locator/embed?locale=es&lat=-34.6037&long=-58.3816&zoom_w_location=12&zoom_wout_location=10"
title="Mapa de escuelas DeROSE"
width="100%"
height="650"
loading="lazy"
allow="geolocation">
</iframe>
Without explicit coordinates, the fallback center depends on the estimated location of the request. If not available, it uses -41, -65.
The map can zoom out to show at least one marker. The indicated level does not guarantee a fixed framing.
Domains and geolocation
The container site must use an origin authorized by the frame-ancestors Learn directive.
The configuration includes https://learn.derose.app, *.derose.app, *.derosemethod.org and *.derosemethod.com. It may include other authorized origins. A root domain is not automatically included by a subdomain rule.
For another domain, request its enabling through Contact. Indicate the exact production and testing origins. A URL parameter does not authorize a domain.
To allow geolocation, keep allow="geolocation" and use HTTPS. It must also be allowed by the container site policy, the browser, and the visitor. If the location is not obtained, the map uses the fallback center and zoom.
Compatibility with previous integrations
The URL https://learn.derose.app/locator?embedded=true&for=webGlobal retains the previous map for compatibility. For new integrations, use /locator/embed.
The parameter for=webGlobal is not required in the new route. /locator without the previous combination opens the school finder. Do not use /locator?embedded=1 as a substitute for the dedicated map.
Verify the integration
- Open the URL of the
srcin a tab and check that it loads the map. - Test the iframe from the final domain.
- If the browser blocks the iframe, check
frame-ancestorsin the response from Learn. - If your site defines a CSP, allow
https://learn.derose.appin its directive.frame-src. - Test the location with permission accepted and denied.
- Check the height and interaction on mobile and desktop.
If schools are missing, check the filter cluster. Also verify that the schools are enabled and have a main geolocated location.
For other integrations, consult Embed Learn in your site with iframes.