Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Django OSMGeoAdmin with PointField uses OpenLayers and it's hard to use.

I want to add 2 new input elements which are lat and lng. Using jQuery, when values of the input elements are change, I want to change point on the OpenLayer.

How can I do that? No complete code or instructions are necessary, main idea is enough.


share|improve this question

i dont know is there any difference with geodjando and OSMGeoAdmin but in normal geodjango if you want to update any field, you can use following code:

def updateVal(request):
  poId = request.POST.get("pointID", default=0)
  objGeo = request.POST.get("meta", default=0)

  f = Points.objects.get(id = poId)

      f.geom = objGeo
      res = "OK"
      res = "ERROR"

i hope it helps you...

share|improve this answer
Thank You! but I want to do that in browser side. – ecabuk Dec 4 '12 at 15:56
You could pass an argument to this from the browser using an ajax request. – djq Feb 2 '13 at 22:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.