-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check if Array instead of number
- Loading branch information
1 parent
c0cca07
commit dc0ebfa
Showing
4 changed files
with
53 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import OlStyle from 'ol/style/Style'; | ||
import OlStyleCircle from 'ol/style/Circle'; | ||
import OlStyleFill from 'ol/style/Fill'; | ||
|
||
const olSimplePoint = new OlStyle({ | ||
image: new OlStyleCircle({ | ||
radius: 6, | ||
fill: new OlStyleFill({ | ||
color: '#FF0000' | ||
}), | ||
displacement: [1,1] | ||
}) | ||
}); | ||
|
||
export default olSimplePoint; |
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,19 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const pointSimpleOffset: Style = { | ||
name: 'OL Style', | ||
rules: [ | ||
{ | ||
name: 'OL Style Rule 0', | ||
symbolizers: [{ | ||
kind: 'Mark', | ||
wellKnownName: 'circle', | ||
color: '#FF0000', | ||
radius: 6, | ||
offset: [1, 1] | ||
}] | ||
} | ||
] | ||
}; | ||
|
||
export default pointSimpleOffset; |
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