@devix-tecnologia/directus-extension-mapgrid 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,10 +4,10 @@ This project is a Layout-type extension for Directus, designed for viewing conte
4
4
 
5
5
  ## 💎 Using the Extension
6
6
 
7
- - Ensure that your collection has a field named `geolocation`, of type "Map".
7
+ - Ensure that your collection has a field of type "Map" and select the field in the Layout Options: Geolocation.
8
8
  - Enable the Layout in the settings menu on the right by selecting "MapGrid" from the dropdown.
9
9
 
10
- ![Extension visualization screen](docs/tela.jpg)
10
+ ![Extension visualization screen](https://github.com/devix-tecnologia/directus-extension-mapgrid/raw/main/docs/tela.jpg)
11
11
 
12
12
  ## 🚀 Running Directus with Docker Compose
13
13
 
@@ -21,7 +21,7 @@ This project is a Layout-type extension for Directus, designed for viewing conte
21
21
  > [!IMPORTANT]
22
22
  > _The docker-compose used in this project is configured to allow iframes from any domain. In production, you should only allow trusted domains._
23
23
  >
24
- > Additionally, for the map to function properly, ensure the following CSP (Content Security Policy) settings are correctly configured:
24
+ > In the previous version, the Leaflet map was used. For it to work properly, the following CSP (Content Security Policy) settings must be configured correctly (this is no longer necessary in the current version that uses Maplibre-gl, but here's a note):
25
25
 
26
26
  ```yaml
27
27
  CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC: "*" # allows iframes from any domain