Workflow Soluiton

 View Only
Expand all | Collapse all

Google Maps Integration

  • 1.  Google Maps Integration

    Posted Mar 08, 2012 04:06 PM

    Just curious if anyone has done any integration with Google Maps? I'm looking at trying to do something that retrieves an address from our database and display where that address is in Google Maps using an iFrame or something similar or if there are any Google web services that may be available. Any help or direction would be greatly appreciated.



  • 2.  RE: Google Maps Integration

    Posted Mar 08, 2012 04:54 PM

    The issue I has was the proxy server, I have to enter some config in the Web.config to make it work:

    <system.net>
    <defaultProxy enabled="true">
    <proxy autoDetect="True"/>
    </defaultProxy>
    </system.net>

    In SP2, the map is displayed in an iFrame, all you need to do is feed it the address on a single line.

    Google has lots of webservices, here info on the one related to the Google Maps API: http://code.google.com/apis/maps/documentation/webservices/

    rob



  • 3.  RE: Google Maps Integration

    Posted Mar 08, 2012 06:10 PM

    Are there more Google Map components in SP2? There are 3 in SP1 but they don't do what I need unless you're referring to building the url to pass the IFrame. I think what I have to do is retrive the address from the database, get the latitude and longitude and build the url string for the IFrame but I'm not quite sure how to do the latitude and longitude part.



  • 4.  RE: Google Maps Integration
    Best Answer

    Posted Mar 08, 2012 09:25 PM

    SP2 has 4 I believe, Terrain View, Google Map Address, Street View and Directions. Each one takes just an address (or two for directions) and shows the results in it's own sizable iFrame. Once it loads you can even scroll around in it like you can on the the native Google Maps page.

    The ond one was much more cumbersome, the ones in SP2 are much easier to use.

     

    rob



  • 5.  RE: Google Maps Integration

    Posted Mar 08, 2012 10:16 PM

    Thanks Rob, it sounds like those are exactly the components that I'm looking for. I'll see if it's possible for Symantec to send me the libraries so I can use them in SP1. Does any Symantec employee know if this is even possible as it appears to be in the LogicBase.Components.Default.dll so I think I would have to overwrite the file.



  • 6.  RE: Google Maps Integration

    Posted Mar 09, 2012 07:06 AM

    There are Google Map components in the LB.Components.Default as well as the FormBuilder library.

    Either way, I'd be extremely careful in just overwriting the SP1 lib of this with the SP2 lib (i.e. BACK UP FIRST). The SP2 lib may have Core changes that other comps need to function.



  • 7.  RE: Google Maps Integration

    Posted Mar 09, 2012 08:09 AM

    Thanks reecardo, I'll back the original files first before I try importing the new ones. Too bad these components weren't in their own dll as it would have made it much easier.



  • 8.  RE: Google Maps Integration

    Posted Mar 09, 2012 01:28 PM

    Do you know if I have to copy over the pdb files as well when I overwrite the files or will the dlls be sufficient?



  • 9.  RE: Google Maps Integration

    Posted Mar 09, 2012 02:35 PM

    The .pdb files are debug files that inadvertently got included in the build. They can be ignored.



  • 10.  RE: Google Maps Integration

    Posted Mar 09, 2012 04:08 PM

    I tried replacing the files but I just got an error message saying the buffer can't be 0 or something similar. Guess you need to properly upgrade to SP2.



  • 11.  RE: Google Maps Integration

    Posted Mar 15, 2012 04:09 PM

    The Google Maps components are useful and provide a fairly basic integration. I was wondering if any one has directly used the Google API's for things like showing multiple locations, Google Places and Google Places Autocomplete and so forth? I've tried connecting and using the API's but haven't been successful thus far and am looking for an example of how to do so.

    Thanks,

    Aryanos