Skip to content

Commit

Permalink
Set Polar extents.
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronCinNZ committed Jun 18, 2024
1 parent a3682cd commit 8a0c990
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
10 changes: 8 additions & 2 deletions web-ui/src/main/resources/catalog/js/CatController.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,14 @@
],
switcherProjectionList: [
{
code: "EPSG:3857",
label: "Google mercator (EPSG:3857)"
code: "EPSG:3031",
label: "WGS 84 / Antarctic Polar Stereographic",
def: "+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs",
extent: [
-3333134.0276302765, -3333134.0276302765, 3333134.0276302765,
3333134.0276302765
],
worldExtent: [-180, -90, 180, -60]
}
],
disabledTools: {
Expand Down
11 changes: 9 additions & 2 deletions web/src/main/webResources/WEB-INF/config-spring-geonetwork.xml
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,15 @@
If the request is for EPSG:4326, the request bbox (AOI) will be flipped from XY to YX.
-->
<util:map id="regionGetMapBackgroundLayers">
<entry key="osm"
value="\${map.bbox.background.service}"/>
<!-- <entry key="osm"
value="\${map.bbox.background.service}"/>-->
<entry key="MWLR-WMTS"
value='{
"wmtsGetCapabilitiesURL": "https://prod-ada-3.landcareresearch.co.nz/mapcache/atda/wmts/?request=GetCapabilities&amp;service=WMTS&amp;VERSION=1.0.0",
"layerName":"ada_basemap_combined_jpeng-HDPI"
}'/>
<entry key="MWLR-WMS"
value="\${map.bbox.background.service}"/>
</util:map>

<bean class="org.fao.geonet.kernel.datamanager.draft.DraftMetadataIndexer"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,35 @@
xmlns:ows="http://www.opengis.net/ows"
version="0.3.1" id="ows-context-ex-1-v3">
<ows-context:General>
<ows:BoundingBox crs="EPSG:3031">
<ows:LowerCorner>-4000000 -4000000</ows:LowerCorner>031
<ows:UpperCorner>4000000 4000000</ows:UpperCorner>
</ows:BoundingBox>
</ows-context:General>
<!-- <ows-context:General>
<ows:BoundingBox crs="EPSG:3857">
<ows:LowerCorner>-8604130.477526832 -320097.07393612247</ows:LowerCorner>
<ows:UpperCorner>8948257.201654762 8720263.135408245</ows:UpperCorner>
</ows:BoundingBox>
</ows-context:General>
</ows-context:General>-->
<ows-context:ResourceList>
<ows-context:Layer name="{type=osm}"
<ows-context:Layer queryable="false"
name="{type=wmts,name=ada_basemap_combined_jpeng-HDPI}"
hidden="false" opacity="1" group="Background layers">
<ows:Title xmlns:ows="http://www.opengis.net/ows">Antarctica</ows:Title>
<ows-context:Server service="urn:ogc:serviceType:WMS">
<ows-context:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://prod-ada-3.landcareresearch.co.nz/mapcache/atda/wmts/?Service%3DWMTS%26Request%3DGetCapabilities%26Version%3D1.0.0"/>
</ows-context:Server>
<ows-context:StyleList/>
</ows-context:Layer>

<!--<ows-context:Layer name="{type=osm}"
group="Background layers"
hidden="false"
opacity="1">
<ows:Title>OpenStreetMap
</ows:Title>
</ows-context:Layer>
</ows-context:Layer> -->
<!--Uncomment the code bellow to add support to MS bing maps; don't forget to add a valid bingKey on the
settings!-->
<!--
Expand Down

0 comments on commit 8a0c990

Please sign in to comment.