maps

Google maps in hidden div

对着背影说爱祢 提交于 2019-12-17 16:30:41
问题 I have a page with two tabs. The first tab has photos and the second a google map. The problem is that the google map is not completely drawing because it is in a hidden div. So I moved the initialize() function to the href of the map tab using onclick(). This works the first time you click on it but when you return to the photos tab and then go back to the map tab the map only partially draws. If you click the map tab a second time it works perfectly. Any ideas? tabs javascript: <script type

Using the android Google Maps API v2 as a viewer of offline tiles: is it possible?

ε祈祈猫儿з 提交于 2019-12-17 15:51:14
问题 The Google map component (com.google.android.gms.maps.GoogleMap) allows one to render custom tiles (OpenStreetMap or other). These tiles can be on the device and available offline which is what I am doing by extending TileProvider. Doing this in conjunction with a: mMap.setMapType(GoogleMap.MAP_TYPE_NONE); I am not pulling any data from Google map servers and the component can reasonably be expected to work without an internet connection. (I emphasize here that I am not trying to cache Google

Meteor.js and Google Maps

孤者浪人 提交于 2019-12-17 15:42:43
问题 i already included maps api into my project. Now i want to show some markers on my map. I initialse my map in a startup function: Meteor.startup(function() { ... var mapOptions = { zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; Map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); Than i set the center of the map on rendering Template.mapPostsList.rendered = function() { var p2 = Session.get('location'); Map.setCenter(new google.maps.LatLng(p2.lat, p2.lng)); var

How to show our own icon in BlackBerry Map?

我的未来我决定 提交于 2019-12-17 14:52:18
问题 I want to know how to use our own logo to show the particular place in BBMap? Can anyone knows how to do this ? 回答1: BlackBerry Map It's not possible in Blackberry Map to show custom icon for POI. Things you can include in Location on Blackberry Map: The latitude of the location * 100,000. South is negative. The longitude of the location * 100,000. West is negative. The label to be displayed beside the location. The description displayed when the BlackBerry smartphone user selects details.

Convert latitude and longitude coordinates to country name in R

穿精又带淫゛_ 提交于 2019-12-17 10:58:18
问题 I have a list of latitude and longitude coordinates, and wish to find out which country they all reside in. I modified an answer from this question about lat-long to US states, and have a working function, but I run into the problem that the worldHires map (from the mapdata package) is hideously out of date and contains a lot of obsolete countries such as Yugoslavia and the USSR. How would I modify this function to use a more modern package, such as rworldmap ? I have only managed to

Convert latitude and longitude coordinates to country name in R

守給你的承諾、 提交于 2019-12-17 10:58:02
问题 I have a list of latitude and longitude coordinates, and wish to find out which country they all reside in. I modified an answer from this question about lat-long to US states, and have a working function, but I run into the problem that the worldHires map (from the mapdata package) is hideously out of date and contains a lot of obsolete countries such as Yugoslavia and the USSR. How would I modify this function to use a more modern package, such as rworldmap ? I have only managed to

Representing Points on a Circular Radar Math approach

江枫思渺然 提交于 2019-12-17 10:04:44
问题 I am coding a simple app that can show you what friends are around you, but not in the normal map but on a really circular radar like UI: (http://i.imgur.com/9Epw0Xh.png) Like this, where i have every users latitude, longitude, and of course my own being the center. I also measure the distance of every user to position them so the data I know is their lat, longitude and distance to me. For mathematical reasons let's say the radar is 100 pixels radius, I can distance them by the distance from

How to show more than one location in Blackberry MapField?

混江龙づ霸主 提交于 2019-12-17 07:41:10
问题 I can able to show one location using co ordinates or longtitude and latitude but i dont know how to show more than one location in the blackberry MapField.If is it possible pls share with me how to do this.. 回答1: Same way as How to show our own icon in BlackBerry Map?. Pass an array of Coordinates into custom MapField, define a bitmap for location point and paint it for each Coordinate in custom MapField paint() method. Remember to zoom in/out CustomMapField for best fit of all location

How can I quickly estimate the distance between two (latitude, longitude) points?

自闭症网瘾萝莉.ら 提交于 2019-12-17 06:28:24
问题 I want to be able to get a estimate of the distance between two (latitude, longitude) points. I want to undershoot, as this will be for A* graph search and I want it to be fast . The points will be at most 800 km apart. 回答1: The answers to Haversine Formula in Python (Bearing and Distance between two GPS points) provide Python implementations that answer your question. Using the implementation below I performed 100,000 iterations in less than 1 second on an older laptop. I think for your

Detect when Android v2 maps has loaded

假装没事ソ 提交于 2019-12-17 06:10:03
问题 I'm writing a app that would take 9 snapshots of the map around an area when the user presses a button. In loop, using this to move and save: map.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(mStartLat + (mMultiOffsetX + mWidth), mStartLng + (mMultiOffsetY + mHeight)), mZoom)); map.snapshot(this); and in onSnapshotReady: final String fileName = Environment.getExternalStorageDirectory().getAbsolutePath() + String.format("/test_maps/map_%f_%f.png", Double.valueOf(mStartLat +