Correct to upgrade notes
This commit is contained in:
@@ -12,12 +12,12 @@ In addition, the previous methods for setting style parts have been replaced wit
|
|||||||
|
|
||||||
* Removed experimental style setting methods: `setFillStrokeStyle`, `setImageStyle`, `setTextStyle` (all have been replaced with `setStyle`).
|
* Removed experimental style setting methods: `setFillStrokeStyle`, `setImageStyle`, `setTextStyle` (all have been replaced with `setStyle`).
|
||||||
|
|
||||||
Below is an example of how the vector context may have been used in the past:
|
Below is an example of how the vector context might have been used in the past:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// OLD WAY, NO LONGER SUPPORTED
|
// OLD WAY, NO LONGER SUPPORTED
|
||||||
map.on('postcompose', function(event) {
|
map.on('postcompose', function(event) {
|
||||||
event.vectorContext.setFillStrokeStyle(style.getStroke(), style.getFill());
|
event.vectorContext.setFillStrokeStyle(style.getFill(), style.getStroke());
|
||||||
event.vectorContext.drawPointGeometry(geometry);
|
event.vectorContext.drawPointGeometry(geometry);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user