Merge pull request #4734 from Leaflet/gh-pages-rc2
Switch gh-pages to rc2
This commit is contained in:
commit
5f2f41bf0f
@ -9,8 +9,8 @@
|
||||
{% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ layout.root }}{% endif %}{% endcapture %}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ root }}docs/images/favicon.ico" />
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
<style>
|
||||
#map {
|
||||
|
@ -34,8 +34,8 @@
|
||||
<link rel="stylesheet" href="{{ root }}docs/highlight/styles/github-gist.css" />
|
||||
|
||||
<!-- Leaflet -->
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
{% if page.css %}<style>{{ page.css }}</style>{% endif %}
|
||||
|
||||
|
60
_posts/2016-07-16-leaflet-1.0-rc2.md
Normal file
60
_posts/2016-07-16-leaflet-1.0-rc2.md
Normal file
@ -0,0 +1,60 @@
|
||||
---
|
||||
layout: post
|
||||
title: Announcing Leaflet 1.0-rc2
|
||||
description: Leaflet 1.0 Release Candidate 2 is out
|
||||
author: Yohan Boniface
|
||||
authorsite: http://yohanboniface.me
|
||||
---
|
||||
|
||||
Here comes the second release candidate for Leaflet 1.0, the most stable Leaflet version ever!
|
||||
|
||||
|
||||
Leaflet 1.0-rc2 is mainly bug fixing, with two notable exceptions. The full list of changes is in the [1.0.0-rc2 changelog](https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md#10-rc2-july-18-2016) as usual.
|
||||
|
||||
|
||||
### Notable changes
|
||||
|
||||
* Event refactoring: thanks to an initial work from [@fab1an](https://github.com/fab1an), coordinated by [@perliedman](https://github.com/perliedman), the events are greatly optimized: they are faster, and consume less memory.
|
||||
|
||||
* New `L.Tooltip` class: started as a port of Leaflet.Label plugin to Leaflet core, and then reworked, this new class allows to display small tooltips attached to map features. The API is very similar to what Leaflet.Label was (with some exceptions in [options naming and default values](https://github.com/Leaflet/Leaflet.label#upgrade-path-to-ltooltip)), so the upgrade path from Leaflet.Label to `L.Tooltip` should be straightforward, and we encourage you to do so while upgrading your Leaflet to 1.0.
|
||||
|
||||
![L.Tooltip](/docs/images/2016-07-18-tooltip.png)
|
||||
|
||||
More in the [1.0.0-rc2 changelog](https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md#10-rc2-july-18-2016).
|
||||
|
||||
## What's left for 1.0.0-final
|
||||
|
||||
The Leaflet team is very happy about the progress from rc1 to rc2, but not all features were tackled.
|
||||
|
||||
Notably, the scroll zoom with an Apple Magic Mouse has proven to be very tricky to debug (especially since not all members of the team have access to one). Getting a good experience when scroll-zooming with this particular device had been planned for rc2 but ultimately it was pushed back for 1.0.0-final.
|
||||
|
||||
While there are no big features planned, a few but [mischievous and tricky bugs are left](https://github.com/Leaflet/Leaflet/milestone/21) - such as subpixel offset, CSS trickery, zoom vibration.
|
||||
|
||||
### Leafdays
|
||||
|
||||
The core team being spread all over Europe, we are doing so called "Leafdays" from time to time to remotely work together during one full day. Here is a debug session with [@perliedman](https://github.com/perliedman) screen sharing:
|
||||
|
||||
![Remote session](/docs/images/2016-07-18-remote-session.png)
|
||||
|
||||
Next face-to-face session will be during [FOSS4G](http://2016.foss4g.org/) in Bonn, in August, and we hope to see you there. Will this be the final 1.0 release session?
|
||||
|
||||
### Get the release candidate
|
||||
|
||||
As with previous releases, you can use the CDN:
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
A non-minified version of the javascript file is also available as:
|
||||
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet-src.js"></script>
|
||||
|
||||
The release is also available through NPM (`npm install leaflet@rc`), [GitHub download](https://github.com/Leaflet/Leaflet/archive/v1.0.0-rc.2.zip), and [CDN download](http://cdn.leafletjs.com/leaflet/v1.0.0-rc.2/leaflet.zip). We discourage using Bower.
|
||||
|
||||
Use it, enjoy it, and please report any [issue](https://github.com/Leaflet/Leaflet/issues) to help preparing the final Leaflet 1.0 release!
|
||||
|
||||
|
||||
Best,
|
||||
|
||||
The "Leafteam"
|
BIN
docs/images/2016-07-18-remote-session.png
Normal file
BIN
docs/images/2016-07-18-remote-session.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 403 KiB |
BIN
docs/images/2016-07-18-tooltip.png
Normal file
BIN
docs/images/2016-07-18-tooltip.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 181 KiB |
@ -16,7 +16,7 @@ bodyclass: download-page
|
||||
<td>Stable version, released on November 18, 2013 and last updated on October 26, 2015.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="http://cdn.leafletjs.com/leaflet/v1.0.0-rc.1/leaflet.zip">Leaflet 1.0.0-rc1</a></td>
|
||||
<td><a href="http://cdn.leafletjs.com/leaflet/v1.0.0-rc.2/leaflet.zip">Leaflet 1.0.0-rc2</a></td>
|
||||
<td>Last 1.0 release candidate, released on April 18, 2016.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -40,8 +40,8 @@ it straight away, place this in the `head` of your HTML code:
|
||||
|
||||
or
|
||||
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.1/dist/leaflet.css" />
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.1/dist/leaflet.js"></script>
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
### Using a Downloaded Version of Leaflet
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
|
||||
<style>
|
||||
#map {
|
||||
@ -44,7 +44,7 @@
|
||||
<body>
|
||||
<div id="map"></div>
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
<script type="text/javascript" src="us-states.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
@ -6,12 +6,12 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 600px; height: 400px"></div>
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
<script>
|
||||
var map = L.map('map').setView([51.5, -0.09], 13);
|
||||
|
||||
|
@ -6,13 +6,13 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 600px; height: 400px"></div>
|
||||
|
||||
<script src="sample-geojson.js" type="text/javascript"></script>
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
<script>
|
||||
var map = L.map('map').setView([39.74739, -105], 13);
|
||||
|
@ -6,12 +6,12 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 600px; height: 400px"></div>
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
<script>
|
||||
var cities = new L.LayerGroup();
|
||||
|
||||
|
@ -6,12 +6,13 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="map" style="width: 600px; height: 400px"></div>
|
||||
|
||||
<script src="https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
<script type="text/javascript" src="eu-countries.js"></script>
|
||||
|
||||
<script>
|
||||
|
@ -54,8 +54,8 @@ If we create a Leaflet map with these two tile layers, any marker or polygon wil
|
||||
|
||||
<div id="map" class="map" style="height: 250px"></div>
|
||||
|
||||
<link rel="stylesheet" href="https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.css" />
|
||||
<script src="https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.js"></script>
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
<script type="text/javascript" src="eu-countries.js"></script>
|
||||
<script>
|
||||
var map = L.map('map');
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
|
@ -6,12 +6,12 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="mapid" style="width: 600px; height: 400px"></div>
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
<script>
|
||||
|
||||
var mymap = L.map('mapid').setView([51.505, -0.09], 13);
|
||||
|
@ -19,11 +19,11 @@ Before writing any code for the map, you need to do the following preparation st
|
||||
|
||||
* Include Leaflet CSS file in the head section of your document:
|
||||
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
|
||||
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
|
||||
|
||||
* Include Leaflet JavaScript file:
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
|
||||
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
|
||||
|
||||
* Put a `div` element with a certain `id` where you want your map to be:
|
||||
|
||||
|
6070
reference-1.0.0.html
6070
reference-1.0.0.html
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user