-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
I think it should be possible to pass a rect to MapView.UrlTile #1555
Comments
I totally agree with you @petha ! |
I will try to do a PR during the day, I've done some quick hacks and it is almost done for IOS. I'm not sure i'll fix it for Android ATM since the big problem for us is IOS. It's more of a performance thing on Android and I can live with it.. |
What if the rect tiles are transparent? ( a grid overlay scenario) |
@raduflp yep! that's what I did, haven't got the time to clean the code up yet but now it "works for me"™ You can find my fork here https://github.com/petha/react-native-maps, I intend to do some polishing make sure the it has some default props so it won't break any earlier examples and then do a PR. |
awesome! I'll be waiting for that PR related question: Were you ever able to overlay transparent tiles over the native MapKit provider on iOS? |
@raduflp Just checking in on the last thing you mentioned. I've been trying to use |
@mikefresh yes, after doing all the necessary adjustments to have google as a provider on iOS I managed to get a consistent behavior with the Android version, i.e. the default tiles were displayed underneath the custom transparent ones. That was a month ago though, not sure if anything changed since. |
Hey guys, I am using
It sort of works. When I pinch, drag and zoom in/out, it displays the underlaying tiles (on Android Google Maps). Once the pinching, dragging, zooming is done, it only then loads the |
I think this is the normal behaviour, even if you add custom tiles to a native Android Google Maps app, it will also behave the same. What I did for the rest of the tiles (outside of my Rect) is as follow: Since my tiles are hosted on AWS S3, I serve them through CloudFront. In CloudFront, there is an option to return a default image when the requested one is not found. So, by default, I return a 1x1px transparent "dot". Would be much much better if we could pass a Rect to the |
@markmssd Hm, maybe I did not express myself correctly. I do not want anything to shine through. I can understand this behavior when I would overlay clouds or rain pattern or what so ever on my base map. But I don't want to see the Google Maps base map at all! I want to use |
Just a random guess, try setting the provider to null:
I think I've read this in an issue long time ago, let me know if it works. |
@markmssd Ill try tomorrow. Whats in |
Absolutely nothing, or your own styles... I've copy/pasted the snippet from the |
@markmssd thanks, Ill check out out tomorrow. |
hi i am using below url of soil map tile in x,y i pass converted lat long and in z i pass zoom level. |
I need a way of telling which part is covered by the MapView.URLTile and outside of that rect the map should be visible.
Right now the map tries to load all tiles even if they are outside of the bounding rect of the tile-set
I suggest a way of passing a bounding rect to the component if it would be possible
The text was updated successfully, but these errors were encountered: