Skip to content

Commit

Permalink
Made invocation use correct async method call.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrenken committed Dec 11, 2023
1 parent 5403910 commit d4d12df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenLayers.Blazor/wwwroot/openlayers_interop.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ MapOL.prototype.getShapeStyle = async function(feature) {
const that = this;

const shape = this.mapFeatureToShape(feature);
var style = await this.Instance.invokeMethod("OnGetShapeStyle", shape);
var style = await this.Instance.InvokeMethodAsync("OnGetShapeStyle", shape);
style = MapOL.transformNullToUndefined(style);

if (feature.getGeometry().getType() == "Point") {
Expand Down

0 comments on commit d4d12df

Please sign in to comment.