100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
or-map demo
robindekkersbf74f2b98133
diff --git a/ui/component/or-map/src/mapwidget.ts b/ui/component/or-map/src/mapwidget.tsindex b71468376..1a23aa7ad 100644--- a/ui/component/or-map/src/mapwidget.ts+++ b/ui/component/or-map/src/mapwidget.ts@@ -116,7 +116,10 @@ export class MapWidget {this._markersJs!.set(marker, m);break;case Type.VECTOR:-+ console.log(marker,marker.latitude, marker.longitude, this._mapGl);+ new MarkerGL(marker.html)+ .setLngLat([marker.latitude, marker.longitude])+ .addTo(this._mapGl);break;}diff --git a/ui/demo/demo-or-map/index.html b/ui/demo/demo-or-map/index.htmlindex 7df7c750e..a1d12a0f9 100644--- a/ui/demo/demo-or-map/index.html+++ b/ui/demo/demo-or-map/index.html@@ -19,7 +19,9 @@<or-map type="RASTER" style="height: 500px; width: 100%;"><or-map-marker-basic lat="51.4403423" lng="5.4679712" click-action="showCard" icon="http://pngimg.com/uploads/smiley/smiley_PNG36233.png"></or-map-marker-basic></or-map>- <or-map style="height: 500px; width: 100%;"></or-map>+ <or-map style="height: 500px; width: 100%;">+ <or-map-marker-basic lat="51.4403423" lng="5.4679712" click-action="showCard" icon="http://pngimg.com/uploads/smiley/smiley_PNG36233.png"></or-map-marker-basic>+ </or-map></template></demo-snippet></div>