I am working on a project in which I need high resolution images from google maps to plug into a canvas as the background. I know that the static image api doesn't allow you to get the 45 degree aerial shots that are much higher fidelity than regular satellite images. I need high fidelity images, and thus I need the 45 degree aerial shots and the static image api is out. Are there other approaches to saving google maps images with javascript? I have about a 800X500 embedded map that users will use to find an exact location they want to isolate and then I need to grab an image of it.
In theory, you could use the canvas to rasterize the output of an embedded map out to a jpg, but it seems likely that this sort of thing would be forbidden by Google Maps' Terms of Service. To wit:
You may not access the maps or satellite images through any mechanism besides the Google Maps APIs (such as the creation of your own mapping API or the use of a bulk tile download script)
https://developers.google.com/maps/faq#tos_tiles
Related
I want to make an interactive map web application for a game that I play. Basically I want it to be a kind of Google maps clone, where I have a vector-based graphic of the region area and I can zoom in and out to reveal certain level of detail.
My research into map APIs has returned little results. OpenStreetMaps and Google Maps only allow custom maps with real geolocation data. My project requires the creation of a map with nonexistent locations. Does anyone have a suggestion on how to approach this? Thanks.
I think you can use "real" GPS coordinates and then customise the base layer beneath. The GPS Lat Long coordinates (between -90 and +90 each) offer as good a scale as any to then locate your fictional positions.
Google Maps has an API that allows putting custom layers and base maps here:
https://developers.google.com/maps/documentation/javascript/maptypes#CustomMapTypes
OpenStreetMaps will also allow this. Some recommended guides available here:
https://switch2osm.org/serving-tiles/
Good luck!
I want to get information from static kml file or mapinfo tab file i.e I have a kml/mapinfo tab file that i open on google earth/mapinfo and it shows multiple placemarks but i want to get coordinates of all the placemarks that lie within 1km circle from my required single placemark. How it can be possilble on google eatrh or mapbasic code?
What you're looking for is a basic "point in polygon" analysis function available in most GIS software, but not in Google Earth or Maps. If you know how to use the free QGIS, you could do it in there, though the steps required are somewhat complex if you're never used GIS software before. You'll need to bring in your KML, generate a new file with the single placemark and generate a circular "buffer" at the desired distance, and then select the features in the KML which overlap with the buffer. And you'll need to manage projections to make it all work correctly.
If you have a large enough KML to warrant the work, or need to do this many times, then it's probably worth figuring out how to do it with GIS software. If it's only a small number of placemarks, and you only need to do it one or a few times, then get Google Earth Pro (it's free), use the Measure tool to draw a 1km circle, and manually select the points inside it.
I'm working on a web application to find images taken in a given location. I'd like to be able to do this using the latitude and longitude retrieved from geolocation to match geotagged images in Google images.
Is this possible? I've searched around a bit; it seems it's possible to search Flickr by lat/long, but I haven't found anything that indicates I can search Google images by lat/long. I can search by place name, but I'm looking for something more accurate than that.
Thank you in advance!
After looking through Google's Custom Search API (the Google Image Search API was deprecated and rolled into it), it looks like there isn't a way to search by geolocation.
Flickr might be your best bet since it's more open.
It's possible to retrieve images and photo taken at a certain place (therefore find a place by lat-long data) with Google Earth. While you are on a specific place, you can add additional layers (by default) including photos on your location.
I need to be able to show markers (polygons) on a few maps that are JPG's that are various zoom level looks at same thing.
I would normally use google maps for this, but I cannot rely on the mobile device having access to the internet when needed, thus need to use a locally stored set of JPG's and overlay the items on it, preferably with some sort of interaction such as click/touch for more detail popup/modal.
Has anybody made anything similar to this that uses the GEO location but not the internet of a mobile device, and locally stored long/lat details? Can you give me any pointers?
Use CATiledLayer for displaying and overlaying marks.Here is a nice tutorial
Here
We need to create a map of the small town from raster file. Our client deny usage of known API such as Google Maps, OSM, etc. There is little time before the deadline. What is the quickest way to create a small web map from the picture? Some kind of JavaScript framework?
Requires: drag, zoom and markers.
It is very desirable to do this without a big fat server such as MapServer or GeoServer, because we dont have a much time to redraw map in this format.
Absolutely easiest way is to create an OpenLayers map with Image layer. Here is an example of how it works.
Consider though that whole image is being loaded to the client before OpenLayers can manipulate it. So it's probably not the best option if it's a huge image.
Other option would be to create a tile pyramide with MapTiler which you can then simply host on your webserver(no need for MapServer or GeoServer) and then use TileCache layer in OpenLayers to display tiles on map. MapTiler creates OpenLayers example with all necessary settings when you tile image with it.