FAQ Database Discussion Community


Remove country borders in maps::map(“world”, …) in R

r,maps
I'm looking for a world map using map() from the maps package showing land only, to plot lines over. I've tried various combinations of arguments, but am always left with country borders. Setting lwd=0 for example throws the message invalid value specified for graphical parameter "lwd", and the below shows...

How to add markers via GeoJSON to an existing layer, without having to reset it

maps,mapbox,geojson
I'm using mapbox. I have a layer that contains my markers: map = L.mapbox.map(id, map_id...) map.featureLayer # this is the layer containing all my markers What I want is to add markers to this layer without removing the existing ones. But I don't want to just create a marker via...

Best library/API to build an Android app making use of offline maps

android,geolocation,maps,google-maps-android-api-2,mapbox
I'm looking for the best library/api solution to use to build an application that uses a mapping system with completely offline map data. I would like to be able to show the user a map that is completely offline, how much storage would be needed for the offline maptiles? could...

Fixing “You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”

ruby-on-rails,api,maps
I've included two below scripts in my header and I get the error "You have included the Google Maps API multiple times on this page. This may cause unexpected errors." <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js key=************"></script> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script> When I remove either script, I get additional js errors. How can I...

Map shows multiple markers (overlays)

android,maps,openstreetmap,marker,osmdroid
I'm using osmdroid API for maps in my project. Below is the code I wrote to put an overlay(marker) on selected location. If I click on map to select any location, it puts an overlay there, but if I tap on map again to select any new location, it shows...

Null Pointer Exception while getting current location using osmdroid

android,maps,openstreetmap,osmdroid
I'm using osmdroid AIP to get current location and display a overlay at that point but I get following error. Error is caused by String provider = mLocMgr.getBestProvider(criteria, true); but I don't know what's wrong. My Activity having error public class LSLocationSender extends Activity implements LocationListener, MapViewConstants { protected MapView...

maps, rails 4.2, javascript, mouse-over, only working once (or twice) .. then after reload

javascript,ruby-on-rails,maps
I did a map on rails 4.2. Javascript to add pins, and some information when mouse-over the pin, like so; marker = new google.maps.Marker({ position: position, map: map, title: "title_x", .. also, i added an infowindow for each marker, like so: google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infoWindow.setContent("contentx");...

Angular google Map will not render and throws no errors

javascript,angularjs,maps
I am new to angular but I think I have everything right. It is a pretty simple setup. Here is the app var appLocations = angular.module('locations', ['uiGmapgoogle-maps']).config(function(uiGmapGoogleMapApiProvider) { uiGmapGoogleMapApiProvider.configure({ // key: 'I am not providing a key', v: '3.17', libraries: 'weather,geometry,visualization' }); }); appLocations.controller('LocationsController', function($scope, $http) { $http.get('/json/locations/') .then(function(res){ $scope.locations...

How to add Hawaii and Alaska to spatial polygons in R?

r,maps,gis,maptools,sp
How can I add Hawaii and Alaska to the following code (taken from Josh O'Brien's answer here: Latitude Longitude Coordinates to State Code in R)? library(sp) library(maps) library(maptools) # The single argument to this function, pointsDF, is a data.frame in which: # - column 1 contains the longitude in degrees...

Adding paths to a Google Maps (API v3)

javascript,google-maps-api-3,maps
I'm trying to use the Google Maps API v3 to display a map on my website. I want it to display some bus lines of my city. It should look like a colored path (e.g. a red path for line 1) which displays the trip the bus makes. This is...

Street mapping with Champlain

python,maps
i'm developing a Gtk Program with Python. I have to display a map and some nodes on this map, which walking around on streets. To achieve this I am using libchamplain. Displaying the map was quite easy. But is there a way to check if a Coordinate (lat, lon) points...

maps r plot distances with color on these

r,google-maps,maps
perhaps you have an idea and could help me. I have following data: lon.x <- c(11.581981, 13.404954, 9.993682, 7.842104 , 11.741185) lat.x <- c(48.135125, 52.520007, 53.551085, 47.999008, 48.402880) lon.y <- c(8.801694, 7.842104 , 11.581981, 13.404954, 7.842104 ) lat.y <- c(53.079296,47.999008, 48.135125, 52.520007, 47.999008) pred <- c(1,2,3,4,5) data <- data.frame(cbind(lon.x, lat.x,...

How to replicate marker position on map loop Leaflet JS

javascript,maps,leaflet,markers
I'm using Leaflet JS to build a custom map (with custom tiles), it loops East to West. I've added a couple layers of markers and polygons (to indicate a route in the map) and each marker has pop up date within it. I want to duplicate the marker/polygon layers in...

Using the MapQuest geocoding API to get the correct zoom to an area

javascript,maps,geocoding,leaflet,mapquest
I use the MapQuest geocoding API and the Leaflet library to create a map and let users go to a specific location. Can I use this API or library to get the correct zoom levels or the bounds for a specific area like a city, country, state, etc... I haven't...

angular js maps call: url failed to load webpage the url can't be shown

javascript,angularjs,maps,ionic-framework
I'm trying to make a maps call from my ionic framework app. In my html file I use: <a ng-href="maps://?q={{dest.Latitude}},{{dest.Longitude}}">Maps</a> <div>{{dest.Latitude}},{{dest.Longitude}}</div> In my controller the data for dest looks like this: {"Latitude":12.34567, "Longitude":1.23456} The latitude and longitude are shown in the div correctly. But I get an error if I...

Demarcate city areas with Google Static Maps API

google-maps,maps
I'm using Google Static Maps API to generate images from cities. I first tried to get only the outline of the requested city (see example 1 below), but I noticed that's not possible with google API, so I would like to demarcate the specific city, filling it's region with some...

Print out keys and values of a map

java,maps,iteration
Ive created a map with keys of type integer and values are Sets of Strings. I have populated the map with some test data, and now need to write a method that prints out the contents of the map like "key: value, value, value" Im assuming iterating through the map,...

how do i add a custom image marker in here maps?

javascript,maps,markers,here-maps
how can add a custom image marker in here map, i can add markers in map by using this code: var map, standardMarker; map = new nokia.maps.map.Display(mapContainer, { center: [lat, log], zoomLevel: 12, components: [new nokia.maps.map.component.Behavior(), new nokia.maps.map.component.ZoomBar(), new nokia.maps.map.component.TypeSelector()] }); standardMarker = new nokia.maps.map.StandardMarker(map.center); map.objects.add(standardMarker); ​ but the problem...

proper implementation of invalidateSize() to display mapbox/leaflet on mobile device

mobile,maps,leaflet,mapbox,window-resize
I started a question about a bootstrap leaflet map not displaying on mobile devices How can I fix bootstrap leaflet map mobile display? Since then I have used a simple mapbox template for a map and with invalidateSize() as outlined here https://www.mapbox.com/help/why-map-cropped-hidden-shown/ But still no luck getting the map to...

How do I open the Maps App in Apple Watch with a specific Location?

ios,iphone,swift,maps,watchkit
Right now, I have an Apple Watch App, that displays a map with a few locations. Playing around with my Apple Watch, I realized that if you tap on the map, it opens up the Apple Watch Maps. My main question is, how do I set it so that, when...

how to get route distance in windows app

windows-phone-8,maps,bing-maps,bing-maps-api
I am Creating a windows mobile app using bing map.I have latitude and longitude of my starting point and destination points. I am getting the aerial route but my requirement is to find the routing distance i.e the actual distance by road which is shown in my map between two...

Centerpoint of the visible GeoJSON path with Leaflet

javascript,maps,leaflet
I am working on a project that is displaying a map centered on a selected country and the neighboring countries, all with GeoJSON. I'm wondering if there is a way to get the centerpoint of the visible portions of a country? Part of the project involves adding country labels as...

Leaflet: Are custom zoom levels possible?

javascript,maps,leaflet
Is it possible to have intermediate (2.5, 3.5, 4.5, etc.) zoom levels on a Leaflet map that is using Stamen Toner-lite tiles? This is the code I have so far that calculates the zoom level: leafletmap.on('zoomstart', function (d){ targetZoom = leafletmap.getZoom(); //Grabs whatever current zoom level is targetZoom = targetZoom...

R - How to get one “summary” prediction map instead for 5 when using 5-fold cross-validation in maxent model?

r,maps,prediction,cross-validation,maxent
I hope I have come to the right forum. I'm an ecologist making species distribution models using the maxent (version 3.3.3, http://www.cs.princeton.edu/~schapire/maxent/) function in R, through the dismo package. I have used the argument "replicates = 5" which tells maxent to do a 5-fold cross-validation. When running maxent from the...

When I've to use the HEREMAPS REST API

api,maps,nokia,nokia-maps,here-maps
I'm new in here maps and don't know 1- When I've to use the REST API instead of JavaScript API as I know the REST API returns only xml or json object! Does it mean I'll have to use the JavaScript API to do visual effects?!!! 2- also I don't...

Match color with numbers Raster Map R

r,maps,raster
I would like to match color to raster class. Assume I have the following colors and these rasters: library(rasterVis) mycolors=c("darkred","red3", "orange", "yellow", "lightskyblue", "royalblue3","darkblue") s <- stack(replicate(6, raster(matrix(runif(100), 10)))) levelplot(s, layout=c(3, 2), col.regions=mycolors, index.cond=list(c(1, 3, 5, 2, 4, 6))) I would like to classify the rasters in "s" such that...

User selecting item in map

c++,maps
I am currently writing a command line game program where I have stored the categories and solutions in a map<string, vector<string>>. The key value is the category and the vector is a vector of solution strings. I would like to prompt the user to select a category however I am...

Value of selected country amcharts

maps,selected,amcharts
When I select country on map, how can I get a value of this country and pass it to variable? Thanks a lot! I used amcharts.com Or it can be another solution? I you know how to choose country on map, i'll be very grateful!

Add Cluster Items onClick over Expandable List View

android-activity,maps,cluster-computing,expandablelistview,onclicklistener
First of all I'm sorry for my bad English :X Iam quite a newbie in Android App development and Iam about to develope an app which gives the user informations like free park-places in town. The app is based on Google Maps. My Problem: My app starts and shows a...

STL map with 2 values

c++,stl,maps
I'm writing a program that reads in a textfile of movies and their ratings movies.txt 7 Happy Feet 4 Happy Feet 5 Pirates of the Caribbean 3 Happy Feet 4 Pirates of the Caribbean 4 Flags of our Fathers 5 Gigli 1 The first value (7) is for a for...

mapping all of Latin America with rworldmap

r,maps,geospatial,spatial
I am trying to plot some data for different countries in Latin America using the rworldmaps package. When including mapRegion='latin america', Mexico is cut off...is there any way to include Mexico other than by overriding using ylim and xlim? Thanks. library(rworldmap) df <- NULL df$country <- c("Brazil","Mexico","Argentina") df$code<-c("BRA", "MEX", "ARG")...

Do embedded GeoJSON styles work with Mapbox GL?

javascript,maps,mapbox,mapbox-gl-js
Is it possible to utilize the built-in properties attribute of a GeoJSON data source to automatically style a Mapbox GL map without having to pre-specify a style? I have a use case where I dynamically load in GeoJSON LineString data that needs to be a particular color and it already...

Maps in fragment crashes in sliding drawer when clicked twice on Maps item

maps,fragment,sliding,drawer
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.map_fine_tech, container, false); fragment = getFragmentManager().findFragmentById(R.id.map); return rootView; } ...

Variable point needs to be final

android,google-maps,maps
I am getting an error that says "Variable 'point' is accessed from inner class, needs to be declared final". The error is on the last "point" on.position googleMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() { @Override public void onMapLongClick(LatLng point) { googleMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() { @Override public void onMapLongClick(LatLng point) { AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);...

ggplot2 facet plot of shapefile polygons produces strange lines

r,ggplot2,maps,lattice,shapefile
I'm working to produce a facet/lattice plot of choropleth maps that each show a how different model runs affect one variable being mapped across a number of polygons. The problem is that the output graphic produces strange lines that run between the polygons in each plot (see the graphic below)....

Java, get cities based on a chosen state

java,android,maps
I have two spinner boxes in an Android application. The first spinner box is a string array of the different states in the United States. I want the second spinner to populate with the cities within the selected state. How can I go about getting a list of those cities?...

Android Google Maps v2 clickable marker title

java,android,google-maps,maps
I have a Google map on my app. The markers are already clickable, but I'm looking for a way to make the title's clickable to do an action (like going to a places "description" page). Here is what I mean public class MapFragment extends Fragment { private GoogleMap map; @Override...

How to get more accurante results with Maps api with less characters

android,json,google-maps,google-maps-api-3,maps
when requesting to this url: http://maps.google.com/maps/api/geocode/json?address=Mad&sensor=false&language=EN Which (I try) means: Give me the points which addresses "contains" Mad, It returns me with some locations that have nothing to do with what I'm searching. The goal is to build an addres autocomplete on Android. This example i'm giving you is when...

Google Maps Api, GeoJson and InfoWindow

javascript,google-maps,maps,geojson
Can someone tell me why the InfoWindow doesn't appear at first click? After the first click it always works fine... I'm just loading data from a geojson file and try to adding a click event. There are some problems anchoring an infowindow to a MVCObject. var anchor = new google.maps.MVCObject();...

Label on Marker doesn't wokrs

javascript,google-maps,google-maps-api-3,maps,google-maps-markers
I've followed some guides but label isn't displayed on my map. I use Ionic. This is my code (in map controller): var myLatLng = new google.maps.LatLng(lat,lon); var stylesMap = [ { featureType: "poi", elementType: "labels", stylers: [ { visibility: "off" } ] } ]; var myOptions = { zoom: 15,...

Get bounding polygon coordinates from Google Maps

google-maps,google-maps-api-3,maps,geocoding
Does Google Maps(or any other provider[commercial/free]) provides API(s) that can return bounding polygon coordinates of place search? I'm not talking about sw-ne coords only, rather, actual boundary that perfectly defines the shape of a place. Place could be city, or more fine-grained identifiable place? I don't know much about Google...

Using std::unique_ptr inside a map as a key

c++,maps
I am using Visual Studio 2012. I have a map that looks like this: std::map<std::string,std::map<std::unique_ptr<sf::Sound>,std::unique_ptr<sf::SoundBuffer>>> listSoundContainer; I'm trying to insert data like this: std::unique_ptr<sf::SoundBuffer> soundBuffer(new sf::SoundBuffer()); if (soundBuffer->loadFromFile("assets/sound/" + _fileName) != false) { std::unique_ptr<sf::Sound> sound(new sf::Sound(*soundBuffer)); typedef std::map<std::unique_ptr<sf::Sound>,...

How to use markerOptions in fragment to get MyLocation using LatLng() Method

android,maps,fragment
I am working on app where i have to show no of Marker on map.I have inflate map through fragment and now want to get my location by using markerOptions().but that show the GoogleMap null. public class MapFineTech extends Fragment { GoogleMap googleMap; double getlatitude,getlongitude; String latitude_mString,longitude_mString; MapView mapView; ViewGroup...

Device physical back button does not work when locate any location on google map fragment

android,maps
What i did: I had added a map fragment on my screen to locate the entered location from edittext box to the map. Before locating the location, if i press back button, it works smooth. But after locating the location on google map fragment, onBackPressed does not work. What i...

Highmaps Group Countries and Hover, Follow link on Click

svg,maps,highmaps
As the topic states, I would like to group countries to create my own "areas". It works nearly, but I don't know whats wrong. Here is my map: http://jsfiddle.net/wiesson/oktajn6e It is mostly derived from the examples, but it does not work. If I set "allAreas" to false, it is okay...

WPF Bing Maps places push pin at incorrect position

c#,wpf,maps,bing-maps,bing
I have followed the tutorial at https://msdn.microsoft.com/en-GB/library/hh709044.aspx to learn how to place pins on the map. It all works apart from that the pins are consistently being placed about 3cm below my mouse pointer. I'm not sure what I'm doing wrong. Heres my xaml code <Grid HorizontalAlignment="Stretch" Margin="6,6,6,6" Name="gpsGrid" VerticalAlignment="Stretch">...

Creating maps in R just like the way rworldmap does but for specific country with provinces

r,plot,ggplot2,maps
I use the rworldmap package with WorldBank Data and I enjoy it. I want to plot maps for Iran, with data related to each province. What are the steps to do that? I know we can plot maps like that in R for some countries like US but not for...

Path Finding Application Algorithm

algorithm,maps,dijkstra,shortest-path,backtracking
I am trying to develop an application that maps my office (exactly like application like google maps, showing path from one seat to another). From what I have read so far, algorithms like Dijkstra's, or Back Tracking can be used to solve the problem. But these algorithms require something of...

Auto Refresh Traffic Data Google Maps Api V2 Android

android,google-maps,maps,google-maps-android-api-2
I would like to have the app run in the background and check traffic data every hour. Is this possible? I can't seem to find a solution to refresh traffic data in intervals without opening the app. Thank you....

GPS Icon wont dissapear when remove updates is called from onPause Android

android,location,maps,locationmanager,android-location
Hi i am having a issue where the location icon wont dissaprear after calling location.removeUpdates. I have followed this solution. public class GPSTracker extends Service implements LocationListener { // Get Class Name private static String TAG = GPSTracker.class.getName(); private final Context mContext; // flag for GPS Status boolean isGPSEnabled =...

Getting location coordinates from Address

ios,maps,google-geocoder
The user will be prompted enter his address in a textfield and in the backend I want to get the location coordinates of the address. I’m using geocoding service from google but not any of their APIs. I read somewhere in their document that “use of the geocoder for any...

Leaflet polygon with fuzzy outline

javascript,css,svg,maps,leaflet
I am looking for a way to have a fuzzy/blur/gradient outline of a leaflet polygon. This should help make country outlines more simple (currently, when you zoom in to a svg representing a country, it gets ugly/inaccurate). I was thinking about attaching CSS attributes to the svg similiar to this:...

highlight all routes (google maps) within a specific circle radius

javascript,google-maps,google-maps-api-3,maps
I am using Google Maps Javascript API v3, What i would like to do is to highlight all routes within a specific circle radius when choosing a point in the map (point coordinates and circle radius are input parameters). I tried to use the Directions Services and i did manage...

Alternatives to Google Directions API

api,google-maps,routing,maps
Which is the best alternative (if any) to the Google Directions API? Preferrably, it should be some solution I can host, but I can consider to use an online service less restritive than Google API. These are the limits for Google Directions Business: Google Maps API for Business customers may...

How to highlight marker on click with leaflet and jQuery Birdseye

jquery,maps,leaflet,foursquare,markers
I'm very new with leaflet, trying to duplicate the function on foursquare, highlight the clicked marker and reset it to the original maker when map is clicked or if another marker is selected and highlighted. I'm using jQuery Birdseye (http://ajb.github.io/jquery-birdseye/) to learn and get some kind of interactive map going....

Create a unique URL for linking to data pulled from a database [closed]

javascript,html,sql,google-maps,maps
Is it possible to create a unique URL to link to information that is called and displayed from a database? [I am struggling to articulate this question, so any suggestions for revising it are welcome.] Specifics: I have a page that includes an embedded map and related information about each...

3 Dimensional map

maps,bukkit,dimensional
I have this code: File folder = new File(getDataFolder() + "/messages"); String[] fileNames = folder.list(); for (int i = 0; i < fileNames.length; i++) { configManager.loadConfigFile("messages/" + fileNames[i]); String lang = fileNames[i].substring(8, fileNames[i].length() - 4); YamlConfiguration messagesConfig = configManager.getConfig("messages/" + fileNames[i]); messagesConfigs.put(lang, messagesConfig); } private static Map<String, Map<String, String>> messages...

google maps marker array?

android,maps,marker
Hi guys and girls if any :)) this piece of code creates a null pointer exception I would like to put a couple of markers in MO LAT = Double.parseDouble(PartA); LNG = Double.parseDouble(PartB); LatLng Standort = new LatLng(LAT, LNG); MO[y] = mMap.addMarker(new MarkerOptions() .position(Standort) .icon(BitmapDescriptorFactory.fromResource(R.drawable.kreis))); builder.include(MO[y].getPosition()); Array type expected -...

python folium map markers do not show on map despite data

python,twitter,dictionary,geolocation,maps
i have a code which im following from the book practical data science cookbook in which they used folium and twitter to plot twitter followers geo-location. The code runs well and at the end it outputs a html file which is supposed to have markers of where your followers are....

Android indoor directions with Google api

android,maps,directions
I currently have an app which displays a map fragment and can display navigation to a given point. The indoor maps is enabled and the building I'm trying to use does have indoor maps, but it only navigates to outside the building even when the transport mode is set to...

Moving position of country names in Rworldmap

maps
is there a way to move the position of the names of countries on maps generated with rworldmap? For instance, in the example below I would like to move the names of the central american countries so they are easier to read. If not, I'd welcome suggestions on alternative ways...

Passing Variable Through a Page into a script

php,json,variables,maps
OK, Here is my problem. I have a few pages that display points on a map. These points correspond to lat and long in a database of photos that have been uploaded for work that was completed by my employees. I want to display only the points that correspond to...

Points on the same line

c++,geometry,maps,runtime-error
I was doing a practice question and it was something like this,We are given N pair of coordinates (x,y) and we are given a central point too which is (x0,y0).We were asked to find maximum number of points lying on a line passing from (x0,y0). My approach:- I tried to...

How to avoid SEGMENTATION ERROR for the code below?

c++,segmentation-fault,maps,dynamic-programming
I'm getting Segmentation error for the code below. This is a solution to the SPOJ problem "Coins". I went through How to avoid SIGSEGV? and I made sure not to use uninitialized pointers, not to access out of memory etc (given n ≤ 109). I know that an array a[1000000000]...

How to derive a new Immutable map in scala out of an existing Map

scala,maps
I thought this was going to be relatively straightforward. So I will explain: I have a Map as under: This what I tried in the REPL scala> val entriesList = List(("tPolicyId" -> "MasterCard"), ("SSN" -> "0"), ("MasterCard" -> "3")); entriesList: List[(String, String)] = List((tPolicyId,MasterCard), (US SSN,0), (MasterCard,3)) I then convert...

Convert String into latitude and longitude

android,geolocation,maps
I want to implement a google map inside of my app and I'm trying to convert a String into lat and long, something like "USA New York -> 2345.423423". I've searched on the internet and I've found a lot of examples to convert lat and long into String, but I...

Adding a pin annotation to a map view on a long press in swift

ios,swift,annotations,maps,mkmapview
I'm trying to make an iPhone app which requires users to be able to long press on a place on a map view to drop a pin there. Does anybody know how this is done? The behaviour is observable in apple maps when you long press on the screen. It...

Advice around persisting app data

android,sqlite,set,maps,persistence
I'm looking for some advice on the best approach in storing some data within my app. The app data is structured around a series of Set and Map collections (these collections hold primitive as well as simple object data types). I want to store the state of these various collections...

how to clear leaflet map of all markers and layers before adding new ones?

javascript,google-maps,maps,leaflet
i have the fallowing code: map: function (events) { var arrayOfLatLngs = []; var _this = this; // setup a marker group var markers = L.markerClusterGroup(); events.forEach(function (event) { // setup the bounds arrayOfLatLngs.push(event.location); // create the marker var marker = L.marker([event.location.lat, event.location.lng]); marker.bindPopup(View(event)); // add marker markers.addLayer(marker); }); //...

UI tool to create geojson/topojson shapes?

javascript,maps,geojson,topojson
I want to create interactive historical maps (e.g. world borders in 1914). Obviously I will need shapefiles in geojson/topojson format for borders which do not exist anymore. Even if some of these shapes exist (I have not found any), I will need to create some on my own. Does anybody...

Inserting into a vector of maps

c++,templates,vector,insert,maps
I have a vector of maps that I need to insert into. This is the part of my code that is giving me my errors. Note that RGB is a struct holding 3 unsigned chars, red, green, and blue. When I try to insert, such as int he code below,...

Create interactive webmap with markers in R using Shiny, Leaflet and rCharts

r,maps,leaflet,shiny,rcharts
I am trying to create an interactive webmap in R to display storms using Shiny, Leaflet and rCharts (the structure is loosely based on the http://ramnathv.github.io/bikeshare app). The idea is that the user selects one storm name at a time (df$Name) and the markers for that storm (lat/long) are displayed...

Is it possible to show the Google Maps Navigation without a map?

android,google-maps,maps
I want to do an android app that searchs (in Google Maps or another maps service) a walking route between two points and starts the navigation, but instead of showing the map I want to show a big arrow with the direction. Can this be done? I have experience in...

Maps not being shown in webview- iOS

ios,uiwebview,maps
I have a button in my view. On clicking it leads to a webview in which I want to show the maps. The code I am using is: - (void)viewWillAppear:(BOOL)animated{ NSString *url = [@"http://maps.apple.com/?q=" stringByAppendingString:self.address]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; NSURLRequest *metricsRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; _webViewForLocation.delegate = self; [_webViewForLocation loadRequest:metricsRequest];...

Why Google Maps can not be displayed?

android,json,maps,android-manifest,google-maps-android-api-2
I had a problem like this in logcat : 01-27 18:27:12.403: E/AndroidRuntime(3938): FATAL EXCEPTION: main 01-27 18:27:12.403: E/AndroidRuntime(3938): java.lang.RuntimeException: Unable to start activity ComponentInfo{in.wptrafficanalyzer.locationmarkermysql/in.wptrafficanalyzer.locationmarkermysql.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragment 01-27 18:27:12.403: E/AndroidRuntime(3938): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) 01-27...

R maps - Filter coordinates out when plotting points in map

r,maps,coordinates
I have a large data frame of events locations (longitude, latitude). See a sample below: events <- structure(list(lat = c(45.464944, 40.559207, 45.956775, 44.782831, 45.810287, 35.913357, 43.423855, 45.2359, 45.526025, 41.91371, 46.340833, 40.696482, 42.367164, 41.913701, 41.89167, 46.046206, 41.108316, 45.514132, 45.688118, 37.090387, 43.446555, 41.913712, 46.614833, 45.368825, 41.892168), lon = c(9.163453, 8.321587, 12.983347, 10.886471,...

What is wrong in this loop to plot R maps? [duplicate]

r,plot,maps
This question already has an answer here: ggplot's qplot does not execute on sourcing 1 answer today while trying to make a R script to plot several maps in a folder, I came to a situation that I can't understand and/or fix. I wrote the following code, that would...

How can I center the GMSMapMarker view in a coordinate

ios,google-maps,maps,markers,gmsmapview
Is there a way to center the orange arrow (a GMSMapMarker) in a coordinate, changing the view frame or something? I'm using Google Maps for iOS. I can rotate the view with an angle, but I want to set the view's center in a custom coordinate....

Filtering or matching in nested list

list,nested,maps,elixir
My data structure was original a big Map. But I read that we should not use too big maps, to not run out of atoms. So my new data structure looks like that. countries = [[{'name', 'Germany'}, {'code', 'DE'}], [{'name', 'Austria'}, {'code', 'AT'}]] I want to make a filter_by/3 method,...