Tag Info

Hot answers tagged

2

If you open the layer properties dialog and navigate to Labels -> Rendering there should be an option that reads "Merge connected lines to avoid duplicate labels". This has usually helped me in the past. However, I've still had times where the labels were still not cleaned up enough. I tend to store my data in PostGIS so in these cases I write a view which ...


2

If you reproject a raster with labels, you will obviously get squeezed labels. The only way to avoid this is to render the raster from vector data directly into the desired projection. You might want to look into mapnik, tilemill or maperitive to do this from Openstreetmap raw data (which is vector data). The R openstreetmap package only offers raster ...


1

The area will be in the units of your map projection. Default is EPSG:3857 -> meters map.getView().getProjection() will get your the information


1

The following code might seem a little long-winded as it represents a manual approach rather than relying on OpenStreetMap, but maybe it's of any help to you anyway. I took the country boundaries and the referring country labels from the wrld_simpl dataset (class 'SpatialPolygonsDataFrame', projected in EPSG:4326) that comes with maptools. The shapefile data ...



Only top voted, non community-wiki answers of a minimum length are eligible