-
Notifications
You must be signed in to change notification settings - Fork 69
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 does not render in admin and form views #40
Comments
OK, Is it possible to use this widget to save data into the model ? I've manually set a POINT to the geom field :
Thanks ! |
Ok, for the Meta class, we might have to update the documentation ? Yes of course, edition works ! I wonder why you faced those problems... did you try in adminsite ? |
I've the same issue in adminsite... SerializationError: The field ["geom", "{ "type":"Point", "coordinates":[ 3.172007203102112, 50.709293432461806 ] }"] could not be parsed as a valid geometry My code :
The 'get_map_name' method is a models' one that returns the name of the map, as a named url, in my case using a namespaced one (calendrier:admin:lieu_map). |
J'ai contourné le problème dans la vue de detail en utilisant l'appel à geoJson via ajax :
Dans la vue de création, via le LeafletWidget, je retrouve l'erreur de déserialisation des données :
Je vais essayer de comprendre ce qui se passe, et peut-être proposer un patch. Merci de votre aide ! |
OK, c'était dû à la non installation de GDAL. Merci ! |
Est-ce que finalement tout est rentré dans l'ordre ? Suite aux contributions de @fle, normalement il est possible de mettre tout en marche sans GEOS ni GDAL. Cela vaudrait le coup de comprendre et décortiquer les problèmes que tu as recontrés... |
Hi,
Thanks for your great job !
I'm facing a strange problem. I've folowed the doc from the github site, installed both django-leaflet, django-geojson and jsonfield, but form are rendered as "JSONTextField" but not as leaflet field.
I use a django 1.7.
The text was updated successfully, but these errors were encountered: