maps

Can you programatically draw pins (Markers) by distance on a Custom Google Map route

本小妞迷上赌 提交于 2019-12-11 13:09:08
问题 When going to the Google website and signin in you can click on the “Maps” option from the toolbar menu at the top of the page. Click on the “My Places” button and choose “Create Map.” There you can select to trace a route, for example, this map: https://maps.google.com/maps/ms?msid=204898944445262337567.0004d03638beb43c93029&msa=0&ll=6.235122,-75.536343&spn=0.003088,0.004823 There's some know way that via JS (other languages are also welcome) , i could put a Pin (Marker) let say, 50 mts from

skobbler can i cache json data?

ⅰ亾dé卋堺 提交于 2019-12-11 12:13:58
问题 I'm using skobbler and skmaps for an app that download for offline use some regions of the map. I'm using the code i have found in the example of the framework package, in this case MapJSONViewController MapDownloadViewController I have implemented also the app delegate code, so every time i start the app, it download and parse a json of about 1mb - (void)mapsVersioningManager:(SKMapsVersioningManager *)versioningManager loadedWithMapVersion:(NSString *)currentMapVersion { [[XMLParser

how to get latitude and longitude boundary points of a suburb in google maps

江枫思渺然 提交于 2019-12-11 12:06:45
问题 When we type into google maps a suburb, it gives the subrubs region's boundary and the area in a particular colour. I would like to do this exact thing. But I need a way of getting the suburbs boundary latitude and longitude coordinates to draw my polygons. 回答1: I believe that Google does not expose the information about the suburb's boundary. You could store the points in boundary yourself, and display them with a Polygon. For the US, the Census Bureau has information about metropolitan

Leaflet.js - Set Opacity to LayerGroup with Slider

橙三吉。 提交于 2019-12-11 12:03:48
问题 I am displaying a leaflet base map. I am using an HTML5 slider to set the opacity to a layergroup but it is not working. I was wondering what I'm doing wrong. Thanks in advance! <h3>TF.Landscape</h3> <br><input type="button" value=" + " onclick="BaseMapAsLayerGroup('http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png')"> <br><input id="slide" type="range" min="0" max="1" step="0.1" value="0" onchange="updateOpacity(this.value)"> <hr> <div id="map" style="width: 800px; height: 600px"><

filtering d3 mercator map

≡放荡痞女 提交于 2019-12-11 09:55:27
问题 I am using Alan McConchie's block for a basic mercator map in d3. I've gotten it to work locally but am trying to filter the map to exclude certain countries (Antarctica for example). I don't want to simply remove it from the json file in case I ever need to bring it back and would rather find a non-destructive solution. From my digging, I think there is a way to filter using the code below in d3 based on country code but can't get it to work based on the example I'm using. Where do I include

Passing a pointer to objects method safely to google.maps.event.addListener

会有一股神秘感。 提交于 2019-12-11 09:19:43
问题 When passing a method pointer to google.maps.event.addListener , google maps seems to overwrite it's this reference with an instance of google.maps.Map , therefore it renders it useless if the methods references any of its prototype memebers internally. The long story short, if I pass myObj.MyMethod as an event callback, at the time of its execution MyMethod.this reference will be an instance of google.maps.Map rather then myObj . Is there any way to safely pass a method pointer to

Is it possible to get list of City between City A and City B in Google Maps

雨燕双飞 提交于 2019-12-11 08:49:37
问题 I want to get list of cities between City A and City B in Google Maps. Is it possible ? because I cannot figure it out how to do it when I look at the Google Maps API 回答1: No its not. You would have to do some reverse geocoding of a bunch of lat/lngs in between the cities. 来源: https://stackoverflow.com/questions/5774706/is-it-possible-to-get-list-of-city-between-city-a-and-city-b-in-google-maps

How to keep map orientation fixed towards North in android

北城以北 提交于 2019-12-11 08:45:15
问题 i want to keep my maps orientation always towards north .If the location changes towards left in driving mode ,It should always align it towards north. 回答1: Actually there are two orientations 1.North-up 2.Track-up i think these both are pretty explainable by their name itself. About the one you are asking is North-up . The exact implementation of North-up is given here 来源: https://stackoverflow.com/questions/55699977/how-to-keep-map-orientation-fixed-towards-north-in-android

How to handle missing values when using a reverse geocode function?

让人想犯罪 __ 提交于 2019-12-11 08:35:02
问题 I am currently working with data (N of 271,848) in R that looks as follows: Observation Longitude Latitude -------------------------------------- 1 116.38800 39.928902 2 53.000000 32.000000 3 NA NA 4 NA NA And I am using a reverse geocode function from the following post: Convert latitude and longitude coordinates to country name in R When I run the coords2country(points) line, I get the following error: "Error in .checkNumericCoerce2double(obj) : non-finite coordinates" My best guess is that

IOS: effect curl as maps in iPad

北城以北 提交于 2019-12-11 08:25:30
问题 In iPad maps there is curl effects; I have two questions: 1- what's the way to implement the same effect but I want a total curl and not partial 2- the flap at the bottom right, is only a graphic effect? or I can do it with code? 回答1: Have you looked at UIPageViewController? It was added in iOS5 and may lead you in the right direction. There's also a UIViewAnimationTransition which involves a curl, but it goes from one view to another - not really like the map does it. [UIView beginAnimations