maps

Phonegap - Open Navigation Directions in Apple Maps App

荒凉一梦 提交于 2019-12-18 03:33:35
问题 I have two variables - Destination and Source - and, using Phonegap, I'm trying to use jQuery to open the external iPhone Apple Maps app with directions. The code I'm using looks like this: var url = 'http://maps.apple.com/?q=daddr='+destination+'&saddr='+source; window.location = url; Whenever I click the relevant button however, it opens a new view in-app with Google directions as a webview, and I cannot return to the original app. How can link be opened instead with the iOS default map

android maps: how to determine map center after a drag has been completed

拟墨画扇 提交于 2019-12-18 02:51:00
问题 Is there a way through the android maps API, where I can detect the map center after pan animation has completed? I want to use this information to load markers from a server dynamically. Thanks BD 回答1: I also have been looking for a "did end drag" solution that detects the map center at the moment exactly after the map ended moving. I haven't found it, so I've made this simple implementation that did work fine: private class MyMapView extends MapView { private GeoPoint lastMapCenter; private

Google map API v2 is not working

二次信任 提交于 2019-12-18 01:14:09
问题 I am trying to run sample code mention here : Google Maps Android API V2 Sample code but i am getting error NoClassDefFound. Below is my logcat. Can any one help me to solve it. Any help is highly appricated Thanks 12-04 18:04:18.854: E/AndroidRuntime(1801): java.lang.ExceptionInInitializerError 12-04 18:04:18.854: E/AndroidRuntime(1801): at java.lang.Class.newInstanceImpl(Native Method) 12-04 18:04:18.854: E/AndroidRuntime(1801): at java.lang.Class.newInstance(Class.java:1319) 12-04 18:04:18

Voronoi diagram polygons enclosed in geographic borders

自古美人都是妖i 提交于 2019-12-17 22:50:57
问题 I am trying to create Voronoi polygons (aka Dirichlet tessellations or Thiessen polygons) within a fixed geographic region for a set of points. However, I am having trouble finding a method in R that will bound the polygons within the map borders. My main goal is to get accurate area calculations (not simply to produce a visual plot). For example, the following visually communicates what I'm trying to achieve: library(maps) library(deldir) data(countyMapEnv) counties <- map('county', c(

Google Maps iOS SDK Integration not loading maps

混江龙づ霸主 提交于 2019-12-17 22:39:41
问题 I am using Google maps iOS SDK in my iPhone application. I am showing a place mark on the map and it is working fine in my iPhone device using my apple developer account certificates . But when i sent build to testing team using a different Enterprise Apple developer account certificates (Enterprise account), the maps are not loading up, it only shows the Place mark on a blank screen with the maps loading up. I have also tried on my iPhone devices with the enterprise apple developer account,

How to divide a map into zipcodes using d3, javascript, and a json file?

谁说胖子不能爱 提交于 2019-12-17 19:25:18
问题 I'm trying to create a nyc map with zipcode areas I can color in based on census data (like color an area red if majority white or blue if majority nonwhite). I am simply using one of the shape files I found online from here ( https://data.cityofnewyork.us/Business/Zip-Code-Boundaries/i8iw-xf4u/data ). I converted the shp file to a geojson and then a topojson file. I'd appreciate it if someone could look at my code below, and let me know how I can go about doing this. Code: <!DOCTYPE html>

R - Plotting netcdf climate data

旧城冷巷雨未停 提交于 2019-12-17 19:17:11
问题 I have been trying plot the following gridded netcdf file: "air.1999.nc" found at the following website: http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.html I have tried the code below based on answers I have found here and elsewhere, but no luck. library(ncdf); temp.nc <- open.ncdf("air.1999.nc"); temp <- get.var.ncdf(temp.nc,"air"); temp.nc$dim$lon$vals -> lon temp.nc$dim$lat$vals -> lat lat <- rev(lat) temp <- temp[nrow(temp):1,] temp[temp==-32767] <- NA temp <- t(temp) image(lon,lat

android maps circle overlay, dynamically change radius?

╄→гoц情女王★ 提交于 2019-12-17 18:27:05
问题 I have a MapView in my app and am drawing a few circle overlays on this map. Everything is working fine, but when I zoom on the map, the overlay radius does not change. I have tried searching forums and google for a solution but could not find one that worked for me. Does anyone have any ideas? Here is my code: HelloGoogleMaps.java (main activity) package com.adam.maps; import java.util.Iterator; import java.util.List; import android.content.Context; import android.location.Location; import

Alternative Map API's (Like Google Maps) [closed]

馋奶兔 提交于 2019-12-17 17:34:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Trying to shortlist online map tools that can be used for a business . So far I've got: Google Maps Bing Maps Yahoo Maps Openstreetmap.org Map quest Can anyone think of any others? 回答1: To get the best possible answer to this question I combine all given answers on this question. Alternatives to google maps api:

Get latitude/longitude from address

余生长醉 提交于 2019-12-17 17:26:12
问题 How can I get latitude and longitude from a full address (street, city, etc.) input by the user, using the iPhone SDK 3.x? 回答1: Here's an updated, more compact, version of unforgiven's code, which uses the latest v3 API: - (CLLocationCoordinate2D) geoCodeUsingAddress:(NSString *)address { double latitude = 0, longitude = 0; NSString *esc_addr = [address stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *req = [NSString stringWithFormat:@"http://maps.google.com/maps/api