diff --git a/GoogleMapsComponents/GoogleMapsComponents.csproj b/GoogleMapsComponents/GoogleMapsComponents.csproj index b6fcddff..a28871e2 100644 --- a/GoogleMapsComponents/GoogleMapsComponents.csproj +++ b/GoogleMapsComponents/GoogleMapsComponents.csproj @@ -18,7 +18,7 @@ 3.0 true BlazorGoogleMaps - 3.1.3 + 3.1.4 Rungwiroon QueueStack Solution BlazorGoogleMaps diff --git a/GoogleMapsComponents/wwwroot/js/objectManager.js b/GoogleMapsComponents/wwwroot/js/objectManager.js index 1373fcad..6529e37d 100644 --- a/GoogleMapsComponents/wwwroot/js/objectManager.js +++ b/GoogleMapsComponents/wwwroot/js/objectManager.js @@ -606,7 +606,8 @@ var featureId = args[2].replace('"', "").replace('"', ""); var feature = mapObjects[featureId]; var data = mapObjects[args[0]]; - data.overrideStyle(feature, args[3]); + var request = tryParseJson(args[3]); + data.overrideStyle(feature, request); } catch (e) { console.log(e); }