Connecting presto to google map

gomashan07
User offline. Last seen 9 weeks 4 days ago. Offline
Joined: 01/27/2011
Points: 251

Dear all ,

              I am  using the  cloud version of presto. Is it possible to  connect presto  to  google map  in  thge cloud version. I  have the google  key  with  me . And i also  read a presto  link ,containing the  javascript  code  connecting to google   map. My issue is  what should  i  do  for connecting . Please help  me in this issue. I am  not sure  how  to  proceed from here  on.

 

Thanks,

gomshan

0
Your rating: None
smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

Have you already tried the built-in Google Map view? Seems like you've asked questions earlier and your data didn't have latitude/longitude so that this was not an option. If you haven't tried using this built-in view, that would be my first suggestion as it by far the easiest answer.

Assuming it doesn't work for you, you need to create a custom App in your local Presto development environment. This assumes you have at least a starter edition on your box. See http://www.jackbe.com/prestodocs/v3.0/apps-dev/editor-intro.html for the basics of downloading a template to your dev environment.

You need to add the Google Maps library to your custom App specification (app.xml) with the <require> element and a src attribute. See http://www.jackbe.com/prestodocs/v3.0/apps-dev/requiresRef.html for the basic syntax.

You also need to connect to the Mashup Server (your local dev environment for testing which becomes Presto on the cloud once you add the custom App there) and invoke your mashable/mashup. See http://www.jackbe.com/prestodocs/v3.0/apps-dev/createSimpleGrid.html for a simple example of this. Specifically the steps on creating the App Constructor and Invoking the Mashable are similar.

Then use the response with the Google Map API to render the map. Sorry, but this part I can't help you with. Hopefully others on the forum can.

 

Sara, technical writer/jackbe