Skip to content

Commit

Permalink
Merge ecd9ed4 into 7549d57
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed Dec 1, 2023
2 parents 7549d57 + ecd9ed4 commit d5d8207
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 201 deletions.
13 changes: 13 additions & 0 deletions data/olStyles/point_icon_sprite.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import OlStyle from 'ol/style/Style';
import OlStyleIcon from 'ol/style/Icon';

const olIconSpritePoint = new OlStyle({
image: new OlStyleIcon({
src: 'https://testurl.com/sprites/mysprite',
offset: [20, 20],
offsetOrigin: 'top-left',
size: [10, 10]
})
});

export default olIconSpritePoint;
21 changes: 21 additions & 0 deletions data/styles/point_icon_sprite.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Style } from 'geostyler-style';

const pointSpritePoint: Style = {
name: 'OL Style',
rules: [
{
name: 'OL Style Rule 0',
symbolizers: [{
kind: 'Icon',
image: {
source: 'https://testurl.com/sprites/mysprite',
position: [20, 20],
size: [10, 10]
},
size: 10
}]
}
]
};

export default pointSpritePoint;
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
'^.+\\.(ts|js)$': '<rootDir>/node_modules/babel-jest'
},
transformIgnorePatterns: [
'node_modules/(?!(ol|color-name|@terrestris/*)/)'
'node_modules/(?!(ol|color-name|color-space|color-rgba|color-parse|@terrestris/*)/)'
],
testRegex: '/src/.*\\.spec.ts$',
collectCoverageFrom: [
Expand Down
163 changes: 40 additions & 123 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"css-font-parser": "^2.0.0",
"geostyler-style": "^7.3.1"
"geostyler-style": "^8.1.0"
},
"peerDependencies": {
"ol": ">=7.4"
Expand Down Expand Up @@ -72,7 +72,7 @@
"jest": "^29.6.1",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.6.1",
"ol": "^7.4.0",
"ol": "^8.2.0",
"regenerator-runtime": "^0.14.0",
"semantic-release": "^22.0.8",
"typescript": "^5.1.6",
Expand Down

0 comments on commit d5d8207

Please sign in to comment.