issue with geometry.js

48 views
Skip to first unread message

jude mwenda

unread,
Dec 18, 2012, 10:15:18 AM12/18/12
to car...@googlegroups.com
Hi,
I am having the issue where my geometry.js?body=1 fails to load. It had been loading ealier but stopped loading. This has resulted also into having a situation where the tiles do not load because the sql is marked as undefined. Any pointers to solving this?



--
Regards,

Jude Mwenda
Skype id: jmwenda
Twitter: www.twitter.com/judemwenda
Web: www.africangeogeek.com
   
"Was ist mein Leben, wenn ich nicht mehr nützlich für andere."
Johann Wolfgang von Goethe

Javier Santana

unread,
Dec 21, 2012, 3:45:17 AM12/21/12
to car...@googlegroups.com
Could you give us more context? are you using your custom cartodb install?


--
 
 
 



--
www.cartodb.com
Map, analyze and build applications with your data

jude mwenda

unread,
Dec 21, 2012, 5:27:14 AM12/21/12
to car...@googlegroups.com
Yea. I am using a custom cartodb install. Any pointers? Seems to only happen to certain browsers.


--
 
 
 

Javier Santana

unread,
Dec 21, 2012, 5:30:19 AM12/21/12
to car...@googlegroups.com
Could you please write the steps to reproduce it? the data you imported, what actions you did, where you get that error?

jude mwenda

unread,
Dec 21, 2012, 5:52:44 AM12/21/12
to car...@googlegroups.com
So i have three browsers. One is chrome another is chromium and another firefox. This seems to be a browser issue. I shared my embed map using url to some of my friends. This results in different views. The tiles do not load for certain browsers an in those cases the javascript console returns.
  1. Uncaught ReferenceError: GeometryView is not defined /assets/cdb/src/geo/leaflet/leaflet.geometry.js?body=1:138
  1. Uncaught ReferenceError: GeometryView is not defined /assets/cdb/src/geo/gmaps/gmaps.geometry.js?body=1:61
  1. Uncaught TypeError: undefined is not a function /assets/cdb/src/geo/map.js?body=1:211


This results is common in chrome. When i click on the http://localhost/assets/cdb/src/geo/geometry.js?body=1, the keep getting the webpage is not available. Though on firefox and chromium it works well. the other buggy functionality is when one shares with facebook the embed map, then head to facebook and click on the posted link, the tiles fail to load.

Javier Santana

unread,
Dec 21, 2012, 5:58:49 AM12/21/12
to car...@googlegroups.com
what url are you sharing? the embed map uses cartodb.js stored in our cdn so should not be loading any javascript from the rails app

jude mwenda

unread,
Dec 21, 2012, 6:03:52 AM12/21/12
to car...@googlegroups.com
Yea, so i am using the development version. Strangely when i load the cartodb.js stored in your cdn, i still get the same error but now on all browsers. The tiles fail to load on all browsers. 

Javier Santana

unread,
Dec 21, 2012, 6:07:04 AM12/21/12
to car...@googlegroups.com
i can't reproduce it probably is something related to development configuration.

what repository and branch are you using? did you fetch/update the submodules?

jude mwenda

unread,
Dec 21, 2012, 6:16:45 AM12/21/12
to car...@googlegroups.com

Javier Santana

unread,
Dec 21, 2012, 6:29:21 AM12/21/12
to car...@googlegroups.com
yeah, the problem is the url, for some reason you the param sql is not well formated, should be something like

sql=select * from table
or
sql=

looks like different browsers get that param in different way

try this url



have you edited manually the url?

Javier Santana

unread,
Dec 21, 2012, 6:34:06 AM12/21/12
to car...@googlegroups.com

jude mwenda

unread,
Dec 21, 2012, 9:53:03 AM12/21/12
to car...@googlegroups.com
Sadly despite making the change and refreshing still getting the same error. Please help, thanks

Javier Santana

unread,
Dec 21, 2012, 10:18:32 AM12/21/12
to car...@googlegroups.com

jude mwenda

unread,
Dec 21, 2012, 10:19:40 AM12/21/12
to car...@googlegroups.com
For chrome, i get the following on the javascript console,

  1. Uncaught ReferenceError: GeometryView is not defined leaflet.geometry.js:138
  1. Uncaught ReferenceError: GeometryView is not defined gmaps.geometry.js:61
  1. Uncaught TypeError: undefined is not a function map.js:211

Javier de la Torre

unread,
Dec 21, 2012, 10:21:03 AM12/21/12
to car...@googlegroups.com
It works for me too.

--
 
 
 

Reply all
Reply to author
Forward
0 new messages