Fixed
Status Update
Comments
ap...@gmail.com <ap...@gmail.com> #2
br...@google.com <br...@google.com> #3
Can you please supply a short reproduction case? I can't quite see how to reproduce the issue you are seeing, and I have to be able to reproduce it to get engineering to fix it. Thanks!
ap...@gmail.com <ap...@gmail.com> #4
Sure,
1. A simple viewController is shown to the user
2. The user selects an image from the device gallery
2. The South West and North East coordinate bounds are indicated.
3. The rotation is also set
4. The code below is used to show the selected image on the map with rotation.
override func showImageOnMap() {
var southWest = CLLocationCoordinate2DMake(40.712216,-74.22655);
var northEast = CLLocationCoordinate2DMake(40.773941,-74.12544);
var overlayBounds = GMSCoordinateBounds(coordinate: southWest, coordinate: northEast)
// Image from Gallery. The image to be shown is taken from the device gallery
// This short example does not show the procedure to take the image from the
// gallery
var icon = UIImageFromGallery()
var overlay = GMSGroundOverlay(bounds: overlayBounds, icon: icon)
mapView.clear()
overlay.bearing = 47.554
overlay.map = mapView
}
The result is shown in Screenshot_iOS.png.
Let me also indicate that I follow the same procedure in a Android device (using Android API) and the result is the expected one as it is shown in the image attached (Screenshot_Android.png). The image is correctly rotated keeping the relation aspect. Comparing the two screenshots, you can see the effect I am indicating in this issue.
Let me know if you require more information to reproduce the issue
1. A simple viewController is shown to the user
2. The user selects an image from the device gallery
2. The South West and North East coordinate bounds are indicated.
3. The rotation is also set
4. The code below is used to show the selected image on the map with rotation.
override func showImageOnMap() {
var southWest = CLLocationCoordinate2DMake(40.712216,-74.22655);
var northEast = CLLocationCoordinate2DMake(40.773941,-74.12544);
var overlayBounds = GMSCoordinateBounds(coordinate: southWest, coordinate: northEast)
// Image from Gallery. The image to be shown is taken from the device gallery
// This short example does not show the procedure to take the image from the
// gallery
var icon = UIImageFromGallery()
var overlay = GMSGroundOverlay(bounds: overlayBounds, icon: icon)
mapView.clear()
overlay.bearing = 47.554
overlay.map = mapView
}
The result is shown in Screenshot_iOS.png.
Let me also indicate that I follow the same procedure in a Android device (using Android API) and the result is the expected one as it is shown in the image attached (Screenshot_Android.png). The image is correctly rotated keeping the relation aspect. Comparing the two screenshots, you can see the effect I am indicating in this issue.
Let me know if you require more information to reproduce the issue
br...@google.com <br...@google.com> #5
I'm attempting to replicate this issue given your sample code, but I'm not seeing it.
I've put up my repro code athttps://github.com/domesticmouse/DistortedGMSGroundOverlay
Please modify this sample until you get the distortion, and then create a Pull Request back to me.
Thanks!
I've put up my repro code at
Please modify this sample until you get the distortion, and then create a Pull Request back to me.
Thanks!
ap...@gmail.com <ap...@gmail.com> #6
I have used the same image and bounds you used, and I can not reproduce the distort.
Let me extend the information about this App.
The idea is to put an indoor map images on the google map. In order to do that, first of all, we use the google earth PC tool to discover the South West Bound, the North East Bound and the rotation to be applied over the image.
Once all these information is get, (1) we copy the image in the iOS device, (2) we take the image in our App from the iOS gallery, and (3) we configure the bounds and the rotation with the information indicated before.
However, using the image I required in my Project (Map.jpg attached), and the coordinates and rotation obtained (see below), I can reproduce the distort.
var southWest = CLLocationCoordinate2DMake(38.963203,-77.380171)
var northEast = CLLocationCoordinate2DMake(38.963641,-77.379883)
overlay.bearing = 47.907
I also attach an screenshot of google earth showing how I would like to see the image on my App using the API.
Could you please use the image (Map.jpg) I attach using the coordinates and rotation indicated?
Let me extend the information about this App.
The idea is to put an indoor map images on the google map. In order to do that, first of all, we use the google earth PC tool to discover the South West Bound, the North East Bound and the rotation to be applied over the image.
Once all these information is get, (1) we copy the image in the iOS device, (2) we take the image in our App from the iOS gallery, and (3) we configure the bounds and the rotation with the information indicated before.
However, using the image I required in my Project (Map.jpg attached), and the coordinates and rotation obtained (see below), I can reproduce the distort.
var southWest = CLLocationCoordinate2DMake(38.963203,-77.380171)
var northEast = CLLocationCoordinate2DMake(38.963641,-77.379883)
overlay.bearing = 47.907
I also attach an screenshot of google earth showing how I would like to see the image on my App using the API.
Could you please use the image (Map.jpg) I attach using the coordinates and rotation indicated?
br...@google.com <br...@google.com>
ap...@gmail.com <ap...@gmail.com> #7
Hi again, just to be informed about the status of this potential issue.
Could you be able to reproduce it?
Could you be able to reproduce it?
br...@google.com <br...@google.com> #8
Yup, I reproduced the issue and engineering is working on a fix. Thanks!
j....@gmail.com <j....@gmail.com> #9
Did you find a solution? I have the same problem
pr...@gmail.com <pr...@gmail.com> #10
Yes, I have fixed it. Google APIs doesn't support the images with high resolution. We have tried from small resolution to higher resolutions i.e. 512x512, 1024x1024, 2048x2048, 3072x3072. These resolutions are getting supported. Our image size goes upto 4.9 MB size. above 3072x resolution, it is not supporting.
Its better to go for tiling approach with 256x256 / 512x512 size images.
Its better to go for tiling approach with 256x256 / 512x512 size images.
br...@google.com <br...@google.com> #11
This is fixed in 1.10.0. Thanks for the report!
Description
demonstration page if at all possible, or attach code.
1. Create an GMSCoordinateBounds
2. Create an GMSGroundOverlays wih an image and the previous GMSCoordinateBounds
3. Modify the propery rotation
4. Put the GMSGroundOverlays in the map
Attached an screenshot of the result. As it is shown, the image seems to be distorted, not keeping the relation aspect.
Operating system version: 8.0.1
Google Maps SDK for iOS version: 1.9.2
Hardware model: iPhone 5, iPhone 6 and even iPhone 4
*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************