I am working on a project where an user could draw on a google map a polyline, polygon, walking, driving an cycling route.
All of those tools are available in Google My Maps app (link)
Here is a picture:
On google Maps API documentation I found library called Drawing tools (link to sample), but this is not what I am looking for. You can add to parameter drawingModes polyline and polygon, but there is no options for drawing a route.
Another picture:
So my questions are:
Is there a code or library or anything for tools from Google My Maps app (if there is, it could save me a lot of time - I need exactly what there is) (yes/no) (if yes, where? Ignore other two questions)
If not, are tools from My Maps (at least polyline and polygon) builded from library Drawing tools? (yes/no)
If yes, how can I add functionality to add routes? (please provide a simple sample or hint how to add one of the routes driving/cycling/walking)
I will try to address your question
Google MyMaps and Google Maps JavaScript API are different products managed by different teams at Google. I'm not aware about any third party library or tool that allows to use MyMaps functionality via Google Maps JavaScript API.
MyMaps tools are not related to drawing library of Google Maps JavaScript API as I mentioned before.
I can see the following feature request in the public issue tracker regarding the ability to access Google MyMaps via Google Maps JavaScript API. However, it doesn't look like the API team has set a high priority on this task.
Related
Can we get the 3D maps from the Google Maps API ?
i need to get the 3d model of any particular place just like the NYC 3d modedl.
Currently, the 3D Maps feature is not yet available from the Google Maps Platform - Maps JavaScript API.
But, we do have an existing feature request for this in our Google Issue Tracker. To express your interest and to subscribe you to its latest updates, I suggest that you star this entry: https://issuetracker.google.com/35821626
In the mean time, you may want to consider checking out the 45° Imagery and see if this will fit your use case. You could also find a code sample of this service here.
1) We are using Google Tiles as Source for Open layer API. Can we use Google map tiles Directly? Checked bunch of threads but don’t see clear picture on this. Looks like there was some communication between OL team & Google map API team and OL team received some written permission as well on this.
2) we are using Google Place Autocomplete with Open Layer Map. Are we allowed to do this?
https://developers.google.com/places/web-service/autocomplete
- “Note: You can use Place Autocomplete even without a map. If you do show a map, it must be a Google map. When you display predictions from the Place Autocomplete service without a map, you must include the 'Powered by Google' logo.”
http://osgeo-org.1560.x6.nabble.com/Google-Maps-API-Terms-of-Use-changes-td4910013.html#a4911981
https://github.com/openlayers/openlayers/issues/2205
Openlayers v4.0.1 support Google Maps Javascript API?
https://github.com/tombatossals/angular-openlayers-directive/issues/25
OpenLayers 2 had a Google layer implementation which used the Google Maps API. The written permission from Google was for that only. OpenLayers 3+ does not support that any more, because the implementation was too fragile for production use.
Ad 1): Using tiles directly violates Google's terms of use.
Ad 2): Like the terms say - if you are displaying the Google Map in a legal way, you can use the Place Autocomplete service. Otherwise you cannot.
I'm having trouble figuring out how do I open a tab of google maps or google maps app on my app within the unity, and can't afford to buy the Asset for facilitating, what do I do? is there any other site or application that I can use and be easier?
You would have to use AndroidJavaClass and AndroidJavaObject API to construct common map intents: https://developer.android.com/guide/components/intents-common.html#Maps
There are plenty examples out there how to use AndroidJavaClass and AndroidJavaObject e.g. how to create a share intent. These are very similar for maps.
I want to know, can we use all the API's of Google Maps in Unity3D (not just a static map, I want to locate my position, add a lot of markers with window information, select itinerary from my position to a selected marker ...)
Have a good day and thanks ! :)
I think the answer is yes, you can use the Google maps API with Unity as long as you adhere to the licensing agreement for the Google maps API.
However, if you're asking if there is special support in Unity for the Google maps API then the answer is no. However, there is at least one third party asset that supports Google maps. You could probably use it or a different asset to get you started with integration.
I was browsing Foursquare recently and they have this neat feature where you can click "Bigger Map" on their map, and it plugs your location in to Google Maps directions to the venue. I was wondering how I could replicate the functionality. (A high level overview is sufficient, I just can't seem to find it in the docs.)
It's not in the docs because it's not a Maps function. If you're talking about the Google Maps API, which is what Foursquare uses, they're detecting position using your device. I'm guessing for browser operations, they're using HTML5 geolocation. Here's a demo of just plain geolocation: http://html5demos.com/geo. That will ask the user to share their location with the app. Once you have that, you plug it into the Google Maps API Directions Service.