maps

Cached/offline maps for iPhone?

旧巷老猫 提交于 2019-12-12 12:02:01
问题 I'd like to use use maps in my application, so that there will be as less as possible traffic. Perfect solution would be caching of map slices. I know it's not possible with google maps (license). I took a look on OpenStreetMaps and it seems as good solution. The next: SDK. The only one I've found is from CloudMade. The problem is, I found no related API methods for caching/offline calls. Are there any alternative solutions? 回答1: You might find more information on the Route-Me project Wiki.

Google Maps Android API v2 - restoring map state

ぐ巨炮叔叔 提交于 2019-12-12 11:40:29
问题 I'm building a very simple map app using Google Maps Android API v2. As expected, when the user leaves and then returns to the app, any changes they've made in location, zoom, etc. are lost as the activity is destroyed and re-created. I know I can save the map's camera state programmatically (perhaps as values in shared preferences) in onPause() and restore it in onResume() , but does the API have any built-in mechanism for persisting map state between activity launches? 回答1: I don't think

Alaska and Hawaii not formatting correctly for County Choropleth Map in R

大兔子大兔子 提交于 2019-12-12 10:38:19
问题 I am trying to format a Choropleth Map of the United States to a specific color and unfortunately, when using scale_fill_brewer to change the color; only 48 of the states do (Hawaii and Alaska do not). Is it possible to know if I can implement the coloring to Hawaii and Alaska as well? library(choroplethr) library(choroplethrMaps) library(ggplot2) data(df_pop_county) county_choropleth(df_pop_county, title = "Title1", legend = "Top 20% of Index", num_colors = 9) + geom_polygon(aes(fill=value),

Updated world map for R “maps” package?

不打扰是莪最后的温柔 提交于 2019-12-12 10:37:30
问题 library(maps) 1> map.where(database="world",29.392089,53.592505) [1] "USSR" does anyone know how I can get an updated world map database to drive this function in the maps package? I need country names only for now, not detailed sub-national administrative information such as is available in at gadm.org. 回答1: Try wrld_simpl in the maptools package. require(maptools) data(wrld_simpl) plot(wrld_simpl) ## or subset based on the name plot(wrld_simpl[wrld_simpl$NAME == "Russia", ]) ## explore

How I can manipulate the DirectionsRenderer in google maps

ⅰ亾dé卋堺 提交于 2019-12-12 10:25:54
问题 I try to draw a route in google maps from an initial and final point, google gives me a route that I can modify the points of the streets, but if I want to cross a section as a shortcut where the map don't have a street, the map does not recognize it and don't take that route. Exits a way where I can shortcut streets? I upload the code of what I have and an image of what I try to do. Example where I want shorcut <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0,

KML layer does not always respond to clicks [ Google Maps API ]

我与影子孤独终老i 提交于 2019-12-12 09:57:28
问题 I am working on a project .jsp file, that displays 4 kml layers: gas pipes, gas sensors, valves, and areas. The problem is that I want to extract data from the placemark's description and use it, but when I click the placemark, sometimes it works, other it doesn't. And I simply can't see why.. I have created a JSFiddle example of my code. I've added 2 kml layers, one for pipes and one for sensors. Each pipe has multiple sensors( or at least one). I added the layers one after the other on

Add download offline map in Android with Here maps

懵懂的女人 提交于 2019-12-12 09:53:43
问题 I have already developed an Android Here map which has a simple map view but I need to add offline support to the app, how can I add it to my app in order to let the user download a specific country or area? Note that I implemented my app using the tutorial in the link below: https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps.html 回答1: See the Offline Maps section of the mobile sdk documentation. In particular, you might want to use the following methods of

Calculating shortest path on maps (Google Maps, Openstreetmaps, etc)

喜欢而已 提交于 2019-12-12 09:19:57
问题 I want to calculate shortest paths on some kind of already existing map API routes and then draw them. That being said, I need to be able to extract/get as more more data as possible (i.e. routes' coordinates) in order to be able to manipulate with it. My first thought was using Google Maps but as far as I understand, Google Maps API provides very little necessary data for my problem thus I won't be able to make any kind of accurate calculations. Also, existing Google Maps API's algorithms

Navigation apps with IntentChooser- it's the same query?

你。 提交于 2019-12-12 08:57:15
问题 I try to invoke the navigation from my applicatoin. I call with this query: String link = "geo:" + posInfo.getLatitude() + "," + posInfo.getLongitude(); Intent navigateIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(link)); Intent chooser = Intent.createChooser(navigateIntent, ctx.getString(R.string.navigate_intent_chooser_title)); ctx.startActivity(chooser); The intent chooser displays 2 apps: GoogleMaps and Waze. The navigation with Waze works perfectly but with Google maps it doesn't

How to make mixed path road type? (snap to roads and simple polyline) Google Maps API

北战南征 提交于 2019-12-12 06:59:09
问题 I need to draw the path, but the road has the flights on the way. So I want to make something like in my example, but I need to draw it on page init instant of a manual. But I don't know how to mix this two ways to draw maps (Polilyne and Snap to roads). It needs to works from an array of lat lng like that: var points = new google.maps.MVCArray([ new google.maps.LatLng(39.9042, 116.407396), new google.maps.LatLng(34.341574, 108.93977), new google.maps.LatLng(31.23039, 121.473702), new google