#11072: Add Info Window Html to GMarker
-----------------------------------+----------------------------------------
 Reporter:  Ubercore               |       Owner:  nobody    
   Status:  new                    |   Milestone:            
Component:  GIS                    |     Version:  SVN       
 Keywords:  googlemaps marker gis  |       Stage:  Unreviewed
Has_patch:  1                      |  
-----------------------------------+----------------------------------------
 I did a quick search for this and didn't find any previous work.

 It allows you to set HTML for a GInfoWindow on an instance of a GMarker.
 No support for options on the info window yet, this is just the simplest
 case.

 I did see that it's possible to accomplish this using the GEvent class in
 overlays.py, but I think there's value in being able to set it directly on
 the marker.

 google-map.js uses bindInfoWindowHtml() to add the info window when the
 marker is added.

 A more complete solution might involve implementing GInfoWindow and
 GInfoWindowOptions, but I didn't want to implement them since they have no
 public constructor in the Google Maps API. Maybe represent the info window
 as a tuple of (html, { options})?

 Anyway, this tackles the simplest case.

 Example usage:

 {{{
 marker = GMarker(object.location, title=object.address)
 marker.infowindowhtml = "<p>Info Window!</p>";
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11072>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to