question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for 0.8-dev

See original GitHub issue

Anyone else here running with 0.8-dev yet?

I prepped a branch to begin work on fixing editing (points are not appearing since editing is undefined)…, and taking care of the map not existing when drawstart or draw-stop is called…which throws Uncaught TypeError: Cannot call method '_fireMouseEvent' of null from inside of L.Marker

https://github.com/snkashis/Leaflet.draw/tree/0.8_testing

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:36 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
cocomocommented, Nov 20, 2014

Thank you for the confirmation, of course it was my weird coding. I don’t know if it helps with 0.8, but i was able the solve my error by adding the data into layers before adding it to the map:

L.geoJson(geoJsonData, {
    onEachFeature: function (feature, layer) {
        drawnItems.addLayer(layer);
    }
});
1reaction
rwwagner90commented, Nov 13, 2014

@danzel I’m having an issue with selecting countries on my map. If I draw shapes, everything works with drawing, editing, and saving, but if I click a country, it outlines the country, and then when I click edit, I get Uncaught TypeError: Cannot read property 'lng' of null. Upon further investigation, it appears _latlng is null for the markers passed to _getMiddleLatLng, but _origLatLng appears to be populated correctly. Any idea why _origLatLng is populated and _latlng is not?

Seems to be an issue with _initMarkers perhaps, because after the marker is created there, it has _latlng = null. It being null doesn’t seem to be the issue though. The issue is occurring in this code in leaflet:

L.Projection.LonLat = {
    project: function (latlng) {
        return new L.Point(latlng.lng, latlng.lat);
    },

latlng is null, and I’m not sure why or how to fix it. It works with the normal hand drawn shapes, so is there something I am missing with country select?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Development — PyKMIP 0.8.dev documentation
Provide as much information on your feature request as possible, using information from the KMIP specifications or existing feature support in PyKMIP where ......
Read more >
SBIder version 0.8-dev - UserAgentString.com
Understand what information is contained in a SBIder user agent string. Get an analysis of your or any other user agent string.
Read more >
Details of package libgnome-games-support-1-dev in buster
libgnome-games-support is a small library intended for internal use by the games developed by the GNOME project but it may be used by...
Read more >
Details of package libgnome-games-support-1-dev in bionic
Other Packages Related to libgnome-games-support-1-dev · dep: libgee-0.8-dev: GObject based collection and utility library (development files) · dep: libglib2.0- ...
Read more >
Installing poezio — Poezio 0.8-dev documentation
Python 3.3 or better is highly recommended, as we do not officially support python 3.1 (although we do try to keep things running), ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found