[Cubicweb] google maps

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


Salut,

Using:
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
Location:
http://debian:8080/hotel/4160?vid=hotelmap&__message=welcome%20admin%20%21
Line Number 144, Column 226:<div style="width: 400px; height: 400px;"
class="widget gmap" cubicweb:wdgtype="GMapWidget" cubicweb:loadtype="auto"
cubicweb:loadurl="
http://debian:8080/hotel/4160?rql=Any%20X%20WHERE%20X%20is%20Hotel%2C%20X%20eid%204160&vid=geocoding-json"
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