Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSMAdvancedMarker] customization does not working #28

Open
francocores opened this issue Jul 1, 2024 · 2 comments
Open

[GSMAdvancedMarker] customization does not working #28

francocores opened this issue Jul 1, 2024 · 2 comments
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@francocores
Copy link

francocores commented Jul 1, 2024

Environment details

  1. GoogleMaps
  2. iOS 14 and 15
  3. v8.0.0 between 8.4.0

Steps to reproduce

  1. Create new swift project
  2. Add iOS SDK (https://developers.google.com/maps/documentation/ios-sdk)
  3. Create MapID or use demo: GMSMapID.demoMapID
  4. init map
  5. Add any GSMAdvancedMarker and customize: https://developers.google.com/maps/documentation/ios-sdk/advanced-markers/customization
  6. You see normal pin design without any customization

Code example

let options = GMSMapViewOptions()
let mapID = GMSMapID.demoMapID
options.mapID = mapID
let mapView = GMSMapView.init(options: options)
...
let newMarker = GMSAdvancedMarker(position: position)

let options = GMSPinImageOptions()
options.backgroundColor = .blue
let pinImage = GMSPinImage(options: options)

newMarker.icon = pinImage
newMarker.map = mapView

I have everything configured, billing account, MapID...

@francocores francocores added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 1, 2024
@francocores
Copy link
Author

since I have not received a response from Google team, at the moment a temporary solution is to use an SVG icon added to the assets with the colors do you want....

@francocores
Copy link
Author

I'm testing on version 9.1.1, same result: no advanced markers showed

Probably we need to use other technology where this work property: Mapbox, ArcGIS or TomTom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant