getposition, custom panorama and PHP

62 views
Skip to first unread message

Charles

unread,
Nov 15, 2011, 11:23:01 AM11/15/11
to google-map...@googlegroups.com
So been scratching my head for a while on this one and seem to have identified the problem but need a solution.

What I've created so far is a database of locations and variable values needed for the building in custom panoramas in the getCustomPanorama function & the createCutomLinks function for Streetview.

What I need to do is use the getposition function to check the current displayed streetview panormas lat long to then check that against my mysql database to see if there is a listing for custom variables at that location. if there is then set those custom variables into the code and away we go.

Problem is it doesn't work. this is I think due to the fact that the current location is sent but then when needing to pass the variables onto the custom panorama functions the streetview display data has already been processed without these variables being present as the getlocation script in php used to check if it exists happens after the data is returned.

therefore trying to think of work arounds to intercept returned data from google test it using the php script to see if location exists resend that data to google to then output the streetview I require.

Can get it all to work no problem when having variables set for 1 or 2 custom panos already set in my javascipt file which is fine when working with say upto 10 custom panoramas but I need the ability to dynamically add in hundreds without rewritting the javascript every time or including hundreds of .js scripts i9n the headers. hence the php and mysql route.

Any help would be greatly aprreciated.
Reply all
Reply to author
Forward
0 new messages