Markers on geodjango

78 views
Skip to first unread message

Coulson Thabo Kgathi

unread,
Sep 14, 2012, 5:30:59 AM9/14/12
to django...@googlegroups.com
can i place markers on geodjango maps, cant figure out how to do that

Marcos Moyano

unread,
Sep 14, 2012, 7:45:59 AM9/14/12
to django...@googlegroups.com
http://invisibleroads.com/tutorials/geodjango-googlemaps-build.html
Like that?

Marcos

On Fri, Sep 14, 2012 at 6:30 AM, Coulson Thabo Kgathi <zeec...@gmail.com> wrote:
can i place markers on geodjango maps, cant figure out how to do that

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/PA5XOTjKhsIJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems.

Jamie Zawinski, in comp.emacs.xemacs

Coulson Thabo Kgathi

unread,
Sep 14, 2012, 10:25:39 AM9/14/12
to django...@googlegroups.com
somethin like this below, but pulling coordinates from database then
ploting a marker.

i suspect the coordinates can be passed to urls the to view to display the
map

This is what i have done so far but i entered the coordinates and edited my
modules only, wit the code below

# thts the models.py

from django.db import models

# Create your models here.
# This is an auto-generated Django model module created by ogrinspect.
from django.contrib.gis.db import models
from geoposition.fields import GeopositionField

class Locations(models.Model):
name = models.CharField(max_length=20)
description = models.CharField(max_length=30)
objects = models.GeoManager()
position = GeopositionField()

Reply all
Reply to author
Forward
0 new messages