maps

How to get Country name by given Postal Code (ZIP) on iOS SDK

我是研究僧i 提交于 2019-12-10 22:09:03
问题 Is it possible to get the country name by giving the postal code of the user? I looked at the Core Location Framework, but it doesn't look to work the other way around by given the Postal Code and finding the Country name. The Core Location framework (CoreLocation.framework) provides location and heading information to apps. For location information, the framework uses the onboard GPS, cell, or Wi-Fi radios to find the user’s current longitude and latitude. I hope there is a class on iOS SDK,

How to plot correct colors in R maps library

别来无恙 提交于 2019-12-10 21:56:15
问题 I am trying to plot specific colors for specific countries using R maps library. I can fill in the colors but they are not correctly associated with their respective countries. I wonder if someone could have a clue why? My data frame is «filld» and has 3 columns: the first is the countries names, the second is just some numeric data, and the 3rd is the color: countries toplot color 1 Argentina -1 red 2 Armenia -1 red 3 Australia -1 red 4 Bahrain -1 red 5 Botswana -1 red 6 Belgium -1 red 7

Mapsforge analog for iphone

会有一股神秘感。 提交于 2019-12-10 21:53:42
问题 I need some framework for my iPhone app, which is using maps. Now these maps are raster images and I'd like to optimize my app by doing vector maps instead. I know that my colleagues from Android development had used Mapsforge framework for this purposes. Is there any analog of this library for iPhone? I need framework that could quickly render vector maps using hardware acceleration, caching maps, offline rendering and (optinal) be cross-platform. Any suggestions? Thanks! 回答1: Have a look at

Google Maps event listeners not working properly in a Javascript 'for' loop

筅森魡賤 提交于 2019-12-10 20:59:32
问题 I'm trying to set up a Google map instance where some content is dynamically generated for a set of points. Right now, I'm using a for loop to loop through any number of latitude and longitude values and create markers are those points on the map. I'm trying to add info windows that correspond to each of these markers and have them pop up when you click the markers. However, I'm having a little bit of trouble. It looks like my for loop that creates basically everything is working without fail

Bing Map V8 Cluster Pass real time data

拥有回忆 提交于 2019-12-10 19:52:02
问题 I am just starting with Bing map. Gone through few examples in official documentation. Example from Bing map V8 official documentation <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=GetMap' async defer></script> <script type="text/javascript"> var map, clusterLayer; function GetMap() { map = new Microsoft.Maps.Map('#myMap',{ credentials: 'Your Bing Maps Key', zoom: 3 }); Microsoft.Maps

Google maps tiles doesn't load

浪子不回头ぞ 提交于 2019-12-10 19:45:33
问题 I'm developing a simple Google Maps app for Android. I'm using Eclipse and an Android Virtual Device. When running the app, no tiles are shown, and I get the message "Couldn't get connection factory client". I've read and looks like it is a bug, but some people say they got their apps working. I've tried using API 1.6, 2.1, 2.2 over my virtual device (2.2) and none of them work. I got my API key from the MD5 obtained from the debug.keystore. How can I solve the problem? I just found people

mapping location to a time zone

别说谁变了你拦得住时间么 提交于 2019-12-10 19:02:05
问题 I need to get the time zone for a given address/location. Assume that the address/location can be reverse geocoded (using google) to a lat/lng if necessary. This means that I may not have a zip code. I was really hoping that google provided some kind of API for this, but it seems that they don't. At a minimum you can google search for "time in washington, dc" and get the time/TZ -- but then I'd have to screen scrape that which is not fun :( I know there are databases available that map

Google Maps API v3: Turning user input coordinates to latlng?

别来无恙 提交于 2019-12-10 17:05:33
问题 I'm new with Google Maps. I'm trying to turn coordinates a user inputs to move a marker I have on my map to those coordinates. For instance, if the user inputs 50.75, 74.1 the marker will pan to that coordinate. Unfortunately, I couldn't get it to work. Here's my function: function moveMarker() { var Markerloc = document.getElementById("Markerloc").value; var newLatlng = new google.maps.LatLng(Markerloc); marker.setPosition(newLatLng) } Here's my HTML code: <input type="text" id= "Markerloc"

Is it possible to use markers on street view in android Google maps API v2?

无人久伴 提交于 2019-12-10 16:27:47
问题 I implemented the street view in my app and i want to see the map markers in street view, it is possible? 回答1: Nowadays Android Google maps API v2 can´t add markers, this option is only available for iOS. Markers within Street View https://developers.google.com/maps/documentation/ios/streetview#markers_within_street_view 回答2: It's possible to add markers to StreetView in Android via a custom implementation. You should put a transparent SurfaceView on top of your StreetView , Pass panorama.

Android - display in the map only the markers included in a determinate area

隐身守侯 提交于 2019-12-10 16:14:46
问题 I have my application with a map. In this map i put a marker in the current location of the device. I also add a circle around the marker as follow: Circle circle = mMap.addCircle(new CircleOptions() .center(latLng) .radius(400) //The radius of the circle, specified in meters. It should be zero or greater. .strokeColor(Color.rgb(0, 136, 255)) .fillColor(Color.argb(20, 0, 136, 255))); The result is something like this: here's an example of the result! I have a database with some positions