Table of Contents for
Mastering OpenLayers 3

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Mastering OpenLayers 3 by Gábor Farkas Published by Packt Publishing, 2016
  1. Cover
  2. Table of Contents
  3. Mastering OpenLayers 3
  4. Mastering OpenLayers 3
  5. Credits
  6. About the Author
  7. About the Reviewer
  8. www.PacktPub.com
  9. Preface
  10. What you need for this book
  11. Who this book is for
  12. Conventions
  13. Reader feedback
  14. Customer support
  15. 1. Creating Simple Maps with OpenLayers 3
  16. Structure of OpenLayers 3
  17. Building the layout
  18. Using the API documentation
  19. Debugging the code
  20. Summary
  21. 2. Applying Custom Styles
  22. Customizing the default appearance
  23. Styling vector layers
  24. Customizing the appearance with JavaScript
  25. Creating a WebGIS client layout
  26. Summary
  27. 3. Working with Layers
  28. Building a layer tree
  29. Adding layers dynamically
  30. Adding vector layers with the File API
  31. Adding vector layers with a library
  32. Removing layers dynamically
  33. Changing layer attributes
  34. Changing the layer order with the Drag and Drop API
  35. Clearing the message bar
  36. Summary
  37. 4. Using Vector Data
  38. Accessing attributes
  39. Setting attributes
  40. Validating attributes
  41. Creating thematic layers
  42. Saving vector data
  43. Saving with WFS-T
  44. Modifying the geometry
  45. Summary
  46. 5. Creating Responsive Applications with Interactions and Controls
  47. Building the toolbar
  48. Mapping interactions to controls
  49. Building a set of feature selection controls
  50. Adding new vector layers
  51. Building a set of drawing tools
  52. Modifying and snapping to features
  53. Creating new interactions
  54. Building a measuring control
  55. Summary
  56. 6. Controlling the Map – View and Projection
  57. Customizing a view
  58. Constraining a view
  59. Creating a navigation history
  60. Working with extents
  61. Rotating a view
  62. Changing the map's projection
  63. Creating custom animations
  64. Summary
  65. 7. Mastering Renderers
  66. Using different renderers
  67. Creating a WebGL map
  68. Drawing lines and polygons with WebGL
  69. Blending layers
  70. Clipping layers
  71. Exporting a map
  72. Creating a raster calculator
  73. Creating a convolution matrix
  74. Clipping a layer with WebGL
  75. Summary
  76. 8. OpenLayers 3 for Mobile
  77. Responsive styling with CSS
  78. Generating geocaches
  79. Adding device-dependent controls
  80. Vectorizing the mobile version
  81. Making the mobile application interactive
  82. Summary
  83. 9. Tools of the Trade – Integrating Third-Party Applications
  84. Exporting a QGIS project
  85. Importing shapefiles
  86. Spatial analysis with Turf
  87. Spatial analysis with JSTS
  88. 3D rendering with Cesium
  89. Summary
  90. 10. Compiling Custom Builds with Closure
  91. Configuring Node JS
  92. Compiling OpenLayers 3
  93. Bundling an application with OpenLayers 3
  94. Extending OpenLayers 3
  95. Creating rich documentation with JSDoc
  96. Summary
  97. Index

Preface

As in every other computer-related field, the Web has also become a determining factor in GIS. In this new trend, with some client-based knowledge, we can easily publish our maps and layers on the Web. However, as technology rapidly develops, we can now perform some more serious GIS-related work on the Web as well. With enough browser capabilities and client-side computational power, an even newer trend has emerged from the Web-based GIS world: WebGIS. This new trend researches the possibilities of deploying powerful GIS applications on the Web, making the most general workflows of a spatial analyst possible on a browser in a platform-independent manner.

Thanks to OSGEO, OGC, and other initiatives, companies, individuals, and the open source philosophy have made a quick and great impact on this brand new field. Consequently, there is a wide palette of open source applications and libraries to work with and build upon. One of the most original and robust web mapping projects is OpenLayers. This library debuted a brand new, cutting-edge technology with a major version change. OpenLayers 3 is capable of things that we could not even imagine a few years ago.

An unplanned consequence (we could probably call it externality) of its powerful capabilities is the added difficulty of using it and a steep learning curve. The twisted version of a famous quote also states: with great power comes great complexity. Creating simple maps and deploying simple web mapping applications is easy with OpenLayers 3; however, if we need something more advanced, we need more stable and in-depth knowledge of the library. Gaining this knowledge is a great journey, which Mastering OpenLayers 3 is designed to start you on and aid you through.

What this book covers

Chapter 1, Creating Simple Maps with OpenLayers 3, guides you through the process of creating a simple map with the library. It also discusses some key concepts of OpenLayers 3, an effective way of using the API documentation, and a method to debug broken code.

Chapter 2, Applying Custom Styles, shows you how you can use CSS and JavaScript to customize the appearance of your application. It discusses which parts of the library can be styled with CSS and those that can be styled with JavaScript. It provides some methods for you to use to create a custom style.

Chapter 3, Working with Layers, introduces you to layer management. In this chapter, you will learn how to modify the layer stack, what the most common and useful operations you can perform with layers, and essentially, how to build a complete layer tree.

Chapter 4, Using Vector Data, shows you various vector formats and operations. You will learn a lot about geospatial features. You will read, write, modify, and style vector layers, attributes, and geometries.

Chapter 5, Creating Responsive Applications with Interactions and Controls, guides you through the various controls in OpenLayers 3. You will learn how to use the available controls effectively and build your very own.

Chapter 6, Controlling the Map – View and Projection, discusses some essential views and projection-based concepts. You will learn how to modify the view, use extents dynamically, and use custom projections.

Chapter 7, Mastering the Renderers, is a bit of a specialized chapter. You will take a look at how rendering works in OpenLayers 3 and how you can modify these rendering mechanisms. There will be some examples using Canvas and the WebGL HTML technologies, ranging from novice to expert skill levels.

Chapter 8, OpenLayers 3 for Mobile, shows you how to create responsive applications for desktop and mobile browsers at the same time. You will be able to make some mobile-based considerations and create a mobile-friendly OpenLayers 3 application by the end of this chapter.

Chapter 9, Tools of the Trade – Integrating Third-Party Applications, introduces some other tools into your workflow, making the development of your application more efficient and enjoyable. You will get some tips about some very useful third-party applications and libraries, which can be easily integrated with OpenLayers 3.

Chapter 10, Compiling Custom Builds with Closure, shows you how to build your own version of OpenLayers 3. Along with the custom building process, you will learn how to bundle your own application with the library and generate a custom API documentation automatically.