-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle and test scaledenom at each level
- Loading branch information
1 parent
ac7274a
commit 852b226
Showing
7 changed files
with
205 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
LAYER | ||
NAME "point_scale" | ||
TYPE POINT | ||
DATA "../shapes/points.shp" | ||
EXTENT -180 -90 180 90 | ||
METADATA | ||
"wms_title" "point_scale" | ||
END | ||
MAXSCALEDENOM 160000 | ||
CLASS | ||
NAME "Max scale from layer (priority)" | ||
STYLE | ||
MAXSCALEDENOM 7000 | ||
SYMBOL "circle" | ||
COLOR 0 0 0 | ||
SIZE 24 | ||
END | ||
END | ||
CLASS | ||
NAME "Scales from class" | ||
MAXSCALEDENOM 320000 | ||
MINSCALEDENOM 160000 | ||
STYLE | ||
SYMBOL "circle" | ||
COLOR 0 0 0 | ||
SIZE 12 | ||
END | ||
END | ||
CLASS | ||
NAME "Max scale from layer" | ||
MINSCALEDENOM 320000 | ||
STYLE | ||
SYMBOL "circle" | ||
COLOR 0 0 0 | ||
SIZE 6 | ||
END | ||
END | ||
CLASS | ||
NAME "Scale 0 and max scale from layer (priority)" | ||
MAXSCALEDENOM 0 | ||
MINSCALEDENOM 0 | ||
STYLE | ||
SYMBOL "circle" | ||
SIZE 20 | ||
END | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const pointStyle: Style = { | ||
name: 'point_scale', | ||
rules: [{ | ||
name: 'Max scale from layer (priority)', | ||
scaleDenominator: { | ||
max: 160000, | ||
}, | ||
symbolizers: [{ | ||
kind: 'Mark', | ||
wellKnownName: 'Circle', | ||
color: '#000000', | ||
radius: 12, | ||
}], | ||
}, { | ||
name: 'Scales from class', | ||
scaleDenominator: { | ||
max: 320000, | ||
min: 160000, | ||
}, | ||
symbolizers: [{ | ||
kind: 'Mark', | ||
wellKnownName: 'Circle', | ||
color: '#000000', | ||
radius: 6, | ||
}], | ||
}, { | ||
name: 'Max scale from layer', | ||
scaleDenominator: { | ||
max: 160000, | ||
min: 320000, | ||
}, | ||
symbolizers: [{ | ||
kind: 'Mark', | ||
wellKnownName: 'Circle', | ||
color: '#000000', | ||
radius: 3, | ||
}], | ||
}, { | ||
name: 'Scale 0 and max scale from layer (priority)', | ||
scaleDenominator: { | ||
max: 160000, | ||
min: 0, | ||
}, | ||
symbolizers: [{ | ||
kind: 'Mark', | ||
wellKnownName: 'Circle', | ||
visibility: false, | ||
radius: 10, | ||
}], | ||
}], | ||
}; | ||
|
||
export default pointStyle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters