Thanks for the response, I appreciate it.  So how could I go about
sharing variables and arrays between the Google Map JavaScript and my C
++ code?  Thanks.

On Aug 13, 12:09 am, Vitali Lovich <[email protected]> wrote:
> No v8 is not what you want. You want to just launch firefox with that
> webpage.
>
> On Thu, Aug 12, 2010 at 10:45 AM, Sam Petrocelli
> <[email protected]>wrote:
>
> > I'll try to make this short.  I have built an autonomous vehicle at my
> > University and would like to incorporate Google Maps into the source.
> > Java was the first language I learned, I switched to C++ for this
> > project.  The whole thing is in C++, Ubuntu 9.10 OS.  Their are
> > multiple processes and some processes are multi-threaded, all linked
> > using shared memory.  The Path Planner has the list of waypoints
> > (longitude/latitude positions) that the vehicle follows as well as all
> > vehicle orientation and position information.  So I tinkered with the
> > Google Maps API and got a webpage to come up in firefox and I can
> > click and add markers, etc.  What I would like to happen is my C++
> > code launch the Google Map script to open the firefox page.  Then have
> > the array of waypoints in my c++ code loaded onto this map.  Add also
> > have the ability to add or move waypoints on the google map and these
> > points would be updated in the c++ code.  I attempted at loading this
> > script into a string and running it in the code and got a list of
> > errors.  Being that yesterday was my first "dive" into JavaScript, I
> > honestly have very little idea how to do this.  Is v8 even the right
> > approach for me?  Any advice or code would be much appreciated.
> > Thanks.
>
> > -Sam
>
> > Here is the googlemap script:
>
> > <!DOCTYPE html>
> > <html>
> > <head>
> > <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
> > <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
> > <style type="text/css">
> >  html { height: 100% }
> >  body { height: 100%; margin: 0px; padding: 0px }
> >  #map_canvas { height: 100% }
> > </style>
> > <title>ALV - Google Map Interface</title>
> > <script type="text/javascript"
> >    src="http://maps.google.com/maps/api/js?sensor=false";></script>
> > <script type="text/javascript">
> > var map;
> > function initialize() {
> >  var myLatlng = new google.maps.LatLng(41.0074848, -73.9814085);
> >  var myOptions = { zoom: 15,
> >                    center: myLatlng,
> >                    mapTypeId: google.maps.MapTypeId.ROADMAP
> >                  }
> >  map = new google.maps.Map(document.getElementById("map_canvas"),
> > myOptions);
> >  //map.disableDoubleClickZoom();
> >  //map.enableScrollWheelZoom();
> >  //map.enableGoogleBar();
>
> >  google.maps.event.addListener(map, 'click', function(event) {
> >    placeMarker(event.latLng);
> >  });
> > }
>
> > function placeMarker(location) {
> >  var clickedLocation = new google.maps.LatLng(location);
> >  var marker = new google.maps.Marker({
> >      position: location,
> >      map: map
> >  });
>
> >  //map.setCenter(location);
> > }
>
> > </script>
> > </head>
> > <body onload="initialize()">
> >  <div id="map_canvas"></div>
>
> > </body>
> > </html>
>
> > --
> > v8-users mailing list
> > [email protected]
> >http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to