-
Notifications
You must be signed in to change notification settings - Fork 27
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
Missing icons when loading plain kml #10
Comments
Hi Bugfindr, To debug that you can use the following snippet: var kmz = L.kmzLayer('demo.kmz', {
geometryToLayer: function(data) {
console.log(data);
return L.geoJson(data);
}
}).addTo(map); Anyway, it would be better if you could also provide an example file ... Have a nice day, |
That happens because the Line 62 in ff62f3a
For further details, here you can see a more in-depth example: leaflet-kmz_gridlayer.html.
Thanks for the demo file, your problem was related to the fact that the file is not actually a "zipped" folder (but a simple "kml" text file). Take a look at version 1.0.5 and then let me know if it works. Happy testing, |
I just saw leaflet-kmz_gridlayer.html file. but there's no way to apply KMZ/KML direct to map without overrides? |
I don't think I understand well, however, have you tried (with version 1.0.5) to simply doing so? var kmz = L.kmzLayer('demo.kmz').addTo(map); |
@Raruto Never mind. Looks like your change works now. I will back to you If I will find something. Thank you very much! |
In latest version, facing issue with Icon property in KMZLayer.js file.
That's says undefined icon property. Please help on the same.
The text was updated successfully, but these errors were encountered: