Assigned
Status Update
Comments
ra...@google.com <ra...@google.com> #2
For us to help you further, please provide us with a self contained sample (
ra...@google.com <ra...@google.com> #3
Upon further evaluation, this is a valid feature request. We have already created an internal request regarding this one.
Please star this issue to get updates and leave comments for additional information. Kindly note that starring the issue also provides our product team with valuable feedback on the importance of the issue to our customers.
Description
#REMINDER: Please do not disclose any possible PII such as: email address, IP, contact number, any part of name, project numbers and billing accounts as these information may violate security and privacy. Comments or attachments that include PII will be removed and restricted from public viewing.
Furthermore, please refrain from replying to a comment as this will make your email address visible. Instead, you may use the Issue Tracker’s comment feature for your replies.
It is OK to share your API Project ID, but _not_ API keys or client ID credentials.
To learn more about personal data, visit
===========================================================================================
What would you like to see us add to this API?What would you like to see us add to this API?
What part of the API (please specify, a library, or the code module)?
Please describe how the feature should work:
Please give a use case or explain where and why you need this feature:
I have a website which displays maps using the Google Maps API, and users can select which map to display using a control. However some of the map tiles used are from OpenStreetMap, and for these I'd like to set the correct attribution in the bottom right hand corner of the map.
When a user selects to display an ordinary Google map showing part of Spain then it shows "Map Data ©2023 Inst. Geogr. Nacional" and when a Satellite map it shows "Map Data ©2023 Inst. Geogr. Nacional Imagery ©2023 TerraMetrics". However, when an OpenStreetMap map is shown the text is simply "Image may be subject to copyright". I'd like to change this to the proper OSM attribution eg "© OpenStreetMap contributors".
I think that this could work by extending the ImageMapType class, by either having an additional property "attribution" or callback getAttribution(). It would be important to be able to include a link, so the attribution should allow HTML rather than just a string. I assume that the Google Maps functionality would use this attribution only if it didn't already know which attribution to use - ie it would use this only if it was going to output "Image may be subject to copyright". In that case it could eg call getAttribution() and use the snippet of html returned instead.