Posts with the Gis tag

How to add titles to a layer control box in a Leaflet map in R

GIS R Leaflet

28 May, 2021

– Leaflet's layer control boxes allow you to select, show or hide different layers. But there's no default parameter to supply a title to the box. Fortunately this is an easy fix in R with a bit of JavaScript.



Leaflet maps in Django with model-backed geoJSON data

Python Django GIS Leaflet geojson

2 December, 2020 (updated 9 April, 2021)

– We can create Leaflet maps with simple location data, using only the default Django models and a home-made geoJSON serialiser. Let's avoid bloated geographical libraries and see how lightweight we can get our maps to be.



Geographical sorting is not a thing

GIS Shiny R

16 August, 2020

– In this tutorial, we run through some little-known but extremely attractive options for making life as hard as possible for your app's users.



Click to zoom in on polygon in Leaflet maps with Shiny

GIS Shiny R Leaflet

12 July, 2020

– An easy way to add further interactivity to Leaflet maps rendered in R Shiny apps is to enable zoom-to-point functionality for your polygons. There currently isn't an out-of-the-box solution for this, but it's pretty easy ...



GIS in R using the Google Maps API

GIS R

5 December, 2019

– Everyone loves maps. If you're tired of seeing maps without New Zealand in them, why not learn how to build your own? We'll be querying the Google Maps API to build a base map, and then using some publicly available data to visualise ...