Thanks to Dr.Molle cooments on my previous post, now, I know that we can filter displaying the addressControl. But what if I want to ONLY remove or update a part of the box.For example I want to keep the address line but remove the "Address Is Approximate" message since I am sure that I am in 100% correct address.Can you lease help me to figure this one out too?
Thanks
Don't try to modify the existing text. Add your own div or custom control containing only the address.
Update to address additional questions in comment:
Do I have to hard code the address in new custom div?
No.
Is there a way to grab address from addresscontrol?
I wouldn't think so. Where do you get the position of the panorama from? If it is an address, use that. If it is a position, you can get an approximate address by reverse geocoding the position (which is what I suspect Google is doing and why it says "address is approximate") Please post a complete example of your code (or at least enough of it to reproduce the behavior you are trying to change) if you want help with it.
Can you please help me to find a sample/ example of adding custom div containing address
on the top of map?
See the documentation on Custom Controls
I was having the same issue as you. The 'address control' on my embedded street view map was not appearing the same as it was in the Google Docs demo. In their demo the 'address control' had the address, a pin icon, and a 'View on Google Maps' link.
On my embedded map, the 'address control' only had the address and text below reading 'Address is Approximate'. At first I thought it was my lat/lng causing the issue but I tested my embed using the same values in the Google Docs demo and still had the issue.
What ended up fixing this issue for me was adding the signed_in=true parameter to my Google API script like so:
<script src="https://maps.googleapis.com/maps/api/js?signed_in=true&callback=initGoogleMaps" async defer></script>
Hopefully this will fix the issue for you!
Related
Is it possible to link to a specific address on https://wego.here.com as you can with Google maps like this: https://www.google.com/maps?q=221b+Baker+Street%2C+London ?
You can do the same by using Places and locating your place and getting the shortened here link to it. Please see the image attached. You can also add locations to your collection and later get the links to them.
Edit (from comment):
You can do it programmatically by appending your search term like this
https://wego.here.com/search/221b-Baker-Street%2C-London
I'm using the following link to open directions from one point to another on Google Maps:
https://www.google.com/maps/?saddr=[one-point]&daddr=[another]
I would like to open the bicycling directly. Which link should I use or which parameter should I add? Adding &mode=bicycling does not seem to work.
Perhaps this has changed since you first asked, but I just followed your link, clicked the Cycling Icon, and then copied the resulting URL, which seems to do what you're after.
Comparing the two URLs, the only difference I see is the addition of !3e1 on the end of a standard "directions" URL.
I have been following this example here: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform which shows how to have a field that implements the auto complete dropdown with Google maps, and then when the user selects an address to fill out the individual form elements (Like street name etc..).
The address field will already be filled out in my case though so I just need to fill out the form elements when the page loads using this address.
I have tried
$(document).ready(function(){
fillInAddress();
});
To force it on start but the form elements stay empty. Does any one have any ideas?
Thanks in advance!
I think doing only fillInAddress(); might not be enough, you have to do something with the autocomplete too. However, since it is not open source or mentioned anywhere in the docs, there seems to be no way to do that.
One work around would be to use the Places web service API to get the same info. For more information about that please refer to this.
On one of my sites I have a google maps pin, address and phone number included in my search result snippet. The problem is that it's the correct address but the phone number is wrong and I can't understand where this come from and how to change it or remove the maps snippet from the result. What I have read is that Google can use information from all over the web to produce a great snippet for my site but in my case it's not so great. Is it possible to change it in any way?
The correct answer to this question is that you can modify this information by changing the Google places information or suggest the change to Google.
The Google places (google.maps.places.Autocomplete) class that is available to use by linking an input box into a drop down list to display addresses from is causing me trouble when searching for establishments
I can generate this issue on the Google example page as well at:
google places example
I use this feature in my code much like the example above by including a reference to the places API:
<script src="//maps.googleapis.com/maps/api/js?sensor=false&libraries=places"
type="text/javascript"></script>
The problem seems to be mainly around [Establishments]. But not just any establishments. It only occurs on some now and again.
The one I have particular issue with at the moment is when I type in the Name United campervan rentals, and select the resulting drop-down. The address that is returned in the autocomplete.getPlace() command is not address I would expect. The address returned is the middle of the bounds set when creating the autocomplete object.
However as per maps.google.co.nz, I an expecting an address of 3 Kingsford Smith Place.
I've tried it in a number of browsers including IE 8, 9, Chrome, FF 3.6. All produce the same result. I've also tried at different times of the day and the same result.
I had posted this on the Google API forum but read an article that they are moving their Q&A to SO, so as long as I add the appropriate tags someone may be able to offer some sort of insight. I'm really hoping this is the case. Cheers.
For anyone who reads this I logged an issue on the gmaps API issue site and after a few days the issue was cleared as fixed. This also resolved the question.