Skip to content

Adding Vector Layers

John Deck edited this page Jun 1, 2016 · 3 revisions

Adding Vector Layers to BerkeleyMapper

It is easy to add any KMZ, KML, or GeoJSON file to the layer options on BerkeleyMapper. As long as the file is discoverable on the internet, simply add a layer element to the gisdata section of the configuration file. You can use any layer that uses decimal degree coordinates and the WGS84 datum for mapping. Finally, you can add any number of layers of your choosing to the file.

Here are a few examples:

<gisdata>
     <layer title="Test GEOJson" legend="1" active="1" url="http://ucjeps.berkeley.edu/">
          <![CDATA[https://raw.githubusercontent.com/BNHM/berkeleymapper/master/test.json ]]>
     </layer>
     <layer title="California counties" legend="1" active="1" url="http://ucjeps.berkeley.edu/">
          <![CDATA[ http://ucjeps.berkeley.edu/c_county.kmz ]]>
     </layer>
     <layer title="Jepson Ecoregions (California)" legend="1" active="1" url="http://ucjeps.berkeley.edu/">
          <![CDATA[ http://ucjeps.berkeley.edu/jepcodes-v7.kmz ]]>
     </layer>
</gisdata>