From 1870f1f8e6747b45be0f1c02ad073d811d22d18f Mon Sep 17 00:00:00 2001 From: Jackie Ng Date: Fri, 21 Apr 2023 20:16:49 +1000 Subject: [PATCH] Un-break viewer API drawing example Fixes #1412 --- viewer/examples/taskpane/drawing.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/viewer/examples/taskpane/drawing.html b/viewer/examples/taskpane/drawing.html index fba9a18d8..51cc9a83c 100644 --- a/viewer/examples/taskpane/drawing.html +++ b/viewer/examples/taskpane/drawing.html @@ -106,14 +106,9 @@ // Set the vector layer style with a custom marker icon var ptStyle = viewer.getDefaultPointIconStyle(); ptStyle.src = "examples/taskpane/marker2.png"; - var defaultVectorStyle = { - point: ptStyle, - line: viewer.getDefaultLineStyle(), - polygon: viewer.getDefaultPolygonStyle() - }; var layerInfo = layerMgr.addLayer(LAYER_NAME, layer); // Dispatch mapLayerAdded to notify components like the external layer manager - viewer.dispatch(parent.parent.MapGuide.Actions.Map.mapLayerAdded(viewer.getMapName(), layerInfo, defaultVectorStyle)); + viewer.dispatch(parent.parent.MapGuide.Actions.Map.mapLayerAdded(viewer.getMapName(), layerInfo)); alert("Layer (" + LAYER_NAME + ") added"); layerAdded = true; document.getElementById("btnAddLayer").disabled = true;