You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a geoJson data for a single floor and want to create the floormap and draw markers according to the location ids. I am using ionic 3 for app development. I am unable to achieve it as I am not finding any particular tutorial to use leaflet-indoor library in ionic. I have done following in my page.ts file
import leaflet from 'leaflet';
import L from'leaflet-indoor';
ionViewDidLoad() {
var indoorLayer = new L.Indoor(this.floorgeoJsonData);
indoorLayer.setLevel("0");
indoorLayer.addTo(Map);
}
Package.json of my application contains :
"leaflet": "^1.3.1",
"leaflet-indoor": "^1.0.3",
I am getting error as : ERROR TypeError: __WEBPACK_IMPORTED_MODULE_2_leaflet_indoor___default.a.indoor is not a constructor
Stack trace:
Please let me know what else to be added to make it work.
The text was updated successfully, but these errors were encountered:
I have a geoJson data for a single floor and want to create the floormap and draw markers according to the location ids. I am using ionic 3 for app development. I am unable to achieve it as I am not finding any particular tutorial to use leaflet-indoor library in ionic. I have done following in my page.ts file
Package.json of my application contains :
"leaflet": "^1.3.1",
"leaflet-indoor": "^1.0.3",
I am getting error as : ERROR TypeError: __WEBPACK_IMPORTED_MODULE_2_leaflet_indoor___default.a.indoor is not a constructor
Stack trace:
Please let me know what else to be added to make it work.
The text was updated successfully, but these errors were encountered: