maps

Google Maps Android zoom to country

谁都会走 提交于 2019-12-07 05:59:23
问题 I need the following implementation in Android: How to get Google Maps API to set the correct zoom level for a country? For those that do'nt want to click: How to zoom to a country by name in an Android application? Anyone got a pointer on how to accomplish this task? Edit: i guess i can parse this file. But then the question is: map.fitBounds() kind of method in Android? Thanks in advance 回答1: Ok ill answer my own question. I parsed the file above and used the following code to zoom to the

What is a reasonly priced map API solution for a startup?

烂漫一生 提交于 2019-12-07 05:49:32
问题 I've been developing my application with Google Maps and the wonderful rails plugin for it, expecting to find that when I put my app into production that the commercial licensing wouldn't be too expensive. Then I found out it cost $10,000/year, no exceptions so far. http://www.47hats.com/2009/07/google-maps-the-10k-gotcha/ That's not a terrible price to pay for unlimited usage when your site becomes successful, but for those of us trying to build something from the ground up, that's a hefty

Making a weighted USA map based on state-level data

最后都变了- 提交于 2019-12-07 05:31:28
问题 I have a list of state-level data with numbers for each state, e.g.: AL 10.5 AK 45.6 AZ 23.4 AR 15.0 ... and I want to make it into a weighted map, with darkest where the number is highest and lightest here it is lowest. Is there any software, or a java or python library that can generate such an image? 回答1: If you want to build it yourself, all you need is a good map, a set of positions for each state in this map, and flood fill. Using the map http://www.clker.com/cliparts/S/r/a/w/L/0/black

Open iOS6 Apple Maps app from a link in a UIWebView

有些话、适合烂在心里 提交于 2019-12-07 04:47:09
问题 If I display a link to a map in a webpage <a href="http://maps.apple.com/?q=Pricketts+Hill+Southampton+Hampshire+SO32+2JW&ll=50.913127,-1.191398">Location</a> it opens the native iOS6 Apple Maps app when clicked in the standard iPhone Safari browser. When I display the same webpage in a UIWebView inside my app and then click the link, my delegate method - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType

Control iOS gps input

一世执手 提交于 2019-12-07 03:59:12
问题 I have a problem with iPhone GPS ; i'm trying to record a track that is not on a street , but each time I pass near a street ( look at enclosed image ) it seems to me that the gps output is corrected with maps data ; Is there a way to disable this beahviour ? I need the precise point in my app 回答1: To avoid the "snap to road" feature, set the activityType to CLActivityTypeOtherNavigation . All other values (Other, Fitness, AutoNav) for activityType will snap to the nearest road. This was the

Any disadvantage to using arbitrary objects as Map keys in Java?

久未见 提交于 2019-12-07 03:50:33
问题 I have two kinds of objects in my application where every object of one kind has exactly one corresponding object of the other kind. The obvious choice to keep track of this relationship is a Map<type1, type2> , like a HashMap. But somehow, I'm suspicious. Can I use an object as a key in the Map, pass it around, have it sitting in another collection, too, and retrieve its partner from the Map any time? After an object is created, all I'm passing around is an identifier, right? So probably no

zoom mapView to a certain bounding box on osmdroid

柔情痞子 提交于 2019-12-07 03:27:21
问题 I want to use the zoomToBoundingBox method to zoom a map to a specific bounding box. The method does nothing but display the map on zoom level 0. In the mapView.java source code I found this: /** * Zoom the map to enclose the specified bounding box, as closely as possible. * Must be called after display layout is complete, or screen dimensions are not known, and * will always zoom to center of zoom level 0. * Suggestion: Check getScreenRect(null).getHeight() > 0 */ I checked getScreenRect

shapefile to produce a linked micromap in R

若如初见. 提交于 2019-12-07 03:14:27
I am trying to replicate the example provided in the micromap R package of a linked map with the poverty rate for the 50 US states. I am trying to achieve the same results with a Shapefile from Germany. Here is my code: library(micromap) library(ggplot2) setwd ('C:/Users/Jesus/Dropbox/linked maps/Chapter4') ger<-readShapePoly("germany3.shp") edPov<-read.csv('gerpoverty.csv') statePolys <- create_map_table(ger, 'VARNAME_1') head(statePolys) lmplot(stat.data=edPov, map.data=statePolys, panel.types=c('labels', 'dot','map'), panel.data=list('Id1','poverty',NA), ord.by='poverty', grouping=5, median

illegal state exception when trying to change a marker on a Google Maps v2 Api from a Google Cloud Messaging message

三世轮回 提交于 2019-12-07 02:37:20
问题 I am writing an android app and I have markers on a Google Map that should be changed to a position that I receive by GCM. I have a global static List in which I save the marker together with an id and the position. I can change the positions of the Objects in the list in my GCMBaseIntentService when I receive a message, but when I want to execute the following code: mMarker.setPosition(new LatLng(member.getLatitude(),member.getLongitude())); I get the following Exception: 01-13 18:52:38.118:

jvectormap region colors

不羁岁月 提交于 2019-12-07 01:27:44
问题 Im using the jvectormap plugin, and I am trying to set the colors of each of the regions on the map. However, after applying the code below the map is displayed but with no colours applied. It just shows the map in white. I have read multiple examples and questions on this matter, but I cant seem to get it to work for me. Example 1 of setting random colours on a map. Documentation Similar question to mine, however it doesn't solve my problem. jQuery('#mapDiv').vectorMap({ map: 'au_merc_en',