Google Directions Only, In Pop-up Window
Got my google maps stuff up and running driving direction etc was quite pleased with it given I am a first time web developer. Just one problem, when I showed it to the client (bo
Solution 1:
Open a window and write the instructions into the document:
win=window.open('about:blank','instructions','width=300,height=200');
doc=win.document;
doc.open();
doc.write('<div id="instructions">instructions</div>');
doc.close();
//reference to the div inside the popup//->doc.getElementById('instructions')
Solution 2:
Just to let people know I've managed to get my directions in a separate "window". I had to use jquery to show and hide the div i was using to display the directions and then make it draggable again with jquery. Works well now I can view each of the waypoints on the map and show alternate roots, which I couldn't manage using just a new pop up window window.
Post a Comment for "Google Directions Only, In Pop-up Window"