File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## unpublished
4+
5+ - Fix: Increase type precision of EPSG codes from ` string ` to ` EPSG:${string} ` .
6+
37## 1.0.0
48
59Initial release.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export function getGazetteerFeatures(
2323 version : WFSVersion ,
2424 memberSuffix : MemberSuffix ,
2525 namespaces : string [ ] ,
26- epsg : string ,
26+ epsg : `EPSG:${ string } ` ,
2727 options : AdditionalSearchOptions = { }
2828) : Promise < FeatureCollection > {
2929 let requestUrl = Object . entries ( input ) . reduce (
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function parseGazetteerResponse(
1616 response : Response ,
1717 memberSuffix : MemberSuffix ,
1818 namespaces : string [ ] ,
19- epsg : string ,
19+ epsg : `EPSG:${ string } ` ,
2020 title ?: string | string [ ]
2121) : Promise < FeatureCollection > {
2222 return response . text ( ) . then ( ( text ) => {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export interface AdditionalSearchOptions {
1515/** Adds the possibility to have a 'title' attribute in a GeoJSON Feature */
1616export interface PolarGeoJsonFeature extends GeoJsonFeature {
1717 /** The projection of the coordinates of the features */
18- epsg : string
18+ epsg : `EPSG:${ string } `
1919 /** Which fieldName to use for display purposes; e.g. used in the AddressSearch for the result list */
2020 title ?: string
2121}
Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## unpublished
4+
5+ - Fix: Test now uses a mock EPSG code instead of an empty string.
6+
37## 1.2.0
48
59- Feature: Extend mock state to match current core state type.
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default (): MockParameters => {
4949 center : null ,
5050 components : 1 ,
5151 configuration : {
52- epsg : '' ,
52+ epsg : 'EPSG:12345 ' ,
5353 layerConf : [ ] ,
5454 namedProjections : [ ] ,
5555 layers : [ ] ,
Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## unpublished
4+
5+ - Fix: Increase type precision of EPSG codes from ` string ` to ` EPSG:${string} ` .
6+
37## 1.4.0
48
59- Feature: Add ` MasterportalapiPolygonFillHatch ` to ` MarkerStyle ` as optional fill variant.
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export type SearchType = 'bkg' | 'gazetteer' | 'wfs' | 'mpapi'
4444 */
4545export interface QueryParameters {
4646 /** Currently used projection of the map */
47- epsg : string
47+ epsg : `EPSG:${ string } `
4848 /** sets the maximum number of features to retrieve */
4949 maxFeatures ?: number
5050 // type:mpapi – these are forwarded to the masterportalApi
@@ -570,7 +570,7 @@ export interface MapConfig {
570570 /** if true, all services' availability will be checked with head requests */
571571 checkServiceAvailability ?: boolean
572572 /** The epsg code of the projection that the map will use */
573- epsg : string
573+ epsg : `EPSG:${ string } `
574574 /** Configured layers */
575575 layers : LayerConfiguration [ ]
576576 /** masterportalapi-type layer configuration */
You can’t perform that action at this time.
0 commit comments