Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Google Streetview Images in infowindow

$
0
0

I have followed the instructions on this blog post on adding streetview images to the infowindow:
http://blog.cartodb.com/a-picture-is-worth-1-000-attributes-infowindows-with/

I can do it without a problem and the images work well, however while the SQL query is running I cannot add new points to my map while in the CartoDB editor.

Is there a way around this. I would like to show the images but also be able to add points.

I am using the SQL query below. Would the solution be to change it to a query which actually writes the data into my table permanently for every new point I create, rather than just querying it? If so what would that script look like?

(Sorry about my limited SQL knowledge)

SELECT *, 'http://maps.googleapis.com/maps/api/streetview?size=300x190&location='||
ST_Y((the_geom))||','||ST_X((the_geom))||'&sensor=false&fov=110' as image
FROM table_2012_entire_tree_down_complaints_sandy

If this is possible then would a Google reverse geocode also be possible, utilising a similar script?


Viewing all articles
Browse latest Browse all 1138

Trending Articles