@geogirafe/lib-geoportal 1.1.0-dev.2640738406 → 1.1.0-dev.2643003589
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/package.json +1 -1
- package/templates/api.html +23 -7
- package/templates/public/about.json +1 -1
package/package.json
CHANGED
package/templates/api.html
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
height: 100%;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
geogirafe-map {
|
|
81
|
+
:not(.left.default) > geogirafe-map {
|
|
82
82
|
position: absolute;
|
|
83
83
|
width: 100%;
|
|
84
84
|
height: 100%;
|
|
@@ -125,10 +125,9 @@
|
|
|
125
125
|
const apiOrigin = `${window.location.origin}${window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'))}`;
|
|
126
126
|
const elem = document.getElementById('include-code');
|
|
127
127
|
|
|
128
|
-
elem.textContent = elem.textContent.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
`href="${apiOrigin}/geogirafe-api.css"`
|
|
128
|
+
elem.textContent = elem.textContent.replaceAll(
|
|
129
|
+
/(src|href)="\/([^"]+)"/g,
|
|
130
|
+
(match, attr, path) => `${attr}="${apiOrigin}/${path}"`
|
|
132
131
|
);
|
|
133
132
|
|
|
134
133
|
const sections = document.querySelectorAll('section');
|
|
@@ -186,16 +185,33 @@
|
|
|
186
185
|
</section>
|
|
187
186
|
|
|
188
187
|
<h2>Add a simple map view</h2>
|
|
189
|
-
<p class="descr">Add a simple map to the page, with its default configuration.</p>
|
|
188
|
+
<p class="descr">Add a simple map to the page, with its default configuration and size.</p>
|
|
190
189
|
<section>
|
|
191
190
|
<div class="row">
|
|
192
|
-
<div class="left">
|
|
191
|
+
<div class="left default">
|
|
193
192
|
<geogirafe-map />
|
|
194
193
|
</div>
|
|
195
194
|
<div class="right"></div>
|
|
196
195
|
</div>
|
|
197
196
|
</section>
|
|
198
197
|
|
|
198
|
+
<h2>Add a simple map view with a custom size</h2>
|
|
199
|
+
<p class="descr">Add a simple map to the page, with a custom size.</p>
|
|
200
|
+
<section>
|
|
201
|
+
<div class="row">
|
|
202
|
+
<div class="left default">
|
|
203
|
+
<style>
|
|
204
|
+
.custom-size {
|
|
205
|
+
width: 100%;
|
|
206
|
+
height: 100%;
|
|
207
|
+
}
|
|
208
|
+
</style>
|
|
209
|
+
<geogirafe-map class="custom-size" />
|
|
210
|
+
</div>
|
|
211
|
+
<div class="right"></div>
|
|
212
|
+
</div>
|
|
213
|
+
</section>
|
|
214
|
+
|
|
199
215
|
<!-- With center -->
|
|
200
216
|
<h2>Add a map with center coordinates</h2>
|
|
201
217
|
<p class="descr">Set the default center point.</p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.1.0-dev.
|
|
1
|
+
{"version":"1.1.0-dev.2643003589", "build":"2643003589", "date":"01/07/2026"}
|