售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Mapbox Cookbook
Table of Contents
Mapbox Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to Mapbox
Introduction
Getting started with Mapbox
Data
Mapbox Editor
CartoCSS
TileMill
Mapbox Studio
API and SDK
Creating your own map
Getting ready
How to do it…
How it works…
Adding vector data
Getting ready
How to do it…
Creating a marker
Creating lines
Creating polygons
Modifying and deleting data
There's more…
Importing data
Editing imported data
Publishing your map
Getting ready
How to do it…
There's more…
Embedding a map in a self-hosted page
2. Mapbox Services
Introduction
Access tokens
Finding the Map ID
Accessing styled tiles on your map
How to do it…
How it works…
There's more…
Fetching a single tile
Creating static images
How to do it…
Creating the static map
Adding a marker
Finding coordinates for an address
How to do it…
How it works…
Query parameters
Returned results
Finding an address from coordinates
How to do it…
Finding an address on a map click
How to do it…
How it works…
Getting directions
How to do it…
How it works…
3. TileMill and Mapbox Studio
Introduction
Understanding TileMill
Understanding Mapbox Studio
Introducing CartoCSS
How CartoCSS works
Filters
Comparisons
Working with colors
Styling lines
Styling polygons
Styling labels
Attachments
Styling a map with TileMill
How it works…
How to do it…
Downloading the map data
Inspecting the downloaded files using QGIS
Importing downloaded data into TileMill
Styling data using CartoCSS
Styling a map with Mapbox Studio
How it works…
How to do it…
Styling a map
There's more…
Publishing your base map on your server with PHP
How it works…
How to do it…
Exporting a map from TileMill
Converting an MBTiles database into regular PNG files
Creating a tile server PHP project
Publishing your base map on your server with Node.js
Getting ready
How to do it…
Creating a tile server Node.js project
4. Mapbox.js
Introduction
Creating a simple map
How to do it…
How it works…
Changing map properties programmatically
How to do it…
Panning the map programmatically
Zooming the map programmatically
Zooming to a map region programmatically
How it works…
Working with base layers
How to do it…
Switching between layers
Adding markers and popups
How to do it…
Adding a basic marker with a popup
Creating markers using the geocoder
How it works…
Clustering markers to improve our map
How to do it…
Creating markers
Creating a simple polyline and polygon
Getting mouse coordinates
How to do it…
How it works…
Working with controls
How to do it…
Adding a zoom control to the map
How it works…
Adding interactivity to your map with UTFGrid
How to do it…
Creating an interactive map using TileMill
Creating an interactive map using Mapbox.js
How it works…
Creating a choropleth map
How to do it…
How it works…
Creating a heat map
How to do it…
How it works…
5. Mapbox.js Advanced
Introduction
Adding external data to your map
How to do it…
Loading external data
Loading a GPX file
How it works…
Adding a time dimension to your map
How to do it…
Importing the data to CartoDB
Using torque to visualize data over time
Comparing two maps at the same time
How to do it…
Comparing two maps
Adding a WMS layer from GeoServer to your map
How to do it…
Adding WMS images from GeoServer to your map
Installing GeoServer
Creating a layer
Displaying WMS layers using Mapbox.js
Adding ArcGIS layers from a server or from online
How to do it…
Adding ArcGIS layers from the server or from online
Adding Fusion Tables to your map
How to do it…
Acquiring a Fusion Tables API key
Creating a Fusion Table
Adding Fusion Tables data to your map
Adding Foursquare data to your map
How to do it…
Getting Foursquare data to your map
6. Mapbox GL
Introduction
Integrating your project with Mapbox GL
How to do it…
Creating the Xcode project file and linking it to Mapbox GL
Creating a basic map using Mapbox GL
How to do it…
How it works…
Switching between locations programmatically
How to do it…
How it works…
Adding markers to the map
How to do it…
How it works…
There's more…
Switching map styles
How to do it…
There's more…
One more thing…
How it works…
Loading GeoJSON and drawing a polyline
How to do it…
How it works…
Drawing polygons on the map
How to do it…
How it works…
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜