Skip to Content
Practical GIS
book

Practical GIS

by Gábor Farkas
June 2017
Beginner
428 pages
10h 2m
English
Packt Publishing
Content preview from Practical GIS

Creating a simple map

The first map we create should be the road map we created in GeoServer. We have to set up a blank map and load a WMS layer in it. Once it's working, we can bind the map to the appropriate button:

  1. Create a new map with the L.map function and save it to a variable. It needs the ID of the container element as a string, while it can additionally accept other parameters bundled in an object. For now, let's provide a center and a zoom parameter. The center is an array of two WGS 84 coordinates (latitude and longitude), while the zoom is a positive integer. Supply center coordinates that fit our map. We can get them either from QGIS or from Google Maps by centering the map on our study area and noting down the coordinates ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GIS For Dummies®

GIS For Dummies®

Michael N. DeMers
Advanced Surveying: Total Station, GIS and Remote Sensing

Advanced Surveying: Total Station, GIS and Remote Sensing

Satheesh Gopi, R. Sathikumar, N. Madhu
GIS, 2nd Edition

GIS, 2nd Edition

Patrick McHaffie, Sungsoon Hwang, Cassie Follett

Publisher Resources

ISBN: 9781787123328Supplemental Content