I've got a question about highlighting areas on Google map. I know how to place polygons on map. It's pretty simple and straghtforward. The problem is I don't have access to such data and I don't know any source of it. From my database I get lat/lon for a specific place and I need to have data about their borders. Do you know any free or paid database that contains such polygons data for all countries/regions in the world?
Thanks in advance.
http://www.gelib.com/world-borders.htm
There is a .kml file at this location you can use as a starting point.
With this tool you can create any polygon you like:
http://www.birdtheme.org/useful/googletool.html
Related
In google maps, we can see a building footprint displayed. But how can we get this building outlines details via the Google Maps API? I know you have an easy algorithm to calculate a surface area in m2 via maps, but there you have to put in your data points manually.
Is there a functionality in the API where you can get the building outline details?
I've spend some time looking for the functionality in the API, not finding it... If someone could give me a hint if this functionality exists or not, I know if I have to focus on image-processing :)
Thanks in advance!
Here is similar question on SO. Hope it will help.
EDIT
There is also another way of getting building coordinates. You can use data extracted from OSM http://www.openstreetmap.org.
Select area and export .osm file.
The file has xml structure. Inside you will find nodes with associated coordinates. Rest of the file usually contains objects which could be tagged as building. Objects are described by set of references to nodes so you will have to follow the references and find out coordinates.
I have a list of customer (GPS coordinates) for each salesman in excel file. I want to create a polygon in Google map that shows area of each salesman in map.
Is there any tool that shows my salesman area in the Google map ?
For the first step it is easier to use Google Earth.
To display data you need a google kml file.
Create a placemark, and use the Polygon.
More, see https://developers.google.com/kml/documentation/kml_tut
To display a kml in google maps, the file has to be located on a server reachable by an url.
Ffor goggle earth a local file on your disk is sufficient.
For this problem, you may want to use a concave hull algorithm. You can read more in depth at https://gis.stackexchange.com/questions/39205/converting-point-sets-to-polygon-boundaries
In JavaScript, you can use https://www.npmjs.com/package/concaveman.
Forgive the vague nature of the query. I wish to make an application to visualize some geographic data on a map. To be clear, I have some lat / long locations in a txt file. I can figure out how to draw them on a map using OpenLayers or the Google Maps API directly. However, I have some other data files, with an attribute related to each point. I would like to iterate over those files , read in the point attributes, and update the map (changing the radius of the respective point) as I read the files. My end goal, is something like what is done here World Development Indicator .
If someone could explain to me how this is done, or point me to a set of tutorials, I would highly appreciate it. Thank You.
I think you can add all the points as shape circles, and store the references in some kind of array or list.
Then you can find the circle and change its radius by the setRadius(double) function.
I'm sorry, I'm extremely new to google map, thus I need some help here.
I want to store and retrieve locations that I've input and display in the google map.
Any startup for me to get me going? Thanks.
Try Google Earth, it will save locations in kml, and and you can feed data to it from an external source. You can also place marks in Google maps if you are signed in. Other wise you didn't give enough information
this question is kind-of programming related but not exactly - see how we go...
I am trying to view a trip i have made using a gps tracking device onto google maps as one continuous line, however, when i upload the KML file onto google maps it is arbitrarily broken into about 7 different segments.
The trip was made in one go and when shown in google earth it is shown as one continuous line.
I have inspected the KML file and all coordinates are contained within the same single linestring element.
Does anyone know why this is occuring?
Regards
Grant.
It looks like other people have experienced the same problem that you're having, but I was unable to find a solution. It seems that this is just a bug in the Google Maps KML parser.
If you don't mind creating your own map with the Google Maps API, you should be able to parse the file with no problem. There are also some sites like this one which will create a map from your KML file.