> On Feb 16, 7:29 am, Rick Donohoe <
crazyra...@aol.com> wrote:
> > Hey guys,
>
> > Page in question:
www.my-walk.com/addwalk.php
>
> > Im using the following code to put my markers into a string so they can be
> > easily stored in a databse:
>
> > for (i = 0; (i < markersArray.length); i++)
> > {
> > markerString += markersArray[i].getPosition().toString() + "," ;
> > }
>
> > With this code I usually get the following example of String:
>
> > (54.65495130292765, -3.354217564526365),(54.66627060518853,
> > -3.3509559983642556),(54.659121939101354,
> > -3.331043278637693),(54.65495130292765,
> > -3.341686284008787),(54.65922123474505,
> > -3.3641739243896462),(54.66279571629887, -3.3578224534423806),
>
> > Once I pull this String back out of MySql, how do I go about converting it
> > back to Markers?
>
> How do you add your markers to start with?
>
> addMarker(event.latLng);
>
> event.latLng is a google.maps.LatLng object, you need to change your
> string (which is a sequence of latitude and longitude values as
> strings) into pairs of numbers (latitude and longitude) and pass those
> into the google.maps.LatLng constructor.