fix projection syntax
This commit is contained in:
@@ -153,7 +153,7 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
|
|||||||
}
|
}
|
||||||
|
|
||||||
var projection = config.projection || matrixSet.supportedCRS.replace(
|
var projection = config.projection || matrixSet.supportedCRS.replace(
|
||||||
/urn:ogc:def:crs:(\w+):.+:(\w+)$/, "$1:$2");
|
/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/, "$1:$3");
|
||||||
var units = config.units ||
|
var units = config.units ||
|
||||||
projection === "EPSG:4326" ? "degrees" : "m"
|
projection === "EPSG:4326" ? "degrees" : "m"
|
||||||
|
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ http://schemas.opengis.net/wmts/1.0/examples/wmtsGetCapabilities_response.xml
|
|||||||
</Layer>
|
</Layer>
|
||||||
<TileMatrixSet>
|
<TileMatrixSet>
|
||||||
<ows:Identifier>21781</ows:Identifier>
|
<ows:Identifier>21781</ows:Identifier>
|
||||||
<ows:SupportedCRS>urn:ogc:def:crs:EPSG:21781</ows:SupportedCRS>
|
<ows:SupportedCRS>urn:ogc:def:crs:EPSG::21781</ows:SupportedCRS>
|
||||||
<TileMatrix>
|
<TileMatrix>
|
||||||
<ows:Identifier>0</ows:Identifier>
|
<ows:Identifier>0</ows:Identifier>
|
||||||
<ScaleDenominator>14285750.5715</ScaleDenominator>
|
<ScaleDenominator>14285750.5715</ScaleDenominator>
|
||||||
|
|||||||
Reference in New Issue
Block a user