-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey, I'm trying to work out how to use this to get the distance from the successful directions:
http://code.google.com/apis/maps/documentation/v3/reference.html#DirectionsDistance
This is the code I have so far:
var googleMaps = {
// HTML Nodes
fromInput: google_maps_from,
toInput: google_maps_to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
On my site here, the SteetView control, aka "Pegman", works great under Firefox. Under IE (7 in this case, but tested on 8 as well - same result) it breaks the display of the pegman control.
Here's my map code:
var directionsDisplay;
var directionsService = new google.maps.DirectionsService();
var…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I'd like to know how to put multiple markers for Google Maps using Javascript API v3.
I tried the solution posted here: http://stackoverflow.com/questions/1621991/multiple-markers-in-googe-maps-api-v3-that-link-to-different-pages-when-clicked
but it does not work for me for some reason.
var…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a map with multiple markers, which I populate via an array. Each marker is clickable and should take the user to a different url per marker.
The problem is that all the markers, while displaying the correct title, all use the url of the last entry in the array.
Here is my code:
var myOptions…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hello friends,
I have implemented one Flex application in which I want to display 3D google map.In which I am getting the error the NUll object reference during map display.
Here is my code:-
import com.google.maps.controls.MapTypeControl;
import adobe.utils.XMLUI;
import mx.rpc…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The iPhone supports geolocation in mobile Safari via the following call:
navigator.geolocation.getCurrentPosition(
function(pos){
var lat = pos.coords.latitude;
var long = pos.coords.longitude;
},
function(){
/* Handler if location could not be found */
}
);
I'd like to build…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Here's my situation; I've built a very simple web app that looks up a users location and plots it on a Google map.
Here's my code: http://pastebin.com/d3a185efd
When I test it, my location is detected as being = 500 meters from where I actually stand.
BUT
When I open up Google Maps or Gowalla…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When trying to get geolocation on iPhone the first time - I declined.
Every other time I want to get the location (before another reload of the page) I get no response (no error and no success):
navigator.geolocation.getCurrentPosition(
function (location) {
ig_location.lat = location…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am looking for a good geolocation api to use from bash. I want this call to return at the very minimum the name of the city I am in, and the state.
I imagine that there must be some site I can curl, or some scripting language that has a package that works. The machine does not have a GPS, but it…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I just tested Geolocation on Firefox 3.6 and iPhone Safari (os 3.1.3), the result is interesting, firefox is more accurate than safari. any one got idea how to make iPhone Safari result more accurate.
this is the code for testing:
navigator.geolocation.getCurrentPosition(handler, {enableHighAccuracy:…
>>> More