I have been working with google maps api and flutter and cannot see polyline between 2 markers.Does anyone have any idea how to create a polyline between user entered location?
You can see the implementation of polylines in the plugin example
https://github.com/flutter/plugins/blob/master/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart
Related
I am trying to show a race course via the google api. I have gone in and created a custom map and can't figure out how to show that from the api. I am trying to add this to a website and then want to add another API on top of it.
This is the map I have created
To display data from Google MyMaps on a Google Maps Javascript API v3 map, export the data as KML/KMZ, then display it using KmlLayer
related questions:
Importing myMaps data in google maps
Render a My Maps using Google Maps JavaScript API
example
Since you tagged this question with google-static-maps, you may also be interested in:
Issue 207: KML layer in Static Maps API
Show a route on a map
I have a google maps api where after displaying the map I am going to insert a few markers.
On click of these markers, I am bringing data regarding that marker.
Now the problem is I want the wind speed also for that marker .I got response from one of the architects in stackoverflow that google weather api is no
longer maintained by google and deprecated.
Is there any to achieve this without using any paid external plugins?
Have a look at the API from: http://openweathermap.org/ that should help you out.
With Google maps, we can save a private or Public map and add places and markers on it manually. Can we use Google Maps API v3 to programmatically add markers to such a map? This is so that when the map is displayed, all markers will be pre-loaded by Google.
Thanks,
Yash
Yes - the Google Maps JavaScript API is very powerful. Please refer to the API reference to get started (https://developers.google.com/maps/documentation/javascript/examples/marker-simple).
I have a saved google map in 'My Places', with over 100+ pins added for locations around the UK. Is there any way I can avoid having to use the embed feature to display this map on a webpage, sort of calling the saved map by ID via the google API?
Essentially what I want to do is get access to google's new visual refresh and be able to control the settings of the map more with API.
The map link is this: https://maps.google.co.uk/maps/ms?msid=207590858966548688521.0004aa52150024d3431b2&msa=0
Can we parse anything here...?
You can overlay the KML output by MyMaps using a KmlLayer in the Google Maps API also:
your MyMaps data displayed on an API based map
Updates in MyMaps will (eventually) be reflected on the map.
Using https://mapsengine.google.com I was able to import the maps data and utilise the pins that way. Not ideal, but still some better functionality.
I know Google Maps API Terms of Service do not permit you to save their map data.
However OpenStreet does.
I want to use Google Maps API (ver 2) with the OpenStreet map layer and my own map layers - and have a button to export the map to an image.
How can I do this?
You can use a spatial index or a space-filling-curve to make your own map.