drawing icons on a map

10 views
Skip to first unread message

jacob.fenwick

unread,
Nov 16, 2009, 8:33:25 PM11/16/09
to geodjango
Hi all,

I'm an experienced Django developer but I know absolutely nothing
about GIS.

I've managed to get GeoDjango up and running on Django-trunk with
Postgresql on Mac OS X. I also have the GeographicAdmin app working
from geodjango-basic-apps.

I'm looking for how to draw a raster image on the map, similar to the
waypoints Google Maps draws when you get directions. I'm not sure what
the correct word for this type of icon is in the GIS vocabulary, so if
someone could tell me what it is I'd be greatly appreciate.

I've read most of the documentation for GeoDjango and haven't seen a
simple example of how to do this. I'm guessing the GeoIP example from
geodjango-basic-apps would do it, but the version in the trunk of
geodjango-basic-apps is broken.

Jacob

Charlie DeTar

unread,
Nov 16, 2009, 9:16:53 PM11/16/09
to geod...@googlegroups.com
Hi Jacob,

GeoDjango doesn't handle mapping directly, it just handles the
geographic data management. To produce admin maps, it uses OpenLayers,
which provides mapping tools with similar capabilities to Google Maps'
(but free and open source). The built-in admin maps aren't yet very
customizable.

To put markers on a map, you'll need to use some javascript in templates
together with a mapping library like OpenLayers or Google Maps (both
would work). A few options here:

http://openlayers.org/
http://code.google.com/apis/maps/
http://cloudmade.com/products/web-maps-lite

I wrote a wrapper for OpenLayers to make deploying maps on Django sites
easier (http://github.com/yourcelf/olwidget ). The javascript
documentation with it includes an example for using raster images as
markers instead of the default SVG bumps (html here:
http://github.com/yourcelf/olwidget/blob/master/doc/examples/info_markers.html
).

-charlie
> --
>
> You received this message because you are subscribed to the Google Groups "geodjango" group.
> To post to this group, send email to geod...@googlegroups.com.
> To unsubscribe from this group, send email to geodjango+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/geodjango?hl=.
>
>

Reply all
Reply to author
Forward
0 new messages