maps

Is there a way to show/hide all the UI controls from google map after initialised?

╄→гoц情女王★ 提交于 2019-12-11 08:12:28
问题 There is an option on Google Maps disableDefaultUI set to false before loading google Maps. function initMap(){ var mapVar = new google.maps.Map(document.getElementById('map'), { zoom: 4, center: {lat: -33, lng: 151}, disableDefaultUI: true }); } Is there any way to hide all the controls using my mapVar variable once the map is rendered? Removing all controls from a google map - This question is about hiding the map on load. 回答1: There is a method to hide controls dynamically. mapVar

Combining additional data with Shapefile using GeoJSON and Gdal

孤街浪徒 提交于 2019-12-11 07:45:42
问题 I used Mike Bostock's great tutorial to make a simple map using downloaded shapefiles and processing them with GDAL into GeoJSON files. http://bost.ocks.org/mike/map/ I'm trying to build on this learning by taking a county-level shapefile map and marrying it with additional demographic data (CSV) so that I can load a single GeoJSON file and not have to use Javascript to merge the data at runtime. The goal is to have a county-level heatmap. The CSV file has an ID column that looks like this:

Getting grid view in google maps

我只是一个虾纸丫 提交于 2019-12-11 07:42:36
问题 Here I write some application, which shows my location. In the emulator I get this: But in device I see this: I connect through wifi, hence there's no problem with internet, it should have opened the map. What is the reason? How can I solve this? Thanks. Addition I just regenerated my API key with keytool. Got the same key I had before. Still the same view in the phone. 回答1: Its Google map API key issue you have to re-generate the API key using the keystore which you are using to export your

Clear Android Maps history programmatically

那年仲夏 提交于 2019-12-11 07:15:16
问题 I want to programmatically clear the history of the android maps (and navigation) application. I know there is a way to clear the browser history via Browser.clearSearches(getContentResolver()); and the corresponding permission: com.android.browser.permission.WRITE_HISTORY_BOOKMARKS and this works fine (2.2.). I couldn't find any way to clear the Maps-History though. Clearing the google/history online doesn't help either. There are some apps in the market that promote to do that, so there

iOS : App crashes when zooming out a map

时间秒杀一切 提交于 2019-12-11 07:14:52
问题 I have this situation where my app crashes when I zoom out the map. The problem arises because of the large number of annotations that I'm adding. Please have a look at my code below : - (void) plotUsersInMap { for (id<MKAnnotation> annotation in self.mapView.annotations) { [self.mapView removeAnnotation:annotation]; } NSUInteger count = //get total count NSLog(@"count * %d", count); for (int i = 0; i < count; i++) { NSNumber *latitude = //get latitude from json NSNumber *longitude = //get

Finding nearest neighbour (log, lat), then the next closest neighbor, and so on for all points between two datasets in R

こ雲淡風輕ζ 提交于 2019-12-11 06:57:39
问题 I have two datasets (csv format) of different lengths, both containing addresses as well as coordinates (log and lat). The both have this shape (example Dataset A): ID Address lat long 1 Lausitzer Strasse, 20/22, 2991, Lauta, Germany 51.46228 14.09522 2 Parkstrasse, 6, 2991, Lauta, Germany 51.4631141 14.1109184 3 Parkstrasse, 6, 2991, Lauta , Germany 51.4631141 14.1109184 4 Arndtstrasse, 27, 2991, Lauta, Germany 51.44664 14.10287 5 Goethestrasse, 13, 4746, Hartha, Germany 51.0965679 12

Nokia Here maps Navigation marker orientation

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:40:50
问题 I am using here maps for Turn-by-Turn Navigation in Android. I want to set the orientation of the marker in Navigation with the device orientation, in other words, I want to put device orientation info into here maps. Eg. My destination is towards east but I am facing west so Navigation should tell me to take 'U' turn and then proceed instead of start moving the pointer. So is there any api in Nokia here maps which does this or here maps does this inside the sdk while initializing Navigation.

Google Maps SetCenter function refusing to work

心不动则不痛 提交于 2019-12-11 06:15:46
问题 Trying to get my SetCenter Function to work but its not. Here is the code: $("#searchclick").click(function(){ var address = document.getElementById('searchbar').value; var geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var latitude2 = results[0].geometry.location.lat(); var longitude2 = results[0].geometry.location.lng(); var relocate = ("(" + latitude2 + ", " + longitude2 + ")");

Does any map api allow you to retrieve an exact area?

笑着哭i 提交于 2019-12-11 06:09:12
问题 I'd like a way to obtain a static map (an image file) based on two coordinates representing the desired rectangle or area. Suggestions? 回答1: If you need the map to precisely fit a particular area, it is unlikely that you'll be able to do it because most of the map API's have pre-designated zoom levels, and there probably won't be a zoom level that will allow you to perfectly fit your area. However, if you just need to get close, the Google Static Maps API provides a method to specify a

Coldfusion Google Maps and Jquery

点点圈 提交于 2019-12-11 05:52:55
问题 I have a google map which has dynamic markers and info boxes from a coldfusion query, i would like to be able to open the infowindow from a link on the page, i am using jquery for that but it is not working, what is the best way to do it. My Script: var map; var lastinfowindow; function initialize() { // Create an array of styles. var styles = [ { stylers: [ { hue: "#0b9cc1" }, { saturation: -20 } ] },{ featureType: "road", elementType: "geometry", stylers: [ { lightness: 100 }, { visibility: