官术网_书友最值得收藏!

Chapter 1. Creating Maps with Leaflet

Web-based mapping has evolved rapidly over the last two decades, from MapQuest and Google to real-time location information on our phones' mapping apps. There have been open source projects to develop web-based maps in the past, such as MapServer, GeoServer, and OpenLayers. However, Environmental Systems Research Institute (ESRI) includes the Flex and Silverlight APIs; these create web-based maps from their ArcServer services.

Over the last few years, JavaScript has taken the online mapping world by storm. In 2013, there was a JS.geo conference. The library at the center of attention was Leaflet. This is a JavaScript library used to create interactive, web-based maps. With it, you can create a simple map in as little as three lines of JavaScript, or you can create complex, interactive, editable maps with hundreds of lines of code.

Note

You can find more information on Leaflet at http://leafletjs.com.

This book assumes that you have a basic understanding of HTML and CSS, primarily of how to link external .js and .css files and how to name and size a <div> element. It also assumes that you have a working knowledge of JavaScript.

In this chapter, we will cover the following topics:

  • Tile layers
  • Vector layers
  • Pop ups
  • Custom functions / Responding to events
  • Mobile mapping
主站蜘蛛池模板: 拉萨市| 闵行区| 潮安县| 肇东市| 冀州市| 祁东县| 聂拉木县| 邹平县| 金川县| 图木舒克市| 高淳县| 上高县| 诸城市| 本溪市| 玉山县| 丽水市| 阿拉善盟| 隆回县| 哈尔滨市| 垫江县| 兴国县| 侯马市| 花垣县| 星座| 凤山县| 麻栗坡县| 汾阳市| 黑龙江省| 都昌县| 郯城县| 仁寿县| 昂仁县| 秭归县| 稻城县| 广宁县| 上高县| 通州市| 名山县| 乌拉特前旗| 称多县| 松原市|