W
|
wrjost 3/13/2009 |
Hi, Vince, |
J
|
johan2009 3/13/2009 |
Hi, Vince, well, I have done some experimenting with it - here is the result (Step two is the PHPR part). Greetings, Wilfried P.S.: Feel free to add your own test - it's still experimental... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=38985&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
|
![]() |
vin7102 author 3/13/2009 |
Hi, Vince, well, I have done some experimenting with it - here is the result (Step two is the PHPR part). Greetings, Wilfried P.S.: Feel free to add your own test - it's still experimental... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=38987&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
|
W
|
wrjost 3/13/2009 |
@Johan |
![]() |
vin7102 author 3/13/2009 |
@Johan I'll post what code I have tonight when I get back home from work. But one thing already: you have to apply for an API-key for your particular domain - please check this @Vince I didn't know that possibility existed. (Maybe Google API internal geocoding is a new feature, after all, I did my tests in February of last year.) But I wanted to have each team enter their own address so it was up to them to do the geocoding. - Keep me posted. Greetings to all from Germany, Wilfried
|
![]() |
vin7102 author 3/13/2009 |
Hey guys, |
![]() |
vin7102 author 3/17/2009 |
Update For anyone interested in using a google maps app with your PHPRunner app, Its rather pretty simple. I've been successful with adding it right to the bottom of a list page (just above the footer), and also just creating a new php page all together and linking the map to a button or a hyper link. Googles map location search is also pretty simple to implement. |
E
|
e61 3/17/2009 |
Update For anyone interested in using a google maps app with your PHPRunner app, Its rather pretty simple. I've been successful with adding it right to the bottom of a list page (just above the footer), and also just creating a new php page all together and linking the map to a button or a hyper link. Googles map location search is also pretty simple to implement. Just letting you guys know that the possibility is there for a neatly integrated map app for your PHPRunner projects. I can post some code help if anyone would like to try it!
|
![]() |
vin7102 author 3/17/2009 |
Yes pleace Vince. Adding a map at the bottom of View page is what I'm after. The map shall get its lat/lng from the current post in view... (Maybe some beer coming your way...)
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=YOUR KEY GOES HERE AND INCLUDE THE QUOTE AT THE END"></script> <script src="http://gmaps-utility-library.googlecode.com/svn/trunk/dragzoom/release/src/dragzoom.js" type="text/javascript"></script> <script type="text/javascript"> var map = null; var geocoder = null; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(41.274538, -81.330085), 13); // add controls... map.addControl(new GMapTypeControl()); map.addControl(new GScaleControl()); map.addControl(new GOverviewMapControl()); geocoder = new GClientGeocoder(); // add zoom control.... var boxStyleOpts = { opacity: .2, border: "2px solid yellow" }; var otherOpts = { buttonHTML: "<img src='zoom-control-inactive.png' />", buttonZoomingHTML: "<img src='zoom-control-active.png' />", buttonStartingStyle: {width: '17px', height: '17px'}, overlayRemoveTime: 0 }; map.addControl(new DragZoomControl(boxStyleOpts, otherOpts, {}), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(27,7))); // add large map control under the zoom control since the large map control has different sizes... map.addControl(new GLargeMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7,32))); map.setCenter(new GLatLng(41.274538, -81.330085), 13); // This is the initial coordinates that load when the page starts up } } function showAddress(address) { if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " not found"); } else { map.setCenter(point, 13); var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindowHtml(address); } } ); } } </script>
</div> <body onload="initialize()" onunload="GUnload()" style="font-family: Arial;border: 0 none;"> <form action="#" onsubmit="showAddress(this.address.value); return false"> <p> <input type="text" size="60" name="address" value="123 any street, Anytown, Ohio" /> //This is the default value for the search text box <input type="submit" value="Show!" /> //This is the search button title </p> <center><div id="map_canvas" style= " border-width: ; height: 300px"></div></center> // These are the map size attributes, I have it set to full width and 300px tall.. You can change it to whatever you like </form> </body>
|
E
|
e61 3/17/2009 |
This is great Vince, almost there... ;-) |
E
|
e61 3/22/2009 |
This is great Vince, almost there... ;-)
|
![]() |
vin7102 author 3/23/2009 |
E61, |
T
|
tinem 4/1/2009 |
I'm also very interested in this subject and have made my info to your testmap but can't see where the map is to check if my marker? |
W
|
wrjost 4/1/2009 |
I'm also very interested in this subject and have made my info to your testmap but can't see where the map is to check if my marker?
|