Using the BRC Atlas Library

Show a Channel Islands map with inset for Alderney

This example demonstrates using a user-defined inset with the BRC Atlas library, using the Channel Islands as an example. You can consult some other examples, example-1.html and example-3.html. To learn about some of the techniques used to create it.

The techniques used here but not described in those examples will be documented in time. Until then, you can view the source and download the various data files, images etc to work out how it is put together.

Also look at the BRC Altas API documentation.

var map = brcatlas.svgMap({
  id: "map",
  mapTypesKey: 'Standard tetrad',
  transOptsKey: 'CI1',
  transOptsSel: {
    CI1: {
      id: 'CI1',
      caption: 'Channel Islands',
      bounds: {
        xmin: 519000,
        ymin: 5443500,
        xmax: 580000,
        ymax: 5487000
      },
      insets: [{
        bounds: {
          xmin: 543500,
          ymin: 5505000,
          xmax: 563000,
          ymax: 5510000
        },
        imageX: -50,
        imageY: -50
      }]
    },
  },
  insetColour: 'black',
  boundaryGjson: './ci-32630.geojson',
  gridGjson: '',
  proj: "ci",
})
map.setIdentfier('./example-irish-hectads-1.csv')
map.redrawMap()