tomchentw/react-google-maps

KML Layer from AWS S3 not added

lysaan opened this issue · 2 comments

Hi, thanks for this wonderful package. It is very helpful.
There is one little improvement which could be very useful.

<KmlLayer 
         url='https://maps.s3.ap-southeast-2.amazonaws.com/kml_maps/new_kml.kml?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX_request&X-Amz-Date=20200812T052139Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=XXX'
        options={{ preserveViewport : true}}
    />

It is working fine if Object is public on AWS S3 but not working when generating Presigned URL for S3 objects.

If you could check it out then it would be great.

Thanks

Ok thanks, but we were able to solve this issue.
You just need to replace '&' with '& a m p ; (without spaces)'.
Thanks 😊