At https://gearbottle.com/ I have a problem when the map loads my geolocation (turn on the geolocation display), and then download all the results (the whole world). I need this to stay on geolocation, and not jump on the whole map.
After checking the console, I see "Google Maps API Warning: SensorNotRequired // developers.google.com / maps / documentation / javascript / error-messages # sensor-not-required ", and then the Object drop-down menu , etc. After digging up a bit, I came across the following scripts in which there are still sensors:
if(ddp('google_places_api')) { if(ddp('google_places_api') != '') { wp_register_script('google_maps_api', 'https://maps.googleapis.com/maps/api/js?key='.ddp('google_places_api').'&sensor=false&libraries=places'); } }
else { wp_register_script('google_maps_api', 'https://maps.googleapis.com/maps/api/js?'); }
}
Run codeHide result $google_places_url = 'https://maps.googleapis.com/maps/api/place/autocomplete/xml?key='.ddp('google_places_api').'&sensor=false&input='.$fields[$field->post_name].'&types=(regions)';
Run codeHide result$reference_url = 'https://maps.googleapis.com/maps/api/place/details/xml?key='.ddp('google_places_api').'&sensor=false&reference='.$place_reference;
Run codeHide result.... , "Sensor" script, , , , .
, ( ) - , .