I want to show a search query results map in react-native,
for example:
https://www.google.it/maps/search/hotels+in+New+York,+Stati+Uniti/#40.7522488,-74.0240238,13z/data=!3m1!4b1?hl=it
I have checked at several components:
https://github.com/react-community/react-native-maps
https://github.com/tolu360/react-native-google-places
https://github.com/react-community/react-native-maps/blob/master/docs/installation.md
I successfully installed cocoa dependencies and set up the Google APIs.
What i am looking for is an Around Me feature with Google Maps results
The best solution, for me was to use the AirBandB React Native Maps component. It provides every feature you need to work with google maps (and not only google maps).
This is a beautiful Video Tutorial serie about it, it's really clear and work great.
https://www.youtube.com/watch?v=eT8SssHz0nY
Related
I have requirement that is, I have to show GeoJson data (java script file) as a layer in Google maps either using Native or Web view. I have checked few forums, as per they said, it is possible only for Android to load java script for loading data layer in Google maps.
So, my requirement is, I want to show some java script which contains geojson data as layer and then after that, I have to draw a route or path from start point to end point in map(like user started walking from 1 place to other place around 1 to 10 kms like footsteps).
I seen in Google maps forum, only Android and Web possible this kind requirement.
And I have checked MapBox library too, I am not sure whether it will help to my requirement. But, my preference is Google Maps.
Anyone can suggest me how to achieve this?
I'm using MapBox for a iPad app and we want to use various image sources for the map imagery.
Is there a way to get google map tiles and show them in MapBox?
We could construct the url's to get the tiles directly but google will block you if you do this, because we wouldn't be using the official API.
Is there any other option to solve this problem?
It is technically possible, but Google's terms of service don't allow display of their tiles outside of their own software frameworks.
I need to add google map on the create place action. One of the steps is to selected the place location manually by clicking on the map and then get the lng|lat.
I am using Google-Maps-for-Rails and I am happy with it. Is there a way to do this using Google-Maps-for-Rails gem?
If no can you suggest another solution?
Months back I got this working. You can refer to the Google Maps API and there are samples of code. This should give you a head start:
https://developers.google.com/maps/documentation/javascript/events#EventArguments
In my Rails app, I didn't use any gem, but just the Google Maps API. That should work just fine. In fact, try not to use any third-party plugin, because the Google Maps API itself is very dynamic.
I want to open the native google maps application on a mobile device from my mobile website. Currently I am using the URL http://maps.google.com/maps?q=The%20Diner,%2027%20Main%20Street,%20The%20Village%20#55.7665863,-4.1455545, which works for one location.
What I am looking to do is show multiple locations with a different coloured marker. Is this possible.
Well i found when you use the non-secure url and post a list of postcodes it works fine you can add more postcodes by adding another +to: ;
http://maps.google.com/maps?f=d&source=embed&saddr=LD7+1EN&daddr=CH1+3AE+to:AB12+3AX&
havent really tried to make it do different markers with different colors or anything, but i suggest looking at the url generated by your browser in google maps and ensuring its not a https:/ link and i think it should work.
Is it possible to use google static maps in place of what you have?
This page shows a static map example with multiple markers.
Has anyone got any suggestions on where to start with building a google map into a rails app? I would like users to be able to add a marker by clicking the map, and have spent a few days looking for a suitable tutorial or plugin (beyond ym4r), to little avail...any help would be much appreciated as I am finding the Google Maps API rather difficult to get into! I've also come across the railskit for google maps - does anyone have any experience in using it?
Just fyi, I made https://rubygems.org/gems/gmaps4rails which is a useful wrapper with several options.
I probably wouldn't use YM4R. We tried it and found that it doesn't add much value because it just wraps the API. I would recommend working with Google Maps directly from JavaScript. Google Maps API documentation is pretty good, and there are quite a few examples on the web.
There is an example of a click handler on the map here, and adding a marker is just a matter of doing
map.addOverlay(new GMarker(latlng));