google-static-maps

Google Maps url parameters

穿精又带淫゛_ 提交于 2019-12-12 00:51:52
问题 In url requests for Google Maps, the center of the domain has to be defined: url = "http://maps.googleapis.com/maps/api/staticmap?center=10.027489,51.229248&size=650x650&zoom=14&sensor=false" Even when I play with zoom or size, I don't get the exact map that I want. Is there a way to define the southwest and northeast corners of the domain ? Or any other way to better define a domain ? 回答1: Yes, you can use the visible parameter to specify the 2 opposite corners of a rectangular region, and

Issue in displaying static Google maps

人盡茶涼 提交于 2019-12-11 15:40:00
问题 The src property for the img tag is http://maps.google.com/maps/api/staticmap?center=1701 Fm Rd 1187, Mansfield, Tx &size=150x90&sensor=false&zoom=15&maptype=roadmap" + "&markers=size:tiny|color:blue|1701 Fm Rd 1187, Mansfield, Tx 回答1: It works fine from here. You have simply exceeded the usage limits from your IP address: Use of the Google Static Maps API is subject to a query limit of 1000 unique (different) image requests per viewer per day. Since this restriction is a quota per viewer,

static maps list of features

若如初见. 提交于 2019-12-11 12:04:05
问题 I'm trying to customize Google static maps so that maps display entirely in greyscale. It's mostly working, however there are some map "features" that I can't seem to select and style. In particular, there are (what appear to be) highway ramp labels with a green background and white text that I'd like to make black and white, or hide altogether. Here's an example: http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyADV4Wfi9-4ET5GG52Cw_l0_Bkt8W5vwvM&center=43.597586,-79.746689&zoom=14

Address breaks map display, why?

走远了吗. 提交于 2019-12-11 09:03:52
问题 Currently I am generating a Google static map by inserting an address through PHP insertion like this: <img src="http://maps.googleapis.com/maps/api/staticmap?center=<?=$gmapadd?>&zoom=14&size=300x200&markers=color:blue|label:A|<?=$gmapadd?>&sensor=false"> Now here is an example output from this same script that displays properly: <img src="http://maps.googleapis.com/maps/api/staticmap?center=11555+Central+Parkway+Jacksonville+FL+32224&zoom=14&size=300x200&markers=color:blue|label:A|11555

StreetViewService getPanorama method reporting Incorrect Status Codes for LatLng paris

半世苍凉 提交于 2019-12-11 05:55:42
问题 All of the sudden I appear to be getting inaccurate status codes from the Google Maps Javascript API. For example, with this code: sv.getPanorama({ location: {lat: 35.685, lng: 139.7514}, radius: 350 }, function(data, status) { console.log("getPano() location = "+data.location.latLng); console.log("getPano() panoID = "+data.location.pano); console.log("getPano() status = "+status); }); With this, I get the following output: new getPano() location = (35.685175, 139.75279950000004) getPano()

Draw Google static map image

这一生的挚爱 提交于 2019-12-11 05:48:06
问题 I am using google static map API for draw google maps image in my Angularjs Application. https://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap &markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318 &markers=color:red|label:C|40.718217,-73.998284 &key=YOUR_API_KEY Its working fine for low number of map coordinate. But if have large number of map coordinate then it is not drawing map

Google Static Maps API Paths with dashed lines

旧街凉风 提交于 2019-12-11 05:35:06
问题 Is it possible to have dashed line in the map paths? Can't see any option about it in the official Google static map page. 回答1: As workaround you can draw dashed line like in example: List<PatternItem> pattern = Arrays.<PatternItem>asList(new Dash(30), new Gap(20)); mPolyline.setPattern(pattern); over MapView in Light Mode on background and make snapshot of it for getting map bitmap, like in that answer: public class MainActivity extends AppCompatActivity { private static final String MAP

Static Google Map: Is it possible to add Text to the Marker

偶尔善良 提交于 2019-12-11 03:44:30
问题 In my Android application , i have placed on ImageView. And I call the below mentioned url to get the static map image (bitmap image). And i placed that bitmap map image into the imageview. I followed the developer site for displaying the static map. Static Map URL Edit Added Android tag. I just want to need my custom text to the markers like instead of G,C,S i want to display " Start "," Middle "," End ". 回答1: add only one char on lable in static google map, https://maps.googleapis.com/maps

Anyway to overcome the 5 custom icon urls per request?

点点圈 提交于 2019-12-10 19:38:03
问题 From the Google Image API documentation 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 I have more than 5 custom icons per request, maybe up to 40. Is there a way to overcome this? Is it possible to use sprites in static maps to overcome this? 回答1: Here's how I got around this: You probably already know how, and depending on your source it's going to be different anyway, but collect

Static Maps: Drawing polygons with many points. (2048 char limitation)

不羁的心 提交于 2019-12-10 05:49:58
问题 Because there is a limitation to 2048 characters in the get request, you are not able to generate an image with Google Static Maps which contains a polygon with a great number of polygon points. Especially if you try to draw many complex polygons on one map. If you use Google Maps API, you will have no problem - it works very well! But I want to have an image (jpg or png)... So, is there any opportunity to create an image from the Google Maps API? Or any way to 'trick' the 2048 char