Force Google Chrome to use computer's geolocation - google-chrome

I'm trying to get the location of an HP EliteBook. (in google maps and just clicking on "your position").
With Microsoft Edge I get it very precisely.
With Firefox and Chrome I have an accuracy of about 30 meters which is far too much. I managed to fix it with Firefox by changing configuration in about:config and setting geo.provider.ms-windows-location to true.
Is there any equivalent option in Chrome, I can't find anything.
Thank you.

Related

Google Maps API - Geolocation not working in Firefox

Recently I noticed that geolocation doesn't work on Firefox when using Google Maps API. After googleing for a while, I tried showing my current location (from a laptop, not from mobile) on Google Maps, but it didn't work there as well.
Here's what I have in my geo.wifi.uri in the about:config Firefox's tab:
https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
Can anyone help me?
I faced the same problem, and from what I found, we can't use Google's Geolocation unless we get our own API key. If you don't mind, you can use Mozilla's Geolocation, but the results will be different from Google's.
You can change https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY% to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%
Source

Google maps API doesn't work in safari

hello im hosting Google maps API on my localhost for now, and it appears fine in Chrome and the mobile phone version. (both safari and chrome iPhone versions).
My problem is Google maps doesn't show when it comes to my Mac version of Safari. the Grey(background) shows and the cursors change to the Google maps cursor, but the map and content doesn't display. what can be the problem?
Here is a link to the map. as you can see the map displays in Chrome but not in safari.(at least not for me).
http://jsbin.com/cahicomame/1/edit?html,output
there is no guarantee that navigator.geolocation.getCurrentPosition will return a result. The user may deny the permission or the geolocation-service may not be able to locate the user.
You better initialize the map with a default-center (center is required to display the map).
I find the solution after 1 hours , it's because my website (developpement) was in http and not https :) Safari will ask your localisation.

Geolocation/Maps API Directions not displaying on map

In Safari I have an issue with the Google Maps API directions service. I use HTML5 Geolocation to display directions to a location on page load.
Here is a page that uses this.
http://northwestmarkets.com/all-stores/arlington-food-pavilion
What about Safari could cause this error. I works in IE, Chrome and Firefox
Open System Preferences / Security and select the General tab.
Click the gold padlock icon bottom left in the pane to make any necessary changes. You will be prompted for your admin password.
If necessary, make sure: Disable Location Services is not selected. Click: Reset Warnings.
support: http://support.apple.com/kb/HT4239
also checkout this W3C geolocation API not working on Safari 5, looks like in safari 5 geolocation only works with wifi

Google Streetview images show as grey screen in Internet Explorer?

I have developed a javascript API application that retrieves Google Streetview images based on where a user clicks on an interactive map.
For some reason in the past couple of days there have been intermittent issues with this process as a grey screen is just returned and it isn't until you start to pan around that an image is returned.
The same thing happens in Google's own API example here:-
http://code.google.com/apis/maps/documentation/javascript/examples/streetview-service.html
After the initial click, subsequent clicks just return a grey screen (this is in Internet Explorer 7, it appears to work in Google Chrome and Firefox).
This didn't used to be a problem - has anyone else experienced this issue when using Internet Explorer (either version 7 or another)?
Thanks
I think this is a bug in the 3.8 nightly api build.
Specify a specific api build.
http://maps.googleapis.com/maps/api/js?v=3.7&sensor=true_or_false
Google documentation reference

Trying to diagnose a Google Maps/Safari Issue

Our site is able to be accessed through FF/IE/Chrome, etc. however when a user opens the site in Safari, it doesn't load the google maps box. It stays the grey loading color.
We use Google Maps v3 and geolocation to set the default position of the map, and if they deny location or something, we have a fallback to an IP service to center it somewhat close to them. Works everywhere but on Safari (multiple versions). It just hangs.
Any ideas at how I can diagnose this? I'm running Windows 7/XP so it's tough to do.
Thanks!
You can use the firebug lite version
and also have a try with the built-in developer tools.
This thread Debugging javascript in Safari for Windows says more about this.