I was trying to create custom overlay for south pole on google map. However, it was not possible to create accurate overlay. I am working on a project where i need to plot many marks on south pole. We will be getting series of longitude and latitude of south pole and we need to plot that into a map. As google does not have a map for south pole, we need to create a overlay or tiles on google. I have tried both of them however, not successful. Please let me know any idea. I can send you some example that i have done. I have followed this example below. However, can't get what we need because of destortion as well south pole right at the bottom of the map where it is completely grayed out on google map.
https://developers.google.com/maps/documentation/javascript/examples/maptype-image
https://maps.google.co.uk/maps?q=google+map&oe=utf-8&client=firefox-a&ie=UTF-8&ei=5UBVUrm1OITI0QXJ6IGwBw&ved=0CAoQ_AUoAg
The map projection from Google doesn't work for the poles. In my opinion you need a transverse mercator projection. It uses the great circle.
Related
I need to reproduce behavior of leaflet's worldCopyJump(), but for vertical scrolling: for world map it's when user scrolls up from North Pole, the South Pole is shown. Is there a way to do so?
Not in the default map projection.
By default, Leaflet uses EPSG:3857 AKA "Web Mercator", a type of cylindrical map projection. In cylindrical map projections, two points (in this case, the geographical north and south poles) can not be represented in the map at all.
What you see is a cropped version of this map projection: The map is cut out as approximately ~85°N and ~85°S in order to look square. In reality, the map projection is infinite in the vertical axis.
This said:
Read the leaflet tutorial on CRS.Simple. You can use projections other that the default.
Read the documentation for L.CRS. It's important in order for you to...
Read Leaflet's source code for CRSs. Pay extra attention to those wrapLat and wrapLng properties.
Research on map projections. Is there any wrapping projection that serves your purposes? Can you achieve that with Proj4Leaflet? If not...
Write your own custom L.CRS with the desired wrapping.
I am willing to highlight a state in the Google maps when user click on any area in the particular state. Supprose if I click on any area in the Washington sate. Then the Washington should be highlighted. Can you help me if any api or js is available to do like that.
There is no automatic API for this. You are going to have to draw a polygon either dynamically when the user clicks, or pre-draw all the U.S. State polygons in advance and hidden, then dynamically make the proper one visible when the user clicks.
As for making polygons in the shape of at least U.S. states, several persons have posted pre-defined polygon lists. One is here in StackOverflow: Geographical boundaries of states/provinces -> Google Maps Polygon
However, if you are looking at world-wide regions, states, and provinces, I doubt you will find pre-defined lists of them all. You may well have to create your own polygons by manually drawing on a Google Map or Google Earth, then export the polygon's lat/lng waypoints.
recently I am creating some relative, the tests I made was based on OpenStreetMap Nominatim (https://wiki.openstreetmap.org/wiki/Nominatim), is something like:
Click on map get Lat, Lng
Search by reverse Geocode, get state (or city)
Use Nominatim API to get a polygon_text (I use the geo WKT format), parse it
Draw the polygon or polygons (if multiplygon) with Google Maps API
Hope it could make some ideas come.
I need to create a Map to compare the population density of a country (e.g. USA at county -or state- level) and the epicenter of some earthquakes to see how many people could have felt those quakes.
The problem is that I can't find a way to put these 2 things on the same map.
In a db I have some earthquakes taken from USGS and the population data taken from Census.gov.
I was able to map earthquakes (coordinates lat/lng) with circles thanks to the Google Maps API but without population density.
I also created a map with Highcharts (Highmaps) to display population density, but I can't put circles on that because lat/lng points are not supported.
I also read about vectorWorkz and jVectorMap but couldn't find examples.
Is there a way to do such thing? I'm not an expert so if someone has a solution or could provide me a little example I would be eternally grateful. Thank you!
jVectorMap suits all your needs. Here is an example of regions density and markers visualisation on the same map.
I am having some strange behavior with my leafletjs map. I've tried plotting a few polylines between north america and asia, but get the polyline split into two pieces.
Is there a way to fix this?
You did not add any code with your request so it is no easy to respond you correctly
Likely you need to split each polyline in two parts, else they directly jump to the other part of the world passing over the europe. Then try to center the map on the pacific ocean and not in the europe in order to get a better map.
What I'm trying to do is finding an elegant way of dealing with multiple markers on the exact same spot on a google map. Possible scenarios are when your geo data just isn't accurate enough to distinguish two markers from one another (say 3 people live in the same house and all you have is an address) or you only have city information of a couple of shops.
Now there is the Clusterer of course, everybody is saying that, but that won't help here as the markers have the exact same location. They will stay clustered regardless of zoom level.
I like the way Google Earth does it. Here is an example. But so far I have not discovered a way to have this behavior in Google Maps. I would be pleased if someone can show me how to do this.
So perhaps as you are looping through your coordinates adding all the markers, you could check if any previous marker has the same latlng. If it has you could use a different marker, e.g one numbered '2'. Or to do the Google Earth thing, offset each marker slightly, and draw a polyline from the markers to the original location.