File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -540,6 +540,25 @@ public function getWMSGetCapabilitiesUrl()
540
540
);
541
541
}
542
542
543
+ /**
544
+ * Get the WMS GetCapabilities Url.
545
+ *
546
+ * @return string
547
+ */
548
+ public function getWFSGetCapabilitiesUrl ()
549
+ {
550
+ return $ this ->appContext ->getFullUrl (
551
+ 'lizmap~service:index ' ,
552
+ array (
553
+ 'repository ' => $ this ->repository ->getKey (),
554
+ 'project ' => $ this ->key ,
555
+ 'SERVICE ' => 'WFS ' ,
556
+ 'VERSION ' => '1.0.0 ' ,
557
+ 'REQUEST ' => 'GetCapabilities ' ,
558
+ )
559
+ );
560
+ }
561
+
543
562
/**
544
563
* Get the WMTS GetCapabilities Url.
545
564
*
Original file line number Diff line number Diff line change @@ -213,6 +213,27 @@ public function index()
213
213
'resourceUrlReplacement ' => array (),
214
214
);
215
215
216
+ // Add preload links
217
+ $ rep ->addPreloadLink (
218
+ jUrl::get (
219
+ 'lizmap~service:getProjectConfig ' ,
220
+ array ('project ' => $ project , 'repository ' => $ repository ),
221
+ ),
222
+ 'fetch ' ,
223
+ 'application/json ' ,
224
+ );
225
+ $ rep ->addPreloadLink (
226
+ jUrl::get (
227
+ 'lizmap~service:getKeyValueConfig ' ,
228
+ array ('project ' => $ project , 'repository ' => $ repository ),
229
+ ),
230
+ 'fetch ' ,
231
+ 'application/json ' ,
232
+ );
233
+ $ rep ->addPreloadLink ($ lproj ->getWMSGetCapabilitiesUrl (), 'fetch ' , 'application/xml ' );
234
+ $ rep ->addPreloadLink ($ lproj ->getWFSGetCapabilitiesUrl (), 'fetch ' , 'application/xml ' );
235
+ $ rep ->addPreloadLink ($ lproj ->getWMTSGetCapabilitiesUrl (), 'fetch ' , 'application/xml ' );
236
+
216
237
// Get optional WMS public url list
217
238
$ lser = lizmap::getServices ();
218
239
if ($ lser ->wmsPublicUrlList ) {
@@ -316,6 +337,7 @@ function f($x)
316
337
}
317
338
}
318
339
340
+ // Add map theme
319
341
$ rep ->addAssets ('maptheme ' );
320
342
321
343
// Add dockable css
You can’t perform that action at this time.
0 commit comments