- Where Developers Learn, Share, & Build Careers
I have a start and end card stored on client devices with HTML5 local storage. To use Google Maps driving list (not a map .. Directions in text formats) The application is in Jazzery Mobile.
& lt; Div data-role = "content" & gt; & Lt; Div data-role = "content" id = "list" & gt; & Lt; Ul data-roll = "listview" data-inset = "true" data-filter = "true" id = "myList" & gt; Can I add my list of inventory to id myList?
Function Pass Direction (geo) {var directionsService = new google.maps.DirectionsService (); Var Directions = New google.maps.DirectionsRenderer (); DirectionsDisplay.setPanel (document.getElementById ("MyList")); Var storedlati = localStorage.getItem ("text1"); Var storedlongi = localStorage.getItem ("text"); Var destilati = localStorage.getItem ("text2"); Var destilongi = localStorage.getItem ("text3"); Var Request = {Origin: google.maps.LatLng (archived, archived), destination: google.maps.LatLng (destilati, destilongi), travel mode: google.maps.TravelMode.DRIVING}; DirectionsService.route (Request, Function (Results, Status) {If (Status == google.maps.DirectionsStatus.OK) {directionsDisplay.setDirections (Results);}}); } "
In that case, set the directions panel bus on the directions, map no. ; And do not create maps. Like this
Comments
Post a Comment