Skip to content

Commit

Permalink
Merge pull request #34 from geoblocks/symbology_fixes
Browse files Browse the repository at this point in the history
Symbology fixes and finer customizability
  • Loading branch information
gberaudo authored Jun 11, 2024
2 parents 55c2080 + 6dfe803 commit 918de2b
Show file tree
Hide file tree
Showing 8 changed files with 188 additions and 146 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @geoblocks/geoblocks changes

## 0.2.15

- Use ol getFontParameters to parse font.
- Fallback to fill color if none is specified on circle style.

Breaking changes:

- Pass feature object to allow informed customization.


## 0.2.14

- Fix (invert) text Y axis offset.
Expand Down
157 changes: 70 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@geoblocks/mapfishprint",
"version": "0.2.14",
"version": "0.2.15",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -37,15 +37,15 @@
"@geoblocks/print": "0.7.8",
"@geoblocks/recast-utils": "0.1.0",
"@types/geojson": "7946.0.14",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"color-name": "2.0.0",
"color-parse": "2.0.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"gh-pages": "6.1.1",
"ol": "9.0.0",
"prettier": "3.2.5",
"ol": "^9.2.4",
"prettier": "^3.3.2",
"typedoc": "0.25.13",
"typescript": "5.4.5"
}
Expand Down
6 changes: 3 additions & 3 deletions src/BaseCustomizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@ export default class BaseCustomizer {
* @param symbolizer
* @param stroke
*/
line(layerState: State, symbolizer: MFPSymbolizerLine, stroke: Stroke) {}
line(layerState: State, geojsonFeature: GeoJSONFeature, symbolizer: MFPSymbolizerLine, stroke: Stroke) {}

/**
* Can be used to manipulate the image symbolizers
* @param layerState
* @param symbolizer
* @param image
*/
point(layerState: State, symbolizer: MFPSymbolizerPoint, image: Image) {}
point(layerState: State, geojsonFeature: GeoJSONFeature, symbolizer: MFPSymbolizerPoint, image: Image) {}

/**
* Can be used to manipulate the text symbolizers
* @param layerState
* @param symbolizer
* @param text
*/
text(layerState: State, symbolizer: MFPSymbolizerText, text: Text) {}
text(layerState: State, geojsonFeature: GeoJSONFeature, symbolizer: MFPSymbolizerText, text: Text) {}

/**
* Can be used to manipulate a converted WMTS layer
Expand Down
Loading

0 comments on commit 918de2b

Please sign in to comment.