Questions tagged [maps]

A map is a visual representation of an area—a symbolic depiction highlighting relationships between elements of that space such as objects, regions, and themes. For the key-value data structure, use dictionary tag instead.

Modern maps

Many maps are static two-dimensional, geometrically accurate (or approximately accurate) representations of three-dimensional space, while others are dynamic or interactive, even three-dimensional.

Although most commonly used to depict geography, maps may represent any space, real or imagined, without regard to context or scale; e.g. brain mapping, DNA mapping, and extraterrestrial mapping.

Many, but not all, maps are drawn to a scale, expressed as a ratio such as 1:10,000, meaning that 1 of any unit of measurement on the map corresponds exactly, or approximately, to 10,000 of that same unit on the ground.

Maps of the world or large areas are often either 'political' or 'physical'. Topographic maps show elevations and relief with contour lines or shading. Geological maps show not only the physical surface, but characteristics of the underlying rock, fault lines, and subsurface structures.

Maps that depict the surface of the Earth also use a projection, a way of translating the three-dimensional real surface of the geoid to a two-dimensional picture. Perhaps the best-known world-map projection is the Mercator projection, originally designed as a form of nautical chart.

Aeroplane pilots use aeronautical charts based on a Lambert conformal conic projection, in which a cone is laid over the section of the earth to be mapped.

From the last quarter of the 20th century, the indispensable tool of the cartographer has been the computer. Much of cartography, especially at the data-gathering survey level, has been subsumed by Geographic Information Systems (GIS).

A complex problem when dealing with maps is to calculate the distance between two points. The simplest approach is to work as if the map was a simple plane and use Euclidean distance function. However, this might be inadequate, especially in the case when we are dealing with large distances. In that case the differences between the real shape of the planet and a plane will get more accent. A significant improvement over this is to calculate the distance between two coordinates using the Haversine formula, but even this might be imprecise in some cases where high precision is needed, due to the differences of altitude or other geometrical, or non-geometrical distance modificators, like speed limits on roads, closed borders of countries, travel costs, etc.

More info on Wikipedia

9449 questions
2
votes
1 answer

Comparing data in two excel files and write corresponding mappings in third file

I have a list of drug substances with corresponding IDs in two excel sheets coming from two different data sources e.g. Data from World health Organization: Data from another source looks similar but has different product IDs and additional…
serendipity
  • 852
  • 13
  • 32
2
votes
2 answers

R, tmap: Changing labels in view mode

I'm working on a map with tmap and i'm having some trouble changing labels in view mode as in here. I'm trying to change it to cities names column using name argument like: tm_shape(mymap, name = "city_name") + tm_polygons("Inad", palette =…
Alberson Miranda
  • 1,248
  • 7
  • 25
2
votes
1 answer

Openlayers how to handle map onclick and draw at the same time problem

I'm using tileWMS to get my layers from geoserver. So when I click the map, I get the feature info if click on the layer, but then if I draw let's just say polygon, if the point is on the layer, the click trigger on map will run as well. I've…
Reinhard
  • 65
  • 1
  • 5
2
votes
1 answer

gmplot API issue

i'm attempting to plot some items on a map using gmplot, my issue is that since the new google API changes it won't accept my API key? When I load the output I have the "for development purposes only" issue. Any help would be greatly…
BillyN
  • 185
  • 2
  • 10
2
votes
1 answer

Rotate map in Xamarin forms

I'm working with xamarin forms to create an app. I am using Xamarin.Forms.Maps and I want to center the map in one position and then rotate the point of view by keeping the center of the map. In other words, I want to rotate the compass (360…
Riccardo
  • 23
  • 7
2
votes
1 answer

How to manually control react-leaflet popups (via props) within a geojson layer?

I'm using react-leaflet to render a geojson feature collection that has points and linestrings: I was able to get the click and hover events on the actual features themselves to work just fine. But I'd like to be able to hover on a list item…
Kyle Pennell
  • 5,747
  • 4
  • 52
  • 75
2
votes
1 answer

How to shift coordinates in ggplot2 map for any arbitrary longitude range

I'm making a map using ggplot and I want to be able to center the map around the Pacific Ocean while plotting points on the map. It turns out I can do the map shifting by using the wrap option of maps::map. However, I'm not sure exactly how to…
Rec
  • 37
  • 4
2
votes
1 answer

What is the source and it's format for the data points plotted on this map from mapbox?

I found the below code in the MapBox website, I am unable to find out how exactly the data is received to plot the data-driven circles on the map. There is a url "mapbox://examples.8fgz4egr" present in the 'source' but what kind of data is it ? is…
ShashankAC
  • 1,016
  • 11
  • 25
2
votes
2 answers

How to implement interactive Map with HERE Maps API and resize it?

I'm setting up a Website as a small project and I'd like to add an interactive map by HERE Maps, taking up all available screen space, under my navbar. How do I include an interactive map from HERE maps? I've already tried Google Maps it worked fine…
zjarri
  • 45
  • 6
2
votes
2 answers

Javascript latitude and longitude to pixel on custom map

I have a list of stores described by their coordinates (latitude, longitude) and I need to parse them on my custom world map as markers (with css absolute positioning). Google map and other libraries (jVector map and similar) are not a solution.…
btb84
  • 241
  • 1
  • 3
  • 11
2
votes
2 answers

Compare cities by area in ggplot2 on map

I need compare ukrainian cities by area in ggplot2. But all of they plot in the same size. Can you help me? I use this code: library(ggplot2) cities <- read.csv("https://raw.githubusercontent.com/savchukidze/maps/master/cities.csv",…
2
votes
0 answers

Convert Lat/Long to Pixel coordinates

Im creating Android application where I need to draw polyline on bitmap. I got bunch off coordinates like X: Y: 57.567177, 25.383375 57.567391, 25.384218 57.568717, 25.382321 57.568159, 25.382033 Then I need want to…
Dandalis
  • 130
  • 9
2
votes
0 answers

Smoothing edges in a ggplot2 map - SpatialPolygonsDataFrame

I have downloaded maps from a database that I want to plot in ggplot. The maps are all SpatialPolygonDataframes in class. My code produced rugged edges, so I tried to use a ksmooth function to the object. That helped a bit, but I still get some…
pApaAPPApapapa
  • 385
  • 2
  • 4
  • 12
2
votes
2 answers

Flutter refresh map after come back from second screen

I have a Flutter app which in home screen I use google map. At the begin, I call Firebase to take the places which I have already input. Then the user can add a new place if double in the map this lead him to SecondScreen. The user input title,…
Filippos Ser
  • 366
  • 1
  • 6
  • 16
2
votes
1 answer

Sygic not showing current position nor displaying markers

i want to show the location indicator when the map is loaded and add a marker whenever the map is clicked but none of these seem to work ! protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
1 2 3
99
100