Serge Noiraud
2008-Dec-14 14:55 UTC
[Mapstraction] this.Q is not an object and swap function problem.
Hi, I''m integrating mapstraction + ( webkit or gtkmozembed ) in gramps-project ( Genealogy ). I updated mapstraction.js to version 198. Time to time I get the following messages. console message: http://maps.google.com/intl/en_ALL/mapfiles/138f/maps2.api/main.js @779: TypeError: Result of expression ''this.Q'' [null] is not an object. console message: file:///home/Genealogie/logiciels/opensource/gramps/src/mapstraction/mapstraction.js @2160: TypeError: Result of expression ''pt'' [null] is not an object. To obtain this : My prefered map is openstreetmap ( OSM ). I use the swap function to use googlemaps. I have this problem only with googlemaps. One another problem : When I swap from OSM to Googlemaps then I swap from Googlemaps to OSM it doesn''t works. The zoom bar has no more effect. The OSM map is not loaded again. I have no web site. All is based on file:// Thanks for this great api. Serge
Rob
2008-Dec-15 15:09 UTC
[Mapstraction] this.Q is not an object and swap function problem.
Hi Serge, this can happen when "this." is used to try to access a local variable. I fixed a similar issue in an update yesterday. let me know the function which is throwing the error and I''ll take a look. Cheers, Rob 2008/12/14 Serge Noiraud <Serge.Noiraud at free.fr>> Hi, > I''m integrating mapstraction + ( webkit or gtkmozembed ) in > gramps-project ( Genealogy ). > I updated mapstraction.js to version 198. > > Time to time I get the following messages. > > console message: > http://maps.google.com/intl/en_ALL/mapfiles/138f/maps2.api/main.js @779: > TypeError: Result of expression ''this.Q'' [null] is not an object. > console message: > file:///home/Genealogie/logiciels/opensource/gramps/src/mapstraction/mapstraction.js > @2160: TypeError: Result of expression ''pt'' [null] is not an object. > > To obtain this : > My prefered map is openstreetmap ( OSM ). > I use the swap function to use googlemaps. > > I have this problem only with googlemaps. > > One another problem : > When I swap from OSM to Googlemaps then I swap from Googlemaps to OSM it > doesn''t works. > The zoom bar has no more effect. The OSM map is not loaded again. > > I have no web site. All is based on file:// > > Thanks for this great api. > > Serge > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20081215/0305bb98/attachment.htm>