Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leaflet-indoor on ionic 3 #15

Open
neha20priya opened this issue Jun 1, 2018 · 1 comment
Open

leaflet-indoor on ionic 3 #15

neha20priya opened this issue Jun 1, 2018 · 1 comment

Comments

@neha20priya
Copy link

neha20priya commented Jun 1, 2018

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.

@muuvmuuv
Copy link

Did you came up with a solution or other plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants