François GUÉRIN
François GUÉRIN
Additional infos: I can see it here: ```sh cat /proc/bus/input/devices I: Bus=0003 Vendor=046d Product=408a Version=0111 N: Name="Logitech MX Keys" P: Phys=usb-0000:00:14.0-8.2/input2:1 S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.2/1-8.2:1.2/0003:046D:C52B.0003/0003:046D:408A.0004/input/input20 U: Uniq=408a-4f-b5-e2-0d H: Handlers=sysrq kbd leds mouse0...
I've set directly the `/dev/input/event4` into the netevent.n2e file, it works for now, but I'm not sure this event device handler is static (maybe it'll change after a reboot...) Thanks...
I've the reason of the bug : ```python from wagtail.wagtailcore import hooks ... @hooks.register('insert_editor_css') def leaflet_editor_css(): return format_html(render_to_string('publications/leaflet/leaflet_css.html', {"debug": settings.DEBUG})) @hooks.register('insert_editor_js') def leaflet_editor_js(): return format_html(render_to_string('publications/leaflet/leaflet_js.html', {"debug": settings.DEBUG})) ``` In the...
... but without point selector ...
I've a message in my js console : ``` TypeError: L.GeometryField is not a constructor ``` What can I do ?
js output : ``` html var geodjango_geom = {}; geodjango_geom.fieldid = 'id_geom'; geodjango_geom.modifiable = true; geodjango_geom.geom_type = 'Geometry'; geodjango_geom.srid = 4326; function id_geom_map_callback(map, options) { geodjango_geom.store_class = L.FieldStore; (new L.GeometryField(geodjango_geom)).addTo(map);...
I've add leaflet.forms.js into form loading, which contains the L.GeometryField definition, but I've the same issue. ``` python class LocationForm(ModelForm): class Media: js = (static('leaflet/leaflet.forms.js'), ) # pass ```
^^ ... does not work ...
I think scripts are loaded in a proper order, but I"ll check that tomorow. I've another weird think inf fox the map is displayed partialy, but when I launch the...
^^ same on chrome / chromium : the map is displayed on "Inspect" mode https://agenda.tourcoing.fr/calendrier/manifestation/1152/ click on "location" at page bottom Thanks ! 2015-09-09 21:02 GMT+02:00 François GUÉRIN [email protected]: >...