[Cubicweb] google maps

Carlos Balderas carlos.balderas at gmail.com
Thu Jul 30 20:10:33 CEST 2009


CubicWeb version: 3.3.3
Detected mode: installed

I am trying to implement a google maps view in my cube, but I get the
following error when I try to use my view hotelmap :

XML Parsing Error: not well-formed
Line Number 144, Column 226:<div style="width: 400px; height: 400px;"
class="widget gmap" cubicweb:wdgtype="GMapWidget" cubicweb:loadtype="auto"
cubicweb:uselabel="True"> </div></div>

what I have in code is:
1.- In the file views.py
* a key value for googlemaps defined (necesary for googlemaps to work)
* an EntityView class named HotelMap wich the only thing that does is call
a  gmap-view.

2.- In the file entity.py
* from cubicweb.interfaces import IGeocodable
* a class Hotel which has two properties defined : latitude and longitude,
thoses are the attributes in a relation 'at_position' between the entities
Hotel and GeoPosition defined in the schema.py

I don't get any kind of error (at least I don't see any) in the debug
screen, its just the error when render data in the web browser (Iceweasel).

I will appreciate any kind of help or tip to solve my problem.

Merci Beaucoup
Carlos Balderas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090730/e98d0b02/attachment-0186.html>

More information about the Cubicweb mailing list