I'm trying to create a tiled grid using google static map images. I use the latitude and longitude in the middle of the tile to request the images (Math found here).
They line up perfectly but whenever a label is split between two tiles, the second tile does not show the label
Label names cut off
Is there any way to format the url such that the images returned are consistent with inter-tile labels?
Your implementation is against of Terms of Service. You should be aware that stitching static maps images is prohibited in paragraph 10.5 (b) of ToS.
No derivative works. You will not modify or create a derivative work based on any Content unless expressly permitted to do so under these Terms. For example, the following are prohibited: (i) creating server-side modification of map tiles; (ii) stitching multiple static map images together to display a map that is larger than permitted in the Maps APIs Documentation; or (iii) tracing or copying the copyrightable elements of Google’s maps or building outlines and creating a new work, such as a new mapping or navigation dataset.
Google recently updated Terms of services, but you can find the mentioned text in
https://developers.google.com/maps/terms-20180207#10-license-restrictions
Related
Using iframe to display google maps in hres. Lets say 10000x10000 don't work, because google dont allow you to do this. That's what it says when I open the document in internet explorer. I am doing this because I want to make a big screenshots of google maps and then stitch them in photoshop. This will make a big satellite map which I can use to explore off-road routes with my bike without the need to have access to the internet.
Please if anyone have any ideas; maybe an html code which works?
As mentioned #geocodezip there are certain restrictions you should be aware of. The Terms of Service has the following sentence (paragraph 10.1):
No access to APIs or Content except through the Service. You will not access the Maps API(s) or the Content except through the Service. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s).
Also paragraph 10.5 says:
No derivative works. You will not modify or create a derivative work based on any Content unless expressly permitted to do so under these Terms. For example, the following are prohibited: (i) creating server-side modification of map tiles; (ii) stitching multiple static map images together to display a map that is larger than permitted in the Maps APIs Documentation; or (iii) tracing or copying the copyrightable elements of Google’s maps or building outlines and creating a new work, such as a new mapping or navigation dataset.
https://developers.google.com/maps/terms#10-license-restrictions
I have a problem when i try to display a static map that display all elements
for example:
http://maps.googleapis.com/maps/api/staticmap?&zoom=18&size=640x640&markers=color:red|40.7191413,%20-73.9973273
In it i can't view any business and buildings.
If i display same map with same zoom in google maps or in any other application that dsplay dynamic map
i can view them.
For example:
https://www.google.it/maps/place/40%C2%B043%2709.1%22N+73%C2%B059%2751.0%22W/#40.7191413,-73.9973273,18z/data=!4m2!3m1!1s0x0:0x0
I have read this faq:
https://developers.google.com/maps/documentation/business/faq#no_pois
and tryng to apply it in this mode:
http://maps.googleapis.com/maps/api/staticmap?&zoom=18&size=640x640&markers=color:red|40.7191413,%20-73.9973273&style=feature:poi.business|element:all|visibility:on
but don't work
I's a limit of Static Map o what?
The Static Map API typically shows fewer points of interest compared to Google Maps or the Maps JavaScript API. This is working as intended, so unfortunately you can't do anything to get more POIs to show up.
You can consider using the Google Maps Embed API which might better meet your needs.
I have a Google Map that I have embedded on my web site. I have managed to size and position the iFrame so that it sits where I want it to sit on my web page. I am using the new Google Maps version.
However, I want to be able to shift the centre of the map to the right, because as it standsnow, the box that displays the map layers is covering some of the locations I have marked.
I am not at this point using any Javascript or jQuery. I have simply taken the iFrame link provided by Google's embed feature and placed it in my HTML. I see there are other questions about map centering, but I can't parse them for my situation because they assume some Javascript implementation. Also, I'm hoping that I do not have to take on a whole API or Javascript library to solve this. Further, it is unclear to me if the other questions relate to the new Google Maps version, which is what I'm using.
Is there a way I can alter the centre of the embedded Google Map?
Just add a "center" parameter to your iframe url. Like so - center="40.714728,-73.998672". You can get the required coordinates by searching in google maps and picking them from the address.
You could alternatively also use a query parameter but center is more accurate.
refer - https://developers.google.com/maps/documentation/static-maps/intro#location
I am trying to create aseries of maps with markers. I have experienced, that when there is 5 or more markers shown at the same time, one of the markers are not rendered properly.
Here is an example.
As far as I can see, the icon url is correct, and if i remove one of the markers, it is shown properly..
What is wrong?
From the Static Maps API developer reference:
"The Static Maps service allows up to
five unique custom icons per request.
Note that each of these unique icons
may be used multiple times within the
static map."
http://code.google.com/apis/maps/documentation/staticmaps/
And by custom map I mean custom map tiles, as in, mapping another planet. I've looked all around but can't see to find any resources pointing how to do this on Google's or any website.
I know it's possible because I've seen it done before on a website, but unfortunately the website that has the link to THAT site is down so I can't get to it.
Have a look at the API. This might help you by loading own images as an overlay:
Image Map Types
Implementing a MapType to act as a base map type can be a time-consuming and laborious >task. The API provides a special class that implements the MapType interface for the most >common map types: map types that consist of tiles made up of single image files.
This class, the ImageMapType class, is constructed using an ImageMapTypeOptions object specification defining the following required properties:
tileSize (required) specifies the size of the tile (of type google.maps.Size). >Sizes must be rectangular though they need not be square.
getTileUrl (required) specifies the function, usually provided as an inline >function literal, to handle selection of the proper image tile based on supplied world >coordinates and zoom level.