<a id="0a34783b0a2940b895c362993044e3b2"></a><a id="0a34783b-0a29-40b8-95c3-62993044e3b2"></a>

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.

## <a id="ejemplo-completo" data-help-heading="true"></a>Complete example

```html
<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.

## <a id="parámetros" data-help-heading="true"></a>Parameters

Add the parameters to the URL. Use `&amp;` 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:

```html
<iframe
  src="https://learn.derose.app/locator/embed?locale=es&amp;lat=-34.6037&amp;long=-58.3816&amp;zoom_w_location=12&amp;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.

## <a id="dominios-y-geolocalización" data-help-heading="true"></a>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](https://help.padm.am/4a5c74de19db45cf9703c63177a6cfeb). 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.

## <a id="compatibilidad-con-integraciones-anteriores" data-help-heading="true"></a>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.

## <a id="verificar-la-integración" data-help-heading="true"></a>Verify the integration

1. Open the URL of the `src` in a tab and check that it loads the map.
2. Test the iframe from the final domain.
3. If the browser blocks the iframe, check `frame-ancestors` in the response from Learn.
4. If your site defines a CSP, allow `https://learn.derose.app` in its directive. `frame-src`.
5. Test the location with permission accepted and denied.
6. 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](/help/learn-api-450f0680/embeber-en-tu-propio-site-iframes-d4a82a0e).
