maps

Can you use Apple's mapkit for a hybrid application?

≡放荡痞女 提交于 2019-12-11 05:35:03
问题 This web application is for Web and Android. I looked into others like Google, but they have limits. If you can use it can anyone point me to the documentation for it. Thanks. 回答1: 2019 Update: Apple now has a first-party JavaScript framework for using Apple Maps on the web: MapKit JS documentation. Original Answer: There is no officially supported way to use Apple Maps or MapKit on any platform but except iOS and macOS. That said, here is the JS source for implementing Apple Maps on the web.

Displaying custom text in a map snippet, Android

余生长醉 提交于 2019-12-11 04:53:29
问题 Ok, I've been at this all day now, I give up trying to get this myself! I've declared the map and location private GoogleMap googleMap; declared the location static final LatLng SECC = new LatLng(55.8607,-4.2871); generated the map googleMap=((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); built the marker Marker secc =googleMap.addMarker(new MarkerOptions().position(SECC) .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA)) .title("SECC")

SVG zoom issue in IE10 (expand more than SVG size)

风格不统一 提交于 2019-12-11 04:36:11
问题 Making map with d3.js with zoom option like here: http://bl.ocks.org/mbostock/4699541. While testing in IE10 found that map expands to whole page when it is zoomed. I tried to add extra <div> , but it didn't work. Any idea how to fix this? Now I have such code: var mapWidth = 500, mapHeight = 260; var projection = d3.geo.albersUsa() .scale(550) .translate([mapWidth / 2, mapHeight / 2]); var path = d3.geo.path() .projection(projection); var svgDiv = d3.select("body").append("div") .attr("width

Translating lat/lon coordinate on rotated/scaled maps

瘦欲@ 提交于 2019-12-11 04:23:53
问题 I need to indicate a lat/lon coordinate in an old map like this: http://www.davidrumsey.com/luna/servlet/detail/RUMSEY~8~1~3017~90020003:Topographical-Map-Of-The-City-and-C Projected on Google Maps: http://rumsey.geogarage.com/maps/g2784000.html I know the bounding box of the map as well as the dimensions of the image in pixels, but I couldn't figure out how to locate a lat/lon within this map. Upper left is (40.698291,-74.079051), Lower Left (40.659855,-73.979638), Lower Right (40.855232,-73

Which language is used in google maps frontend?

限于喜欢 提交于 2019-12-11 04:17:20
问题 I want to know this because I want to do something 'explorable' with just the mouse, with zoom-in and out, etc. 回答1: Google Maps are served to the user as HTML+CSS+JavaScript (except Street View, which uses Adobe Flash). If you want to build upon their excellent JS libraries, check out the Google Maps Javascript Reference - it's quite clear and includes many examples. Also check out these excellent tutorials - although they were written for GMaps API version 2, they can be easily modified for

Plotting routes that cross the international dateline using leaflet library in R

血红的双手。 提交于 2019-12-11 03:35:24
问题 I am interested in plotting the route from Waterloo to Taiwan using the leaflet library for R. The coordinates for the route was obtained using gcIntermediate function from geosphere. However, the route involves the crossing of the international dateline and hence the route gets cut-off at the edges of the map and is joined at the top with a straight line. Plot that I get: wrong map Plot that I want: ideal map There is a possibility that this problem could be solved using Google maps but is

Writing good Golang code

99封情书 提交于 2019-12-11 03:22:10
问题 I am in the process of getting to grips with the Golang way of doing things. I'd be much obliged to anyone who might be able to help with the following. First some sample code package main import ( "log" "os" ) func logIt(s string) { f, _ := os.OpenFile("errors.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) defer f.Close() log.SetOutput(f) log.Println(s) } type iAm func(string) func a(iam string) { logIt(iam + " A") } func b(iam string) { logIt(iam + " B") } func c(iam string) { logIt(iam + "

How to improve Windows Phone 8 Map control performance

随声附和 提交于 2019-12-11 02:57:15
问题 In my Windows Phone 8 app, I have map control which has collection of planes (pushpins). Map is defined in xaml like this: <maps:Map x:Name="Map"> <maptk:MapExtensions.Children> <maptk:MapItemsControl Name="Planes" ItemTemplate="{StaticResource PlaneTemplate}"/> </maptk:MapExtensions.Children> </maps:Map> Planes MapItemsControl is bind to collection (ObservableCollection) of objects in view model like this: private ObservableCollection<IPlane> _planes; public ObservableCollection<IPlane>

R: Mapping positive and negative numbers with different colors

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:26:09
问题 I'm a journalist working to map the counties where the number of black farmers increased or decreased between 2002 and 2012. I am using R (3.2.3) to process and map the data. I've been able to map the whole range of county-level gains and losses—which goes from negative 40 to positive 165—in a single color, but this makes it hard to see the pattern of gains and losses. What I'd like to do is make the losses all variations of a single color (say, blue), and render gains in variations of a

Can I launch an intent using only javascript in an Android browser?

余生颓废 提交于 2019-12-11 02:07:24
问题 I have a html page that shows the directions from the current location to a certain address. I would like to do the same but use the map app instead of showing it in a browser. When I use : <script> document.location = "geo:0,0?q=myaddress"; </script> That works fine but does not show me the route. What I read from this : Android Google Directions Service usable natively? with wrapper framework? Public transit/biking directions available? It should be possible using this code : String url =