I'd like to draw polygon into the Google Map API and cut another polygon which lies inside the first one off. Is this possible? Could you give me any example, please (maybe link to the page with working example)?
Thank you very much.
Related
I need a Google Map with marked up areas with different colors.
GADM data
The first article I came across was this one:
https://ourcodeworld.com/articles/read/830/how-to-highlight-an-area-city-state-or-country-in-google-maps-with-javascript
It links to this service for getting coordinates:
https://gadm.org/download_country_v3.html
The problem is that there are too many points so it would end up with 3MB for an embedded map.
Google Maps draw
Then I tried Google Maps service to draw a shape. While it works, I could not find any export function to get the longitude and latitude.
https://www.google.com/maps/d/u/0/viewer?mid=1IlydZDXB-tkN8K8pAR57BRFqBOTv3c8z&ll=59.681023024095936%2C18.40997752499993&z=9
Question
How can I draw an area on a map and then get longitude and latitude for the points? On Google Maps, a tool or something else does not matter.
I solved my problem very differently. I simply used an svg file of just the country and highlighted areas there.
I used this site:
https://simplemaps.com/custom/country
I need to create a shape on the google map. If the user wants to create a shape(Polygon, Circle, Rectangle, Square) with the help of Drawer he will be able to draw shapes.
Is there any related feature of Google Maps which I can use to achieve this feature?
Thanks in advance
There is, you may try reading Drawing Manager from Google Maps Api Drawing Layer (Library)
Here is a working example of what you can achive
GoogleEx_DrawingTools
Basically I have some school catchment map that I would like to put on Google Map. I have done some research but it seems that we can only draw polylines. For example, I like to draw the red line from the attached image onto Google Map, how do I do that? Any tip or point of direction would be very appreciated!!
lovely to be here.
Quick question.
If you click on the following link: http://maps.google.com/maps?q=53.838061,-1.604025
It will take you to Google Maps and you can see a single pin on the map. This is done by sending two parameters via the URL which, in this case are: 53.838061,-1.604025. These are the Latitude and Longitude coordinates of one location.
What I wish to have is basically two sets of coordinates so I can see two pins on the map.
Does anyone know how to do this?
Any help is greatly appreciated.
Thank You.
I think you will have to use this api: http://code.google.com/apis/maps/documentation/staticmaps/#Markers
There are also some examples there. I hope this helps.
Am taking that you need to know the co-ordinates from the maps page and not via the api.
Right click on the spot, in the menu select "whats here", maps inserts a marker on the spot, coordinates are on the search text box and also on mouse hover on the marker.
I'm looking looking for a tool that will allow me to make a map exactly like this:
http://datasearch.uts.edu.au/about/mapsdirections/map.cfm
Basically I need to put shapes around buildings in the satellite view and then slap a marker and information window on them so that I can specify the building name and contents.
So the main issue is that I need the ability to draw shapes directly onto the maps as I don't fancy taking down the lat lng of each corner of the polygon.
Ideally what I'd like to do is have an online application that exports those points to KML, and then I would display google maps on my site and import that kml to display it.
Other suggestions welcome!
Jason
Found a polygon creator
http://www.the-di-lab.com/polygon/
It's simple to use and allows you to copy and paste straight into your code. Would be nice if it had a button that said sent to kml though..