Search code examples
google-maps-sdk-ios

Add image in GMSPolygon


Is there a way I can add an image to GMSPolygon?

I can add an image with GMSGroundOverlay but it's not perfect rectangle that I needed.

Please check attached image, In this image, there is a box with black outline is a polygon and I need to add building/floor image in that box.

You can also see GMSGroundOverlay in attached image with white background. GMSGroundOverlay is basically a large rectangle that contains all point added.

Screenshot with polygon & ground overlay

Thanks,


Solution

  • This can be done using the Mapbox SDK.

    https://www.mapbox.com/ios-sdk/examples/image-source/

    enter image description here