Questions tagged [cartography]

127 questions
3
votes
0 answers

How do I handle legend boxes with tmap library?

Please, consider the following example: library(tmap) data("World") tm_shape(World) + tm_polygons("HPI") This gives me the following map: My problem is the legend. The legend boxes that show the colors are squares that are directly next to each…
coleuch
  • 31
  • 5
3
votes
2 answers

Polar/Stereographic map in R

I am trying to produce a sterographic map similarly to this: What I am trying to do is to add: Coordinates Graticule lines This can be in both base R or with ggplot2. Any help is appreciated. My attempts so far library(rgdal) library(raster) …
Philippe Massicotte
  • 1,321
  • 12
  • 24
3
votes
0 answers

Merge/join geometries with TopoJSON Client

Is it possible, using TopoJSON Client to merge/join geometries. So, for example, this: {"type":"Topology","objects":{"areas":{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","properties":{"common":"S B","class":"range…
dbj44
  • 1,919
  • 2
  • 24
  • 45
3
votes
2 answers

Cartography constraints with TopLayoutGuide

I have a view which I want to look like this: |---------------| | | <- navBar |---------------| | | <- topView |---------------| | | | | | | |---------------| Everything I want…
Nat
  • 12,032
  • 9
  • 56
  • 103
2
votes
1 answer

Placing limits on edge of VegaLite map

I'm using VegaLite and VegaDatasets to show a Mercator projection of the world map, and plot a point at a specific latitude and longitude. So far, this works to produce the map: data = DataFrame(x=[-45], y=[35]) scale = 100 world =…
AaronJPung
  • 1,105
  • 1
  • 19
  • 35
2
votes
1 answer

OpenLayers creating a complex style (polygon with a hole and a stroke on one side)

There was a difficulty in creating a complex polygon style. The wording is as follows: the polygon should be drawn as a polygon with a hole and a stroke on the outside. In a difficult (as it seems to me) way, I made drawing a polygon with a…
luzhskij
  • 31
  • 6
2
votes
1 answer

How to create State & district level map in using GADM and ggplot?

I am using Covid data & looking to plot State & district level Indian data on map. I have State, District Name of India along with Cases but do not have needed lat, long for them. I came across this so post How to map an Indian state with districts…
ViSa
  • 1,563
  • 8
  • 30
2
votes
1 answer

Is there any way to limit the size of the circle while it is being drawn in leaflet-geoman?

As you may know, in leaflet-geoman there's a function called "drawCircle" that can let you draw a circle having a pivot in the center and expanding the radius with the mouse. For my usage, I wanted to limit that feature WHILE the circle it's being…
2
votes
2 answers

Colorado mis-plot

I'm trying the R cartography package. Had to work to find a US state shapefile that would like to work with the cartography stuff - many seemed too big, etc.. I seemed to get everything going well, but the state of Colorado…
James Holland
  • 1,102
  • 10
  • 17
2
votes
1 answer

D3 cartography: lon/lat circles in wrong place on map (projection)

I have a question about D3 cartography. I am working on a little project and I am new to D3. I have started out from this example: http://bl.ocks.org/mbostock/5914438 Instead of the showing the state-mesh, I would like to show circles on the map in…
user10575146
2
votes
1 answer

Data model for meridians and parallels

I'm thinking about some suitable model for storing meridians and parallles. Meridians and parallels should be kept as lines. Possible models: A) "Topologic" model Each point stores pointer to north, south, east and west points. class Point { …
Robo
  • 311
  • 5
  • 10
2
votes
1 answer

R: Counting how many polygons between two

I was trying to recreate a map showing how many municipals are you away from Cracow: and to change the city from Cracow to Wrocław. The map was done in GIMP. I got a shapefile (available here: http://www.gis-support.pl/downloads/powiaty.zip). I…
AAAA
  • 461
  • 6
  • 22
2
votes
1 answer

How to apply polygon tint bands in Leaflet?

The image shows a tint band (aka shapeburst fill) applied to a polygon shapefile in QGIS. I've been paging through leaflet documentation trying to find something similar without success. Is there a method to apply a tint band similar to the…
Borealis
  • 8,044
  • 17
  • 64
  • 112
2
votes
1 answer

D3JS TopoJSON map of Australia: projection accurate but no country rendered

I am generating a TopoJSON cartogram of Australia. I have successfully generated a GeoJSON map of Australia. I then converted that data to TopoJSON but cannot render the map. Things to note: I can accurately project lat/long points of cities…
Daniel
  • 433
  • 1
  • 3
  • 18
2
votes
0 answers

D3.js transition with canvas is not smooth when mapping

I'm trying to transition between two states of a d3.js map drawn on canvas and running into a little trouble: The transitions just aren't all that smooth. It's nothing like the transitions I've had with svg. I am using the pattern described by Irene…
Union find
  • 7,759
  • 13
  • 60
  • 111
1
2
3
8 9