I would like to be able to select all points from a fusiontable layer that are within a drawn polygon in google maps api 3.
I know in Google Maps API v3 there is the containsLocation method in geometry library, but I dont know how to extract lat/lon from the fusiontable layer and make a loop that will scan over all the markers in the layer.
Thank you very much if you can help with that.
You can extract the data from the FusionTable using the FusionTables API v1.
Example that extracts kml "Points" from a FusionTable and displays them as markers
Related
I am working on a project that requires I plot markers at metropolitan coordinates via the Google Maps API. I can plot the markers just fine and draw polygons easily, but I need to draw polygons parallel to the road common to each coordinate and if possible, find traffic direction. Each coordinate input is verified to be next to a road in a a downtown metropolitan area. Is it possible to get that information from the Google Maps API or open streets API?
A sample coordinate is [47.6018, -122.314].
There are multiple online routers based on OpenStreetMap data availabe. Several of them offer a GPX export. Try for example OSRM or graphhopper.
We are trying to create boundary maps of various zones in a city using Google maps or earth. Creating polygons for each zone makes the common boundary look different with zoom. Hence we are planning to create segments (shared boundary) with polylines. However, this requires joining multiple polylines (boundary segments) to create a zone (closed boundary) with properties of a polygon. I could not get any option where we can do this. Can anyone help us to address this problem?
Try looking into these links, it can be of help
Example:
http://gmaps-samples-v3.googlecode.com/svn/trunk/drawing/drawing-tools.html
Documentation:
https://developers.google.com/maps/documentation/javascript/overlays#drawing_tools
Is it possible to create a polygon with Google Maps API where the polygon is completely clear and outside the polygon is shaded?
If you mean something like a hole, try the suggestions here
How to add a "hole" to a Circle Polygon (Google Maps API V3)
I found this cool feature in google map that allows to calculate distance between two points of interest. It doesn't simple calculate the linear distance petween points but allows to draw on the Map the route on the map. Have you ever used it? Do you know where i can find the API documentation?
Google's Maps API is publicly available. You might be looking for DistanceMatrix. You could then use Polyline to create the route, and DrawingManager to draw it.
I am using Google Maps for my website and I want to create boundaries of towns and cities, as shown in the screenshot below.
Problem: There seems not to be any feature in the V3 API to perform this function. I believe it involves retrieving the Latlng of the path that forms a polygon around the area.
How then do you get the Latlng of the points needed?
Screenshot
ok, assuming you already have a path defined as a Polyline, you can then call the .getPath() function which returns an MVCArray of LatLng objects. I assume that answers your question "How then do you get the Latlng of the points needed?"