Compare commits
10 Commits
v4.3.0-bet
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
743b2add10 | ||
|
|
79368b2bdd | ||
|
|
0a87606285 | ||
|
|
12264fb33a | ||
|
|
91752898e0 | ||
|
|
ac1e566b70 | ||
|
|
9359035324 | ||
|
|
21b5141c09 | ||
|
|
bada3d98a1 | ||
|
|
2150a2c783 |
@@ -1,17 +0,0 @@
|
|||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
insert_final_newline = true
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
indent_size = 2
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
|
|
||||||
[Makefile]
|
|
||||||
indent_style = tab
|
|
||||||
indent_size = 4
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
examples/Jugl.js
|
|
||||||
examples/resources/
|
|
||||||
build/package/**/*webgl*
|
|
||||||
4
.gitignore
vendored
@@ -1,4 +0,0 @@
|
|||||||
/build/
|
|
||||||
/node_modules/
|
|
||||||
/dist/
|
|
||||||
/coverage/
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/build/
|
|
||||||
33
.travis.yml
@@ -1,33 +0,0 @@
|
|||||||
sudo: false
|
|
||||||
|
|
||||||
language: node_js
|
|
||||||
|
|
||||||
node_js:
|
|
||||||
- "6.1"
|
|
||||||
|
|
||||||
addons:
|
|
||||||
firefox: "52.0"
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- node_modules
|
|
||||||
env:
|
|
||||||
- DISPLAY=:99.0
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- "npm prune"
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- "rm src/ol/renderer/webgl/*shader.js"
|
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
|
||||||
- "npm ls || true"
|
|
||||||
|
|
||||||
script: "make ci"
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- "make test-coverage"
|
|
||||||
- "cat coverage/lcov.info | ./node_modules/.bin/coveralls"
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
205
CONTRIBUTING.md
@@ -1,205 +0,0 @@
|
|||||||
# Contributing to OpenLayers
|
|
||||||
|
|
||||||
Thanks for your interest in contributing to OpenLayers.
|
|
||||||
|
|
||||||
## Asking Questions
|
|
||||||
|
|
||||||
Please ask questions about using the library on [Stack Overflow using the tag 'openlayers'](http://stackoverflow.com/questions/tagged/openlayers).
|
|
||||||
|
|
||||||
When you want to get involved and discuss new features or changes, please use [the mailing list](https://groups.google.com/forum/#!forum/openlayers-dev).
|
|
||||||
|
|
||||||
|
|
||||||
## Submitting Bug Reports
|
|
||||||
|
|
||||||
Please use the [GitHub issue tracker](https://github.com/openlayers/openlayers/issues). Before creating a new issue, do a quick search to see if the problem has been reported already.
|
|
||||||
|
|
||||||
|
|
||||||
## Getting Familiar with the Code in the Repository
|
|
||||||
|
|
||||||
Look for `readme.md` files! Several directories contain a `readme.md` file that explains the contents of the directory and how to work with them.
|
|
||||||
|
|
||||||
|
|
||||||
## Contributing Code
|
|
||||||
|
|
||||||
See [`DEVELOPING.md`](https://github.com/openlayers/openlayers/blob/master/DEVELOPING.md) to learn how to get started developing.
|
|
||||||
|
|
||||||
Our preferred means of receiving contributions is through [pull requests](https://help.github.com/articles/using-pull-requests). Make sure
|
|
||||||
that your pull request follows our pull request guidelines below before submitting it.
|
|
||||||
|
|
||||||
This page describes what you need to know to contribute code to OpenLayers as a developer.
|
|
||||||
|
|
||||||
|
|
||||||
## Contributor License Agreement
|
|
||||||
|
|
||||||
Before accepting a contribution, we ask that you provide us a Contributor
|
|
||||||
License Agreement. If you are making your contribution as part of work for
|
|
||||||
your employer, please follow the guidelines on submitting a [Corporate
|
|
||||||
Contributor License Agreement](https://raw.github.com/openlayers/cla/master/ccla.txt). If you are
|
|
||||||
making your contribution as an individual, you can submit a digital [Individual
|
|
||||||
Contributor License Agreement](https://docs.google.com/spreadsheet/viewform?formkey=dGNNVUJEMXF2dERTU0FXM3JjNVBQblE6MQ).
|
|
||||||
|
|
||||||
|
|
||||||
## Pull request guidelines
|
|
||||||
|
|
||||||
Before working on a pull request, create an issue explaining what you want to contribute. This ensures that your pull request won't go unnoticed, and that you are not contributing something that is not suitable for the project. Once a core developer has set the `pull request accepted` label on the issue, you can submit a pull request. The pull request description should reference the original issue.
|
|
||||||
|
|
||||||
Your pull request must:
|
|
||||||
|
|
||||||
* Follow OpenLayers's coding style.
|
|
||||||
|
|
||||||
* Pass the integration tests run automatically by the Travis Continuous
|
|
||||||
Integration system.
|
|
||||||
|
|
||||||
* Address a single issue or add a single item of functionality.
|
|
||||||
|
|
||||||
* Contain a clean history of small, incremental, logically separate commits,
|
|
||||||
with no merge commits.
|
|
||||||
|
|
||||||
* Use clear commit messages.
|
|
||||||
|
|
||||||
* Be possible to merge automatically.
|
|
||||||
|
|
||||||
|
|
||||||
### The `check` build target
|
|
||||||
|
|
||||||
It is strongly recommended that you run
|
|
||||||
|
|
||||||
$ make check
|
|
||||||
|
|
||||||
before every commit. This will catch many problems quickly, and it is much
|
|
||||||
faster than waiting for the Travis CI integration tests to run.
|
|
||||||
|
|
||||||
The `check` build target runs a number of quick tests on your code. These
|
|
||||||
include:
|
|
||||||
|
|
||||||
* Lint
|
|
||||||
* Compile
|
|
||||||
* Tests
|
|
||||||
|
|
||||||
|
|
||||||
### Follow OpenLayers's coding style
|
|
||||||
|
|
||||||
OpenLayers follows [Google's JavaScript Style
|
|
||||||
Guide](https://google.github.io/styleguide/javascriptguide.xml).
|
|
||||||
This is checked using [ESLint](http://eslint.org/), you
|
|
||||||
can run the linter locally on your machine before committing using the `lint`
|
|
||||||
target:
|
|
||||||
|
|
||||||
$ make lint
|
|
||||||
|
|
||||||
In addition to fixing problems identified by the linter, please also follow the
|
|
||||||
style of the existing OpenLayers code, which includes:
|
|
||||||
|
|
||||||
* Always wrap the body of `for`, `if`, and `while` statements in braces.
|
|
||||||
|
|
||||||
* Class methods should be in alphabetical order.
|
|
||||||
|
|
||||||
* `var` declarations should not span multiple lines. If you cannot fit all
|
|
||||||
the declarations in a single line, then start a new `var` declaration on a
|
|
||||||
new line. Within a single line, variables should be declared in
|
|
||||||
alphabetical order.
|
|
||||||
|
|
||||||
* Do not use assignments inside expressions.
|
|
||||||
|
|
||||||
* Use uppercase for `@const` variables.
|
|
||||||
|
|
||||||
### Configure your editor
|
|
||||||
|
|
||||||
If possible, configure your editor to follow the coding conventions of the
|
|
||||||
library. A `.editorconfig` file is included at the root of the repository that
|
|
||||||
can be used to configure whitespace and charset handling in your editor. See
|
|
||||||
that file for a description of the conventions. The [EditorConfig](
|
|
||||||
http://editorconfig.org/#download) site links to plugins for various editors.
|
|
||||||
|
|
||||||
### Pass the integration tests run automatically by the Travis CI system
|
|
||||||
|
|
||||||
The integration tests contain a number of automated checks to ensure that the
|
|
||||||
code follows the OpenLayers style and does not break tests or examples. You
|
|
||||||
can run the integration tests locally using the `ci` target:
|
|
||||||
|
|
||||||
$ make ci
|
|
||||||
|
|
||||||
|
|
||||||
### Address a single issue or add a single item of functionality
|
|
||||||
|
|
||||||
Please submit separate pull requests for separate issues. This allows each to
|
|
||||||
be reviewed on its own merits.
|
|
||||||
|
|
||||||
|
|
||||||
### Contain a clean history of small, incremental, logically separate commits, with no merge commits
|
|
||||||
|
|
||||||
The commit history explains to the reviewer the series of modifications to the
|
|
||||||
code that you have made and breaks the overall contribution into a series of
|
|
||||||
easily-understandable chunks. Any individual commit should not add more than
|
|
||||||
one new class or one new function. Do not submit commits that change thousands
|
|
||||||
of lines or that contain more than one distinct logical change. Trivial
|
|
||||||
commits, e.g. to fix lint errors, should be merged into the commit that
|
|
||||||
introduced the error. See the [Atomic Commit Convention on Wikipedia](http://en.wikipedia.org/wiki/Atomic_commit#Atomic_Commit_Convention) for more detail.
|
|
||||||
|
|
||||||
`git apply --patch` and `git rebase` can help you create a clean commit
|
|
||||||
history.
|
|
||||||
[Reviewboard.org](http://www.reviewboard.org/docs/codebase/dev/git/clean-commits/)
|
|
||||||
and [Pro GIT](http://git-scm.com/book/en/Git-Tools-Rewriting-History) have
|
|
||||||
explain how to use them.
|
|
||||||
|
|
||||||
|
|
||||||
### Use clear commit messages
|
|
||||||
|
|
||||||
Commit messages should be short, begin with a verb in the imperative, and
|
|
||||||
contain no trailing punctuation. We follow
|
|
||||||
http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
|
||||||
for the formatting of commit messages.
|
|
||||||
|
|
||||||
Git commit message should look like:
|
|
||||||
|
|
||||||
Header line: explaining the commit in one line
|
|
||||||
|
|
||||||
Body of commit message is a few lines of text, explaining things
|
|
||||||
in more detail, possibly giving some background about the issue
|
|
||||||
being fixed, etc etc.
|
|
||||||
|
|
||||||
The body of the commit message can be several paragraphs, and
|
|
||||||
please do proper word-wrap and keep columns shorter than about
|
|
||||||
74 characters or so. That way "git log" will show things
|
|
||||||
nicely even when it's indented.
|
|
||||||
|
|
||||||
Further paragraphs come after blank lines.
|
|
||||||
|
|
||||||
Please keep the header line short, no more than 50 characters.
|
|
||||||
|
|
||||||
### Be possible to merge automatically
|
|
||||||
|
|
||||||
Occasionally other changes to `master` might mean that your pull request cannot
|
|
||||||
be merged automatically. In this case you may need to rebase your branch on a
|
|
||||||
more recent `master`, resolve any conflicts, and `git push --force` to update
|
|
||||||
your branch so that it can be merged automatically.
|
|
||||||
|
|
||||||
## Building on Windows
|
|
||||||
|
|
||||||
Most developers build on Linux. Building on Windows is possible under Cygwin.
|
|
||||||
When installing Cygwin from https://www.cygwin.com/, include the developer
|
|
||||||
tools to get GNU make.
|
|
||||||
|
|
||||||
First (before npm install), to avoid file permission problems between Windows
|
|
||||||
and Cygwin, edit Cygwin's /etc/fstab file to disable ACLs like this
|
|
||||||
`none /cygdrive cygdrive binary,noacl,posix=0,user 0 0`
|
|
||||||
|
|
||||||
Python is normally installed with Cygwin so need not be installed separately.
|
|
||||||
By default Cygwin will use its own version of Python rather than Window's,
|
|
||||||
so the Python modules should be installed for Cygwin's Python.
|
|
||||||
|
|
||||||
The build targets `check-deps`, `serve`, `lint`, `build`, `test`, `check` and
|
|
||||||
`host-examples` described above should all work. `host-examples` takes quite a
|
|
||||||
while to run. If a target does not run properly first time, try it again.
|
|
||||||
|
|
||||||
Currently, Firefox fails to run http://localhost:3000/build/examples
|
|
||||||
from make serve, but Chrome and Internet Explorer will.
|
|
||||||
|
|
||||||
Microsoft Visual Studio's javascript debugger may be used to debug the
|
|
||||||
build/hosted/your-branch/examples. It will be convenient to set
|
|
||||||
build/hosted/your-branch/examples/index.html as the startup page.
|
|
||||||
|
|
||||||
Your OpenLayers source tree need not be under the Cygwin root.
|
|
||||||
if you checkout to c:/openlayers then you can build under Cygwin at /cygdrive/c/openlayers .
|
|
||||||
However, keep the path to the OpenLayers files short otherwise you may see
|
|
||||||
`ENAMETOOLONG` errors.
|
|
||||||
136
DEVELOPING.md
@@ -1,136 +0,0 @@
|
|||||||
# Developing
|
|
||||||
|
|
||||||
## Setting up development environment
|
|
||||||
|
|
||||||
You will obviously start by
|
|
||||||
[forking](https://github.com/openlayers/openlayers/fork) the OpenLayers repository.
|
|
||||||
|
|
||||||
### Travis CI
|
|
||||||
|
|
||||||
The Travis CI hook is enabled on the Github repository. This means every pull request
|
|
||||||
is run through a full test suite to ensure it compiles and passes the tests. Failing
|
|
||||||
pull requests will not be merged.
|
|
||||||
|
|
||||||
### Development dependencies
|
|
||||||
|
|
||||||
The minimum requirements are:
|
|
||||||
|
|
||||||
* GNU Make
|
|
||||||
* Git
|
|
||||||
* [Node.js](http://nodejs.org/) (higher than 0.12.x)
|
|
||||||
* Python 2.6 or 2.7
|
|
||||||
* Java 7 (JRE and JDK)
|
|
||||||
|
|
||||||
The executables `git`, `node`, and `java` should be in your `PATH`.
|
|
||||||
|
|
||||||
You can check your configuration by running:
|
|
||||||
|
|
||||||
$ make check-deps
|
|
||||||
|
|
||||||
To install the Node.js dependencies run
|
|
||||||
|
|
||||||
$ npm install
|
|
||||||
|
|
||||||
## Working with the build tool
|
|
||||||
|
|
||||||
As an OpenLayers developer you will use `make` to run build targets defined in the
|
|
||||||
`Makefile` located at the root of the repository. The `Makefile` includes
|
|
||||||
targets for running the linter, the compiler, the tests, etc.
|
|
||||||
|
|
||||||
The usage of `make` is as follows:
|
|
||||||
|
|
||||||
$ make <target>
|
|
||||||
|
|
||||||
where `<target>` is the name of the build target you want to execute. For
|
|
||||||
example:
|
|
||||||
|
|
||||||
$ make test
|
|
||||||
|
|
||||||
The main build targets are `serve`, `lint`, `build`, `test`, and `check`. The
|
|
||||||
latter is a meta-target that basically runs `lint`, `build`, and `test`.
|
|
||||||
|
|
||||||
The `serve` target starts a node-based web server, which we will refer to as the *dev server*. You'll need to start that server for running the examples and the tests in a browser. More information on that further down.
|
|
||||||
|
|
||||||
Other targets include `apidoc` and `ci`. The latter is the target used on Travis CI. See OpenLayers's [Travis configuration file](https://github.com/openlayers/openlayers/blob/master/.travis.yml).
|
|
||||||
|
|
||||||
## Running the `check` target
|
|
||||||
|
|
||||||
The `check` target is to be run before pushing code to GitHub and opening pull
|
|
||||||
requests. Branches that don't pass `check` won't pass the integration tests,
|
|
||||||
and have therefore no chance of being merged into `master`.
|
|
||||||
|
|
||||||
To run the `check` target:
|
|
||||||
|
|
||||||
$ make check
|
|
||||||
|
|
||||||
If you want to run the full suite of integration tests, see "Running the integration
|
|
||||||
tests" below.
|
|
||||||
|
|
||||||
## Running examples
|
|
||||||
|
|
||||||
To run the examples you first need to start the dev server:
|
|
||||||
|
|
||||||
$ make serve
|
|
||||||
|
|
||||||
Then, just point your browser <http://localhost:3000/build/examples> in your browser. For example <http://localhost:3000/build/examples/side-by-side.html>.
|
|
||||||
|
|
||||||
Run examples against the `ol.js` standalone build:
|
|
||||||
|
|
||||||
The examples can also be run against the `ol.js` standalone build, just like
|
|
||||||
the examples [hosted](https://openlayers.org/en/master/examples/) on GitHub.
|
|
||||||
Start by executing the `host-examples` build target:
|
|
||||||
|
|
||||||
$ make host-examples
|
|
||||||
|
|
||||||
After running `host-examples` you can now open the examples index page in the browser: <http://localhost:3000/build/hosted/master/examples/>. (This assumes that you still have the dev server running.)
|
|
||||||
|
|
||||||
Append `?mode=raw` to make the example work in full debug mode. In raw mode the OpenLayers and Closure Library scripts are loaded individually by the Closure Library's `base.js` script (which the example page loads and executes before any other script).
|
|
||||||
|
|
||||||
## Running tests
|
|
||||||
|
|
||||||
To run the tests in a browser start the dev server (`make serve`) and open <http://localhost:3000/test/index.html> in the browser.
|
|
||||||
|
|
||||||
To run the tests on the console (headless testing with PhantomJS) use the `test` target:
|
|
||||||
|
|
||||||
$ make test
|
|
||||||
|
|
||||||
See also the test-specific [README](../master/test/README.md).
|
|
||||||
|
|
||||||
## Running the integration tests
|
|
||||||
|
|
||||||
When you submit a pull request the [Travis continuous integration
|
|
||||||
server](https://travis-ci.org/) will run a full suite of tests, including
|
|
||||||
building all versions of the library and checking that all of the examples
|
|
||||||
work. You will receive an email with the results, and the status will be
|
|
||||||
displayed in the pull request.
|
|
||||||
|
|
||||||
To run the full suite of integration tests use the `ci` target:
|
|
||||||
|
|
||||||
$ make ci
|
|
||||||
|
|
||||||
Running the full suite of integration tests currently takes 5-10 minutes.
|
|
||||||
|
|
||||||
This makes sure that your commit won't break the build. It also runs JSDoc3 to
|
|
||||||
make sure that there are no invalid API doc directives.
|
|
||||||
|
|
||||||
## Adding examples
|
|
||||||
|
|
||||||
Adding functionality often implies adding one or several examples. This
|
|
||||||
section provides explanations related to adding examples.
|
|
||||||
|
|
||||||
The examples are located in the `examples` directory. Adding a new example
|
|
||||||
implies creating two or three files in this directory, an `.html` file, a `.js`
|
|
||||||
file, and, optionally, a `.css` file.
|
|
||||||
|
|
||||||
You can use `simple.js` and `simple.html` as templates for new examples.
|
|
||||||
|
|
||||||
### Use of the `goog` namespace in examples
|
|
||||||
|
|
||||||
Short story: the OpenLayers examples should not use the `goog` namespace, except
|
|
||||||
for `goog.require`.
|
|
||||||
|
|
||||||
Longer story: we want that the OpenLayers examples work in multiple modes, with the
|
|
||||||
standalone lib (which has implications of the symbols and properties we
|
|
||||||
export), and compiled together with the OpenLayers library.
|
|
||||||
|
|
||||||
Compiling the examples together with the library makes it mandatory to declare dependencies with `goog.require` statements.
|
|
||||||
26
LICENSE.md
@@ -1,26 +0,0 @@
|
|||||||
Copyright 2005-present OpenLayers Contributors. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
other materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY OPENLAYERS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS
|
|
||||||
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
|
||||||
SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
||||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
||||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
The views and conclusions contained in the software and documentation are those
|
|
||||||
of the authors and should not be interpreted as representing official policies,
|
|
||||||
either expressed or implied, of OpenLayers Contributors.
|
|
||||||
313
Makefile
@@ -1,313 +0,0 @@
|
|||||||
OS := $(shell uname)
|
|
||||||
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
|
||||||
|
|
||||||
SRC_GLSL := $(shell find src -type f -name '*.glsl')
|
|
||||||
SRC_SHADER_JS := $(patsubst %shader.glsl,%shader.js,$(SRC_GLSL))
|
|
||||||
SRC_JS := $(filter-out $(SRC_SHADER_JS),$(shell find src -name '*.js'))
|
|
||||||
SRC_JSDOC = $(shell find src -type f -name '*.jsdoc')
|
|
||||||
|
|
||||||
SPEC_JS := $(shell find test/spec -type f -name '*.js')
|
|
||||||
SPEC_RENDERING_JS := $(shell find test_rendering/spec -name '*.js')
|
|
||||||
|
|
||||||
EXAMPLES := $(shell find examples -type f)
|
|
||||||
EXAMPLES_HTML := $(filter-out examples/index.html,$(shell find examples -maxdepth 1 -type f -name '*.html'))
|
|
||||||
EXAMPLES_JS := $(patsubst %.html,%.js,$(EXAMPLES_HTML))
|
|
||||||
|
|
||||||
BUILD_EXAMPLES := $(subst examples,build/examples,$(EXAMPLES)) build/examples/index.js
|
|
||||||
|
|
||||||
BUILD_HOSTED := build/hosted/$(BRANCH)
|
|
||||||
BUILD_HOSTED_EXAMPLES := $(addprefix $(BUILD_HOSTED)/,$(EXAMPLES))
|
|
||||||
BUILD_HOSTED_EXAMPLES_JS := $(addprefix $(BUILD_HOSTED)/,$(EXAMPLES_JS))
|
|
||||||
|
|
||||||
UNPHANTOMABLE_EXAMPLES = examples/shaded-relief.html examples/raster.html examples/region-growing.html examples/color-manipulation.html
|
|
||||||
CHECK_EXAMPLE_TIMESTAMPS = $(patsubst examples/%.html,build/timestamps/check-%-timestamp,$(filter-out $(UNPHANTOMABLE_EXAMPLES),$(EXAMPLES_HTML)))
|
|
||||||
|
|
||||||
TASKS_JS := $(shell find tasks -name '*.js')
|
|
||||||
|
|
||||||
ifeq (CYGWIN,$(findstring CYGWIN,$(OS)))
|
|
||||||
CLOSURE_LIB = $(shell cygpath -u $(shell node -e 'process.stdout.write(require("closure-util").getLibraryPath())'))
|
|
||||||
else
|
|
||||||
CLOSURE_LIB = $(shell node -e 'process.stdout.write(require("closure-util").getLibraryPath())')
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OS),Darwin)
|
|
||||||
STAT_COMPRESSED = stat -f ' compressed: %z bytes'
|
|
||||||
STAT_UNCOMPRESSED = stat -f 'uncompressed: %z bytes'
|
|
||||||
else
|
|
||||||
STAT_COMPRESSED = stat -c ' compressed: %s bytes'
|
|
||||||
STAT_UNCOMPRESSED = stat -c 'uncompressed: %s bytes'
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: default
|
|
||||||
default: help
|
|
||||||
|
|
||||||
.PHONY: help
|
|
||||||
help:
|
|
||||||
@echo
|
|
||||||
@echo "The most common targets are:"
|
|
||||||
@echo
|
|
||||||
@echo "- install Install node dependencies"
|
|
||||||
@echo "- serve Start dev server for running examples and tests"
|
|
||||||
@echo "- test Run unit tests in the console"
|
|
||||||
@echo "- check Perform a number of checks on the code"
|
|
||||||
@echo "- clean Remove generated files"
|
|
||||||
@echo "- help Display this help message"
|
|
||||||
@echo
|
|
||||||
@echo "Other less frequently used targets are:"
|
|
||||||
@echo
|
|
||||||
@echo "- build Build ol.js, ol-debug.js, ol.js.map and ol.css"
|
|
||||||
@echo "- lint Check the code with the linter"
|
|
||||||
@echo "- ci Run the full continuous integration process"
|
|
||||||
@echo "- apidoc Build the API documentation using JSDoc"
|
|
||||||
@echo "- cleanall Remove all the build artefacts"
|
|
||||||
@echo "- check-deps Check if the required dependencies are installed"
|
|
||||||
@echo
|
|
||||||
|
|
||||||
.PHONY: apidoc
|
|
||||||
apidoc: build/timestamps/jsdoc-$(BRANCH)-timestamp
|
|
||||||
|
|
||||||
.PHONY: build
|
|
||||||
build: build/ol.css build/ol.js build/ol-debug.js build/ol.js.map
|
|
||||||
|
|
||||||
.PHONY: check
|
|
||||||
check: lint build/ol.js test
|
|
||||||
|
|
||||||
.PHONY: check-examples
|
|
||||||
check-examples: $(CHECK_EXAMPLE_TIMESTAMPS)
|
|
||||||
|
|
||||||
.PHONY: check-deps
|
|
||||||
check-deps: EXECUTABLES = git node python java
|
|
||||||
check-deps:
|
|
||||||
@for exe in $(EXECUTABLES) ;\
|
|
||||||
do \
|
|
||||||
which $${exe} > /dev/null && \
|
|
||||||
echo "Program $${exe} OK" || \
|
|
||||||
echo "Program $${exe} MISSING!" ;\
|
|
||||||
done ;\
|
|
||||||
|
|
||||||
.PHONY: ci
|
|
||||||
ci: lint build test test-rendering package compile-examples check-examples apidoc
|
|
||||||
|
|
||||||
.PHONY: compile-examples
|
|
||||||
compile-examples: build/compiled-examples/all.combined.js
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
rm -f build/timestamps/eslint-timestamp
|
|
||||||
rm -f build/timestamps/check-*-timestamp
|
|
||||||
rm -f build/ol.css
|
|
||||||
rm -f build/ol.js
|
|
||||||
rm -f build/ol.js.map
|
|
||||||
rm -f build/ol-debug.js
|
|
||||||
rm -f build/test_requires.js
|
|
||||||
rm -f build/test_rendering_requires.js
|
|
||||||
rm -rf build/examples
|
|
||||||
rm -rf build/compiled-examples
|
|
||||||
rm -rf build/package
|
|
||||||
rm -rf $(BUILD_HOSTED)
|
|
||||||
|
|
||||||
.PHONY: cleanall
|
|
||||||
cleanall:
|
|
||||||
rm -rf build
|
|
||||||
|
|
||||||
.PHONY: css
|
|
||||||
css: build/ol.css
|
|
||||||
|
|
||||||
.PHONY: examples
|
|
||||||
examples: $(BUILD_EXAMPLES)
|
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install: build/timestamps/node-modules-timestamp
|
|
||||||
|
|
||||||
.PHONY: lint
|
|
||||||
lint: build/timestamps/eslint-timestamp
|
|
||||||
|
|
||||||
.PHONY: npm-install
|
|
||||||
npm-install: build/timestamps/node-modules-timestamp
|
|
||||||
|
|
||||||
.PHONY: shaders
|
|
||||||
shaders: $(SRC_SHADER_JS)
|
|
||||||
|
|
||||||
.PHONY: serve
|
|
||||||
serve: build/test_requires.js build/test_rendering_requires.js
|
|
||||||
node tasks/serve.js
|
|
||||||
|
|
||||||
.PHONY: test
|
|
||||||
test: build/timestamps/node-modules-timestamp build/test_requires.js
|
|
||||||
node tasks/test.js
|
|
||||||
|
|
||||||
.PHONY: test-coverage
|
|
||||||
test-coverage: build/timestamps/node-modules-timestamp
|
|
||||||
node tasks/test-coverage.js
|
|
||||||
|
|
||||||
.PHONY: test-rendering
|
|
||||||
test-rendering: build/timestamps/node-modules-timestamp \
|
|
||||||
build/test_rendering_requires.js
|
|
||||||
@rm -rf build/slimerjs-profile
|
|
||||||
@mkdir -p build/slimerjs-profile
|
|
||||||
@cp -r test_rendering/slimerjs-profile/* build/slimerjs-profile/
|
|
||||||
node tasks/test-rendering.js
|
|
||||||
|
|
||||||
.PHONY: host-examples
|
|
||||||
host-examples: $(BUILD_HOSTED_EXAMPLES) \
|
|
||||||
$(BUILD_HOSTED)/build/ol.js \
|
|
||||||
$(BUILD_HOSTED)/build/ol-debug.js \
|
|
||||||
$(BUILD_HOSTED)/css/ol.css \
|
|
||||||
$(BUILD_HOSTED)/examples/loader.js \
|
|
||||||
$(BUILD_HOSTED)/examples/index.js \
|
|
||||||
$(BUILD_HOSTED)/build/ol-deps.js
|
|
||||||
|
|
||||||
.PHONY: host-libraries
|
|
||||||
host-libraries: build/timestamps/node-modules-timestamp
|
|
||||||
@rm -rf $(BUILD_HOSTED)/closure-library
|
|
||||||
@mkdir -p $(BUILD_HOSTED)/closure-library
|
|
||||||
@cp -r $(CLOSURE_LIB)/* $(BUILD_HOSTED)/closure-library/
|
|
||||||
@rm -rf $(BUILD_HOSTED)/ol/ol
|
|
||||||
@mkdir -p $(BUILD_HOSTED)/ol/ol
|
|
||||||
@cp -r src/ol/* $(BUILD_HOSTED)/ol/ol/
|
|
||||||
@rm -rf $(BUILD_HOSTED)/ol.ext
|
|
||||||
@mkdir -p $(BUILD_HOSTED)/ol.ext
|
|
||||||
@cp -r build/ol.ext/* $(BUILD_HOSTED)/ol.ext/
|
|
||||||
|
|
||||||
$(BUILD_EXAMPLES): $(EXAMPLES) package.json
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@node tasks/build-examples.js
|
|
||||||
|
|
||||||
build/timestamps/check-%-timestamp: $(BUILD_HOSTED)/examples/%.html \
|
|
||||||
$(BUILD_HOSTED)/examples/%.js \
|
|
||||||
$(filter $(BUILD_HOSTED)/examples/resources/%,$(BUILD_HOSTED_EXAMPLES)) \
|
|
||||||
$(filter $(BUILD_HOSTED)/examples/data/%,$(BUILD_HOSTED_EXAMPLES)) \
|
|
||||||
$(BUILD_HOSTED)/examples/loader.js \
|
|
||||||
$(BUILD_HOSTED)/build/ol.js \
|
|
||||||
$(BUILD_HOSTED)/css/ol.css
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
node tasks/check-example.js $<
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
build/compiled-examples/all.js: $(EXAMPLES_JS)
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@python bin/combine-examples.py $^ > $@
|
|
||||||
|
|
||||||
build/compiled-examples/all.combined.js: config/examples-all.json build/compiled-examples/all.js \
|
|
||||||
$(SRC_JS) $(SRC_SHADER_JS) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
node tasks/build.js $< $@
|
|
||||||
|
|
||||||
build/compiled-examples/%.json: config/example.json build/examples/%.js \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@sed -e 's|{{id}}|$*|' $< > $@
|
|
||||||
|
|
||||||
build/compiled-examples/%.combined.js: build/compiled-examples/%.json \
|
|
||||||
$(SRC_JS) $(SRC_SHADER_JS) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
node tasks/build.js $< $@
|
|
||||||
|
|
||||||
build/timestamps/jsdoc-$(BRANCH)-timestamp: config/jsdoc/api/index.md \
|
|
||||||
config/jsdoc/api/conf.json $(SRC_JS) \
|
|
||||||
$(SRC_SHADER_JS) \
|
|
||||||
$(shell find config/jsdoc/api/template -type f) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@rm -rf $(BUILD_HOSTED)/apidoc
|
|
||||||
./node_modules/.bin/jsdoc config/jsdoc/api/index.md -c config/jsdoc/api/conf.json --package package.json -d $(BUILD_HOSTED)/apidoc
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
$(BUILD_HOSTED_EXAMPLES_JS): $(BUILD_HOSTED)/examples/%.js: build/examples/%.js
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@python bin/split-example.py $< $(@D)
|
|
||||||
|
|
||||||
$(BUILD_HOSTED)/examples/loader.js: bin/loader_hosted_examples.js
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@cp $< $@
|
|
||||||
|
|
||||||
$(BUILD_HOSTED)/examples/%: build/examples/%
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@cp $< $@
|
|
||||||
|
|
||||||
$(BUILD_HOSTED)/build/ol.js: build/ol.js
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@cp $< $@
|
|
||||||
|
|
||||||
$(BUILD_HOSTED)/build/ol-debug.js: build/ol-debug.js
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@cp $< $@
|
|
||||||
|
|
||||||
$(BUILD_HOSTED)/css/ol.css: build/ol.css
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@cp $< $@
|
|
||||||
|
|
||||||
$(BUILD_HOSTED)/build/ol-deps.js: host-libraries
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@python $(CLOSURE_LIB)/closure/bin/build/depswriter.py \
|
|
||||||
--root_with_prefix "src ../../../ol" \
|
|
||||||
--root_with_prefix "build/ol.ext ../../../ol.ext" \
|
|
||||||
--root $(BUILD_HOSTED)/closure-library/closure/goog \
|
|
||||||
--root_with_prefix "$(BUILD_HOSTED)/closure-library/third_party ../../third_party" \
|
|
||||||
--output_file $@
|
|
||||||
|
|
||||||
build/timestamps/eslint-timestamp: $(SRC_JS) $(SPEC_JS) $(SPEC_RENDERING_JS) \
|
|
||||||
$(TASKS_JS) $(EXAMPLES_JS) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@echo "Running eslint..."
|
|
||||||
@./node_modules/.bin/eslint tasks test test_rendering src examples
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
build/timestamps/node-modules-timestamp: package.json
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
npm install
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
build/ol.css: css/ol.css build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@echo "Running cleancss..."
|
|
||||||
@./node_modules/.bin/cleancss $< > $@
|
|
||||||
|
|
||||||
build/ol.js: config/ol.json $(SRC_JS) $(SRC_SHADER_JS) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
node tasks/build.js $< $@
|
|
||||||
@$(STAT_UNCOMPRESSED) $@
|
|
||||||
@cp $@ /tmp/
|
|
||||||
@gzip /tmp/ol.js
|
|
||||||
@$(STAT_COMPRESSED) /tmp/ol.js.gz
|
|
||||||
@rm /tmp/ol.js.gz
|
|
||||||
|
|
||||||
build/ol.js.map: config/ol.json $(SRC_JS) $(SRC_SHADER_JS) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
node tasks/build.js $< $@
|
|
||||||
|
|
||||||
build/ol-debug.js: config/ol-debug.json $(SRC_JS) $(SRC_SHADER_JS) \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
node tasks/build.js $< $@
|
|
||||||
@$(STAT_UNCOMPRESSED) $@
|
|
||||||
@cp $@ /tmp/
|
|
||||||
@gzip /tmp/ol-debug.js
|
|
||||||
@$(STAT_COMPRESSED) /tmp/ol-debug.js.gz
|
|
||||||
@rm /tmp/ol-debug.js.gz
|
|
||||||
|
|
||||||
build/test_requires.js: $(SPEC_JS) $(SRC_JS)
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@node tasks/generate-requires.js $^ > $@
|
|
||||||
|
|
||||||
build/test_rendering_requires.js: $(SPEC_RENDERING_JS)
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@node tasks/generate-requires.js $^ > $@
|
|
||||||
|
|
||||||
%shader.js: %shader.glsl src/ol/webgl/shader.mustache bin/pyglslunit.py build/timestamps/node-modules-timestamp
|
|
||||||
@python bin/pyglslunit.py --input $< | ./node_modules/.bin/mustache - src/ol/webgl/shader.mustache > $@
|
|
||||||
|
|
||||||
.PHONY: package
|
|
||||||
package:
|
|
||||||
@rm -rf build/package
|
|
||||||
@cp -r package build
|
|
||||||
@cd ./src && cp -r ol/* ../build/package
|
|
||||||
@rm build/package/typedefs.js
|
|
||||||
@cp css/ol.css build/package
|
|
||||||
./node_modules/.bin/jscodeshift --transform transforms/module.js build/package
|
|
||||||
npm run lint-package
|
|
||||||
36
README.md
@@ -1,36 +0,0 @@
|
|||||||
# OpenLayers
|
|
||||||
|
|
||||||
[](http://travis-ci.org/#!/openlayers/openlayers)
|
|
||||||
[](https://greenkeeper.io/)
|
|
||||||
[](https://coveralls.io/github/openlayers/openlayers?branch=master)
|
|
||||||
[](http://osgeo.org/)
|
|
||||||
|
|
||||||
[OpenLayers](https://openlayers.org/) is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD).
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
- Download the [latest release](https://openlayers.org/download/)
|
|
||||||
- Install with npm: `npm install openlayers`
|
|
||||||
- Clone the repo: `git clone git@github.com:openlayers/openlayers.git`
|
|
||||||
|
|
||||||
## Supported Browsers
|
|
||||||
|
|
||||||
OpenLayers runs on all modern browsers that support [HTML5](https://html.spec.whatwg.org/multipage/) and [ECMAScript 5](http://www.ecma-international.org/ecma-262/5.1/). This includes Chrome, Firefox, Safari and Edge. For older browsers and platforms like Internet Explorer (down to version 9) and Android 4.x, [polyfills](http://polyfill.io) for `requestAnimationFrame` and `Element.prototype.classList` are required, and using the KML format requires a polyfill for `URL`.
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
Check out the [hosted examples](https://openlayers.org/en/latest/examples/), the [workshop](https://openlayers.org/workshop/) or the [API documentation](https://openlayers.org/en/latest/apidoc/).
|
|
||||||
|
|
||||||
## Bugs
|
|
||||||
|
|
||||||
Please use the [GitHub issue tracker](https://github.com/openlayers/openlayers/issues) for all bugs and feature requests. Before creating a new issue, do a quick search to see if the problem has been reported already.
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
Please see our guide on [contributing](CONTRIBUTING.md) if you're interested in getting involved.
|
|
||||||
|
|
||||||
## Community
|
|
||||||
|
|
||||||
- Need help? Find it on [Stack Overflow using the tag 'openlayers'](http://stackoverflow.com/questions/tagged/openlayers)
|
|
||||||
- Follow [@openlayers](https://twitter.com/openlayers) on Twitter
|
|
||||||
- Discuss with openlayers users on IRC in `#openlayers` at `chat.freenode`
|
|
||||||
113
apidoc_config/Languages.txt
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
Format: Development Release 12-07-2007 (1.35 base)
|
||||||
|
|
||||||
|
# This is the Natural Docs languages file for this project. If you change
|
||||||
|
# anything here, it will apply to THIS PROJECT ONLY. If you'd like to change
|
||||||
|
# something for all your projects, edit the Languages.txt in Natural Docs'
|
||||||
|
# Config directory instead.
|
||||||
|
|
||||||
|
|
||||||
|
# You can prevent certain file extensions from being scanned like this:
|
||||||
|
# Ignore Extensions: [extension] [extension] ...
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# SYNTAX:
|
||||||
|
#
|
||||||
|
# Unlike other Natural Docs configuration files, in this file all comments
|
||||||
|
# MUST be alone on a line. Some languages deal with the # character, so you
|
||||||
|
# cannot put comments on the same line as content.
|
||||||
|
#
|
||||||
|
# Also, all lists are separated with spaces, not commas, again because some
|
||||||
|
# languages may need to use them.
|
||||||
|
#
|
||||||
|
# Language: [name]
|
||||||
|
# Alter Language: [name]
|
||||||
|
# Defines a new language or alters an existing one. Its name can use any
|
||||||
|
# characters. If any of the properties below have an add/replace form, you
|
||||||
|
# must use that when using Alter Language.
|
||||||
|
#
|
||||||
|
# The language Shebang Script is special. It's entry is only used for
|
||||||
|
# extensions, and files with those extensions have their shebang (#!) lines
|
||||||
|
# read to determine the real language of the file. Extensionless files are
|
||||||
|
# always treated this way.
|
||||||
|
#
|
||||||
|
# The language Text File is also special. It's treated as one big comment
|
||||||
|
# so you can put Natural Docs content in them without special symbols. Also,
|
||||||
|
# if you don't specify a package separator, ignored prefixes, or enum value
|
||||||
|
# behavior, it will copy those settings from the language that is used most
|
||||||
|
# in the source tree.
|
||||||
|
#
|
||||||
|
# Extensions: [extension] [extension] ...
|
||||||
|
# [Add/Replace] Extensions: [extension] [extension] ...
|
||||||
|
# Defines the file extensions of the language's source files. You can
|
||||||
|
# redefine extensions found in the main languages file. You can use * to
|
||||||
|
# mean any undefined extension.
|
||||||
|
#
|
||||||
|
# Shebang Strings: [string] [string] ...
|
||||||
|
# [Add/Replace] Shebang Strings: [string] [string] ...
|
||||||
|
# Defines a list of strings that can appear in the shebang (#!) line to
|
||||||
|
# designate that it's part of the language. You can redefine strings found
|
||||||
|
# in the main languages file.
|
||||||
|
#
|
||||||
|
# Ignore Prefixes in Index: [prefix] [prefix] ...
|
||||||
|
# [Add/Replace] Ignored Prefixes in Index: [prefix] [prefix] ...
|
||||||
|
#
|
||||||
|
# Ignore [Topic Type] Prefixes in Index: [prefix] [prefix] ...
|
||||||
|
# [Add/Replace] Ignored [Topic Type] Prefixes in Index: [prefix] [prefix] ...
|
||||||
|
# Specifies prefixes that should be ignored when sorting symbols in an
|
||||||
|
# index. Can be specified in general or for a specific topic type.
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# For basic language support only:
|
||||||
|
#
|
||||||
|
# Line Comments: [symbol] [symbol] ...
|
||||||
|
# Defines a space-separated list of symbols that are used for line comments,
|
||||||
|
# if any.
|
||||||
|
#
|
||||||
|
# Block Comments: [opening sym] [closing sym] [opening sym] [closing sym] ...
|
||||||
|
# Defines a space-separated list of symbol pairs that are used for block
|
||||||
|
# comments, if any.
|
||||||
|
#
|
||||||
|
# Package Separator: [symbol]
|
||||||
|
# Defines the default package separator symbol. The default is a dot.
|
||||||
|
#
|
||||||
|
# [Topic Type] Prototype Enders: [symbol] [symbol] ...
|
||||||
|
# When defined, Natural Docs will attempt to get a prototype from the code
|
||||||
|
# immediately following the topic type. It stops when it reaches one of
|
||||||
|
# these symbols. Use \n for line breaks.
|
||||||
|
#
|
||||||
|
# Line Extender: [symbol]
|
||||||
|
# Defines the symbol that allows a prototype to span multiple lines if
|
||||||
|
# normally a line break would end it.
|
||||||
|
#
|
||||||
|
# Enum Values: [global|under type|under parent]
|
||||||
|
# Defines how enum values are referenced. The default is global.
|
||||||
|
# global - Values are always global, referenced as 'value'.
|
||||||
|
# under type - Values are under the enum type, referenced as
|
||||||
|
# 'package.enum.value'.
|
||||||
|
# under parent - Values are under the enum's parent, referenced as
|
||||||
|
# 'package.value'.
|
||||||
|
#
|
||||||
|
# Perl Package: [perl package]
|
||||||
|
# Specifies the Perl package used to fine-tune the language behavior in ways
|
||||||
|
# too complex to do in this file.
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# For full language support only:
|
||||||
|
#
|
||||||
|
# Full Language Support: [perl package]
|
||||||
|
# Specifies the Perl package that has the parsing routines necessary for full
|
||||||
|
# language support.
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# The following languages are defined in the main file, if you'd like to alter
|
||||||
|
# them:
|
||||||
|
#
|
||||||
|
# Text File, Shebang Script, C/C++, C#, Java, JavaScript, Perl, Python,
|
||||||
|
# PHP, SQL, Visual Basic, Pascal, Assembly, Ada, Tcl, Ruby, Makefile,
|
||||||
|
# ActionScript, ColdFusion, R, Fortran
|
||||||
|
|
||||||
|
# If you add a language that you think would be useful to other developers
|
||||||
|
# and should be included in Natural Docs by default, please e-mail it to
|
||||||
|
# languages [at] naturaldocs [dot] org.
|
||||||
435
apidoc_config/Menu.txt
Normal file
@@ -0,0 +1,435 @@
|
|||||||
|
Format: Development Release 12-07-2007 (1.35 base)
|
||||||
|
|
||||||
|
|
||||||
|
Title: OpenLayers
|
||||||
|
SubTitle: JavaScript Mapping Library
|
||||||
|
|
||||||
|
# You can add a footer to your documentation like this:
|
||||||
|
# Footer: [text]
|
||||||
|
# If you want to add a copyright notice, this would be the place to do it.
|
||||||
|
|
||||||
|
# You can add a timestamp to your documentation like one of these:
|
||||||
|
# Timestamp: Generated on month day, year
|
||||||
|
# Timestamp: Updated mm/dd/yyyy
|
||||||
|
# Timestamp: Last updated mon day
|
||||||
|
#
|
||||||
|
# m - One or two digit month. January is "1"
|
||||||
|
# mm - Always two digit month. January is "01"
|
||||||
|
# mon - Short month word. January is "Jan"
|
||||||
|
# month - Long month word. January is "January"
|
||||||
|
# d - One or two digit day. 1 is "1"
|
||||||
|
# dd - Always two digit day. 1 is "01"
|
||||||
|
# day - Day with letter extension. 1 is "1st"
|
||||||
|
# yy - Two digit year. 2006 is "06"
|
||||||
|
# yyyy - Four digit year. 2006 is "2006"
|
||||||
|
# year - Four digit year. 2006 is "2006"
|
||||||
|
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Cut and paste the lines below to change the order in which your files
|
||||||
|
# appear on the menu. Don't worry about adding or removing files, Natural
|
||||||
|
# Docs will take care of that.
|
||||||
|
#
|
||||||
|
# You can further organize the menu by grouping the entries. Add a
|
||||||
|
# "Group: [name] {" line to start a group, and add a "}" to end it.
|
||||||
|
#
|
||||||
|
# You can add text and web links to the menu by adding "Text: [text]" and
|
||||||
|
# "Link: [name] ([URL])" lines, respectively.
|
||||||
|
#
|
||||||
|
# The formatting and comments are auto-generated, so don't worry about
|
||||||
|
# neatness when editing the file. Natural Docs will clean it up the next
|
||||||
|
# time it is run. When working with groups, just deal with the braces and
|
||||||
|
# forget about the indentation and comments.
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
Group: OpenLayers {
|
||||||
|
|
||||||
|
File: OpenLayers (no auto-title, OpenLayers.js)
|
||||||
|
File: Ajax (no auto-title, OpenLayers/Ajax.js)
|
||||||
|
|
||||||
|
Group: BaseTypes {
|
||||||
|
|
||||||
|
File: Base Types (no auto-title, OpenLayers/BaseTypes.js)
|
||||||
|
File: Bounds (no auto-title, OpenLayers/BaseTypes/Bounds.js)
|
||||||
|
File: Class (no auto-title, OpenLayers/BaseTypes/Class.js)
|
||||||
|
File: Element (no auto-title, OpenLayers/BaseTypes/Element.js)
|
||||||
|
File: LonLat (no auto-title, OpenLayers/BaseTypes/LonLat.js)
|
||||||
|
File: Pixel (no auto-title, OpenLayers/BaseTypes/Pixel.js)
|
||||||
|
File: Size (no auto-title, OpenLayers/BaseTypes/Size.js)
|
||||||
|
} # Group: BaseTypes
|
||||||
|
|
||||||
|
File: Console (no auto-title, OpenLayers/Console.js)
|
||||||
|
|
||||||
|
Group: Control {
|
||||||
|
|
||||||
|
File: Control (no auto-title, OpenLayers/Control.js)
|
||||||
|
File: ArgParser (no auto-title, OpenLayers/Control/ArgParser.js)
|
||||||
|
File: Attribution (no auto-title, OpenLayers/Control/Attribution.js)
|
||||||
|
File: Button (no auto-title, OpenLayers/Control/Button.js)
|
||||||
|
File: DragFeature (no auto-title, OpenLayers/Control/DragFeature.js)
|
||||||
|
File: DragPan (no auto-title, OpenLayers/Control/DragPan.js)
|
||||||
|
File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js)
|
||||||
|
File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js)
|
||||||
|
File: GetFeature (no auto-title, OpenLayers/Control/GetFeature.js)
|
||||||
|
File: Graticule (OpenLayers/Control/Graticule.js)
|
||||||
|
File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js)
|
||||||
|
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
|
||||||
|
File: Measure (no auto-title, OpenLayers/Control/Measure.js)
|
||||||
|
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
|
||||||
|
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
|
||||||
|
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
|
||||||
|
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
|
||||||
|
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
|
||||||
|
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
|
||||||
|
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
|
||||||
|
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
|
||||||
|
File: Pan (no auto-title, OpenLayers/Control/Pan.js)
|
||||||
|
File: Panel (no auto-title, OpenLayers/Control/Panel.js)
|
||||||
|
File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js)
|
||||||
|
File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js)
|
||||||
|
File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js)
|
||||||
|
File: Permalink (no auto-title, OpenLayers/Control/Permalink.js)
|
||||||
|
File: Scale (no auto-title, OpenLayers/Control/Scale.js)
|
||||||
|
File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js)
|
||||||
|
File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js)
|
||||||
|
File: Snapping (no auto-title, OpenLayers/Control/Snapping.js)
|
||||||
|
File: Split (no auto-title, OpenLayers/Control/Split.js)
|
||||||
|
File: WMSGetFeatureInfo (OpenLayers/Control/WMSGetFeatureInfo.js)
|
||||||
|
File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js)
|
||||||
|
File: ZoomIn (no auto-title, OpenLayers/Control/ZoomIn.js)
|
||||||
|
File: ZoomOut (no auto-title, OpenLayers/Control/ZoomOut.js)
|
||||||
|
File: ZoomPanel (no auto-title, OpenLayers/Control/ZoomPanel.js)
|
||||||
|
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
|
||||||
|
} # Group: Control
|
||||||
|
|
||||||
|
File: Events (no auto-title, OpenLayers/Events.js)
|
||||||
|
|
||||||
|
Group: Feature {
|
||||||
|
|
||||||
|
File: Feature (no auto-title, OpenLayers/Feature.js)
|
||||||
|
File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
|
||||||
|
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
|
||||||
|
} # Group: Feature
|
||||||
|
|
||||||
|
Group: Filter {
|
||||||
|
|
||||||
|
File: Filter (no auto-title, OpenLayers/Filter.js)
|
||||||
|
File: Comparison (no auto-title, OpenLayers/Filter/Comparison.js)
|
||||||
|
File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js)
|
||||||
|
File: Logical (no auto-title, OpenLayers/Filter/Logical.js)
|
||||||
|
File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js)
|
||||||
|
} # Group: Filter
|
||||||
|
|
||||||
|
Group: Format {
|
||||||
|
|
||||||
|
File: Format (no auto-title, OpenLayers/Format.js)
|
||||||
|
File: ArcXML (no auto-title, OpenLayers/Format/ArcXML.js)
|
||||||
|
File: ArcXML.Features (no auto-title, OpenLayers/Format/ArcXML/Features.js)
|
||||||
|
File: Atom (no auto-title, OpenLayers/Format/Atom.js)
|
||||||
|
File: CSWGetDomain.DEFAULTS (no auto-title, OpenLayers/Format/CSWGetDomain.js)
|
||||||
|
File: CSWGetDomain.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetDomain/v2_0_2.js)
|
||||||
|
File: CSWGetRecords.DEFAULTS (no auto-title, OpenLayers/Format/CSWGetRecords.js)
|
||||||
|
File: CSWGetRecords.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetRecords/v2_0_2.js)
|
||||||
|
|
||||||
|
Group: Filter {
|
||||||
|
|
||||||
|
File: Filter (no auto-title, OpenLayers/Format/Filter.js)
|
||||||
|
File: v1 (no auto-title, OpenLayers/Format/Filter/v1.js)
|
||||||
|
File: v1_0_0 (no auto-title, OpenLayers/Format/Filter/v1_0_0.js)
|
||||||
|
File: v1_1_0 (OpenLayers/Format/Filter/v1_1_0.js)
|
||||||
|
} # Group: Filter
|
||||||
|
|
||||||
|
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
|
||||||
|
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
|
||||||
|
|
||||||
|
Group: GML {
|
||||||
|
|
||||||
|
File: GML (no auto-title, OpenLayers/Format/GML.js)
|
||||||
|
File: Base (no auto-title, OpenLayers/Format/GML/Base.js)
|
||||||
|
File: v2 (no auto-title, OpenLayers/Format/GML/v2.js)
|
||||||
|
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
|
||||||
|
} # Group: GML
|
||||||
|
|
||||||
|
File: GPX (no auto-title, OpenLayers/Format/GPX.js)
|
||||||
|
File: JSON (no auto-title, OpenLayers/Format/JSON.js)
|
||||||
|
File: KML (no auto-title, OpenLayers/Format/KML.js)
|
||||||
|
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
|
||||||
|
File: OWSCommon.v1_1_0 (OpenLayers/Format/OWSCommon/v1_1_0.js)
|
||||||
|
|
||||||
|
Group: SLD {
|
||||||
|
|
||||||
|
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
|
||||||
|
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
|
||||||
|
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
|
||||||
|
} # Group: SLD
|
||||||
|
|
||||||
|
File: SOSCapabilities (OpenLayers/Format/SOSCapabilities.js)
|
||||||
|
File: SOSCapabilities.v1_0_0 (OpenLayers/Format/SOSCapabilities/v1_0_0.js)
|
||||||
|
File: SOSGetObservation (OpenLayers/Format/SOSGetObservation.js)
|
||||||
|
File: Text (no auto-title, OpenLayers/Format/Text.js)
|
||||||
|
File: WFS (no auto-title, OpenLayers/Format/WFS.js)
|
||||||
|
|
||||||
|
Group: WFSCapabilities {
|
||||||
|
|
||||||
|
File: WFSCapabilities (no auto-title, OpenLayers/Format/WFSCapabilities.js)
|
||||||
|
File: v1 (no auto-title, OpenLayers/Format/WFSCapabilities/v1.js)
|
||||||
|
File: v1_0_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_0_0.js)
|
||||||
|
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
|
||||||
|
} # Group: WFSCapabilities
|
||||||
|
|
||||||
|
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
|
||||||
|
|
||||||
|
Group: WFST {
|
||||||
|
|
||||||
|
File: WFST (no auto-title, OpenLayers/Format/WFST.js)
|
||||||
|
File: v1 (OpenLayers/Format/WFST/v1.js)
|
||||||
|
File: v1_0_0 (OpenLayers/Format/WFST/v1_0_0.js)
|
||||||
|
File: v1_1_0 (OpenLayers/Format/WFST/v1_1_0.js)
|
||||||
|
} # Group: WFST
|
||||||
|
|
||||||
|
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
|
||||||
|
|
||||||
|
Group: WMC {
|
||||||
|
|
||||||
|
File: WMC (no auto-title, OpenLayers/Format/WMC.js)
|
||||||
|
File: v1 (no auto-title, OpenLayers/Format/WMC/v1.js)
|
||||||
|
File: v1_0_0 (no auto-title, OpenLayers/Format/WMC/v1_0_0.js)
|
||||||
|
File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js)
|
||||||
|
} # Group: WMC
|
||||||
|
|
||||||
|
Group: WMSCapabilities {
|
||||||
|
|
||||||
|
File: WMSCapabilities (no auto-title, OpenLayers/Format/WMSCapabilities.js)
|
||||||
|
File: v1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1.js)
|
||||||
|
File: v1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1.js)
|
||||||
|
File: v1_1_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_0.js)
|
||||||
|
File: v1_1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1.js)
|
||||||
|
File: v1_3 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3.js)
|
||||||
|
File: v1_3_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3_0.js)
|
||||||
|
} # Group: WMSCapabilities
|
||||||
|
|
||||||
|
Group: WMSDescribeLayer {
|
||||||
|
|
||||||
|
File: WMSDescribeLayer (no auto-title, OpenLayers/Format/WMSDescribeLayer.js)
|
||||||
|
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
|
||||||
|
} # Group: WMSDescribeLayer
|
||||||
|
|
||||||
|
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
|
||||||
|
File: XML (no auto-title, OpenLayers/Format/XML.js)
|
||||||
|
} # Group: Format
|
||||||
|
|
||||||
|
Group: Geometry {
|
||||||
|
|
||||||
|
File: Geometry (no auto-title, OpenLayers/Geometry.js)
|
||||||
|
File: Collection (no auto-title, OpenLayers/Geometry/Collection.js)
|
||||||
|
File: Curve (no auto-title, OpenLayers/Geometry/Curve.js)
|
||||||
|
File: LinearRing (no auto-title, OpenLayers/Geometry/LinearRing.js)
|
||||||
|
File: LineString (no auto-title, OpenLayers/Geometry/LineString.js)
|
||||||
|
File: MultiLineString (no auto-title, OpenLayers/Geometry/MultiLineString.js)
|
||||||
|
File: MultiPoint (no auto-title, OpenLayers/Geometry/MultiPoint.js)
|
||||||
|
File: MultiPolygon (no auto-title, OpenLayers/Geometry/MultiPolygon.js)
|
||||||
|
File: Point (no auto-title, OpenLayers/Geometry/Point.js)
|
||||||
|
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
|
||||||
|
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
|
||||||
|
} # Group: Geometry
|
||||||
|
|
||||||
|
Group: Handler {
|
||||||
|
|
||||||
|
File: Handler (no auto-title, OpenLayers/Handler.js)
|
||||||
|
File: Box (no auto-title, OpenLayers/Handler/Box.js)
|
||||||
|
File: Click (no auto-title, OpenLayers/Handler/Click.js)
|
||||||
|
File: Drag (no auto-title, OpenLayers/Handler/Drag.js)
|
||||||
|
File: Feature (no auto-title, OpenLayers/Handler/Feature.js)
|
||||||
|
File: Hover (no auto-title, OpenLayers/Handler/Hover.js)
|
||||||
|
File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js)
|
||||||
|
File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js)
|
||||||
|
File: Path (no auto-title, OpenLayers/Handler/Path.js)
|
||||||
|
File: Point (no auto-title, OpenLayers/Handler/Point.js)
|
||||||
|
File: Polygon (no auto-title, OpenLayers/Handler/Polygon.js)
|
||||||
|
File: RegularPolygon (no auto-title, OpenLayers/Handler/RegularPolygon.js)
|
||||||
|
} # Group: Handler
|
||||||
|
|
||||||
|
File: Icon (no auto-title, OpenLayers/Icon.js)
|
||||||
|
|
||||||
|
Group: Lang {
|
||||||
|
|
||||||
|
File: Lang (no auto-title, OpenLayers/Lang.js)
|
||||||
|
File: ar (no auto-title, OpenLayers/Lang/ar.js)
|
||||||
|
File: be-tarask (no auto-title, OpenLayers/Lang/be-tarask.js)
|
||||||
|
File: bg (no auto-title, OpenLayers/Lang/bg.js)
|
||||||
|
File: br (no auto-title, OpenLayers/Lang/br.js)
|
||||||
|
File: ca (no auto-title, OpenLayers/Lang/ca.js)
|
||||||
|
File: cs-CZ (no auto-title, OpenLayers/Lang/cs-CZ.js)
|
||||||
|
File: da-DK (no auto-title, OpenLayers/Lang/da-DK.js)
|
||||||
|
File: de (no auto-title, OpenLayers/Lang/de.js)
|
||||||
|
File: en (no auto-title, OpenLayers/Lang/en.js)
|
||||||
|
File: en-CA (no auto-title, OpenLayers/Lang/en-CA.js)
|
||||||
|
File: es (no auto-title, OpenLayers/Lang/es.js)
|
||||||
|
File: el (no auto-title, OpenLayers/Lang/el.js)
|
||||||
|
File: fi (no auto-title, OpenLayers/Lang/fi.js)
|
||||||
|
File: fr (no auto-title, OpenLayers/Lang/fr.js)
|
||||||
|
File: fur (no auto-title, OpenLayers/Lang/fur.js)
|
||||||
|
File: gl (no auto-title, OpenLayers/Lang/gl.js)
|
||||||
|
File: gsw (no auto-title, OpenLayers/Lang/gsw.js)
|
||||||
|
File: hr (no auto-title, OpenLayers/Lang/hr.js)
|
||||||
|
File: hsb (no auto-title, OpenLayers/Lang/hsb.js)
|
||||||
|
File: hu (no auto-title, OpenLayers/Lang/hu.js)
|
||||||
|
File: ia (no auto-title, OpenLayers/Lang/ia.js)
|
||||||
|
File: id (no auto-title, OpenLayers/Lang/id.js)
|
||||||
|
File: io (no auto-title, OpenLayers/Lang/io.js)
|
||||||
|
File: is (no auto-title, OpenLayers/Lang/is.js)
|
||||||
|
File: it (no auto-title, OpenLayers/Lang/it.js)
|
||||||
|
File: ja (no auto-title, OpenLayers/Lang/ja.js)
|
||||||
|
File: km (no auto-title, OpenLayers/Lang/km.js)
|
||||||
|
File: ksh (no auto-title, OpenLayers/Lang/ksh.js)
|
||||||
|
File: nds (no auto-title, OpenLayers/Lang/nds.js)
|
||||||
|
File: nb (no auto-title, OpenLayers/Lang/nb.js)
|
||||||
|
File: nl (no auto-title, OpenLayers/Lang/nl.js)
|
||||||
|
File: nn (no auto-title, OpenLayers/Lang/nn.js)
|
||||||
|
File: oc (no auto-title, OpenLayers/Lang/oc.js)
|
||||||
|
File: pt (no auto-title, OpenLayers/Lang/pt.js)
|
||||||
|
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
|
||||||
|
File: ru (no auto-title, OpenLayers/Lang/ru.js)
|
||||||
|
File: sk (no auto-title, OpenLayers/Lang/sk.js)
|
||||||
|
File: sv-SE (no auto-title, OpenLayers/Lang/sv-SE.js)
|
||||||
|
File: te (no auto-title, OpenLayers/Lang/te.js)
|
||||||
|
File: vi (no auto-title, OpenLayers/Lang/vi.js)
|
||||||
|
File: zh-CN (no auto-title, OpenLayers/Lang/zh-CN.js)
|
||||||
|
File: zh-TW (no auto-title, OpenLayers/Lang/zh-TW.js)
|
||||||
|
} # Group: Lang
|
||||||
|
|
||||||
|
Group: Layer {
|
||||||
|
|
||||||
|
File: Layer (no auto-title, OpenLayers/Layer.js)
|
||||||
|
File: ArcGIS93Rest (no auto-title, OpenLayers/Layer/ArcGIS93Rest.js)
|
||||||
|
File: ArcIMS (no auto-title, OpenLayers/Layer/ArcIMS.js)
|
||||||
|
File: Boxes (no auto-title, OpenLayers/Layer/Boxes.js)
|
||||||
|
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
|
||||||
|
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
|
||||||
|
File: GeoRSS (no auto-title, OpenLayers/Layer/GeoRSS.js)
|
||||||
|
File: GML (no auto-title, OpenLayers/Layer/GML.js)
|
||||||
|
File: Google (no auto-title, OpenLayers/Layer/Google.js)
|
||||||
|
File: Grid (no auto-title, OpenLayers/Layer/Grid.js)
|
||||||
|
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
|
||||||
|
File: Image (no auto-title, OpenLayers/Layer/Image.js)
|
||||||
|
File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js)
|
||||||
|
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
|
||||||
|
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
|
||||||
|
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
|
||||||
|
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
|
||||||
|
File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
|
||||||
|
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js)
|
||||||
|
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
|
||||||
|
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
|
||||||
|
File: Text (no auto-title, OpenLayers/Layer/Text.js)
|
||||||
|
File: TileCache (no auto-title, OpenLayers/Layer/TileCache.js)
|
||||||
|
File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
|
||||||
|
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
|
||||||
|
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
|
||||||
|
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
|
||||||
|
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
|
||||||
|
File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
|
||||||
|
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
|
||||||
|
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
|
||||||
|
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
|
||||||
|
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
|
||||||
|
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
|
||||||
|
} # Group: Layer
|
||||||
|
|
||||||
|
File: Map (no auto-title, OpenLayers/Map.js)
|
||||||
|
|
||||||
|
Group: Marker {
|
||||||
|
|
||||||
|
File: Marker (no auto-title, OpenLayers/Marker.js)
|
||||||
|
File: Box (no auto-title, OpenLayers/Marker/Box.js)
|
||||||
|
} # Group: Marker
|
||||||
|
|
||||||
|
Group: Popup {
|
||||||
|
|
||||||
|
File: Popup (no auto-title, OpenLayers/Popup.js)
|
||||||
|
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
|
||||||
|
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
|
||||||
|
File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
|
||||||
|
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
|
||||||
|
} # Group: Popup
|
||||||
|
|
||||||
|
File: Projection (no auto-title, OpenLayers/Projection.js)
|
||||||
|
|
||||||
|
Group: Protocol {
|
||||||
|
|
||||||
|
File: Protocol (no auto-title, OpenLayers/Protocol.js)
|
||||||
|
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
|
||||||
|
|
||||||
|
Group: SQL {
|
||||||
|
|
||||||
|
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
|
||||||
|
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
|
||||||
|
} # Group: SQL
|
||||||
|
|
||||||
|
Group: WFS {
|
||||||
|
|
||||||
|
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
|
||||||
|
File: v1 (no auto-title, OpenLayers/Protocol/WFS/v1.js)
|
||||||
|
File: v1_0_0 (no auto-title, OpenLayers/Protocol/WFS/v1_0_0.js)
|
||||||
|
File: v1_1_0 (no auto-title, OpenLayers/Protocol/WFS/v1_1_0.js)
|
||||||
|
} # Group: WFS
|
||||||
|
|
||||||
|
} # Group: Protocol
|
||||||
|
|
||||||
|
Group: Renderer {
|
||||||
|
|
||||||
|
File: Renderer (no auto-title, OpenLayers/Renderer.js)
|
||||||
|
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
|
||||||
|
File: Elements (no auto-title, OpenLayers/Renderer/Elements.js)
|
||||||
|
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
|
||||||
|
File: VML (no auto-title, OpenLayers/Renderer/VML.js)
|
||||||
|
} # Group: Renderer
|
||||||
|
|
||||||
|
Group: Request {
|
||||||
|
|
||||||
|
File: Request (no auto-title, OpenLayers/Request.js)
|
||||||
|
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
|
||||||
|
} # Group: Request
|
||||||
|
|
||||||
|
File: Rule (no auto-title, OpenLayers/Rule.js)
|
||||||
|
|
||||||
|
Group: Strategy {
|
||||||
|
|
||||||
|
File: Strategy (no auto-title, OpenLayers/Strategy.js)
|
||||||
|
File: BBOX (no auto-title, OpenLayers/Strategy/BBOX.js)
|
||||||
|
File: Cluster (no auto-title, OpenLayers/Strategy/Cluster.js)
|
||||||
|
File: Fixed (no auto-title, OpenLayers/Strategy/Fixed.js)
|
||||||
|
File: Paging (no auto-title, OpenLayers/Strategy/Paging.js)
|
||||||
|
File: Refresh (OpenLayers/Strategy/Refresh.js)
|
||||||
|
File: Save (OpenLayers/Strategy/Save.js)
|
||||||
|
} # Group: Strategy
|
||||||
|
|
||||||
|
File: Style (no auto-title, OpenLayers/Style.js)
|
||||||
|
File: StyleMap (no auto-title, OpenLayers/StyleMap.js)
|
||||||
|
|
||||||
|
Group: Tile {
|
||||||
|
|
||||||
|
File: Tile (no auto-title, OpenLayers/Tile.js)
|
||||||
|
File: Image (no auto-title, OpenLayers/Tile/Image.js)
|
||||||
|
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
|
||||||
|
File: IFrame (OpenLayers/Tile/Image/IFrame.js)
|
||||||
|
} # Group: Tile
|
||||||
|
|
||||||
|
File: Tween (no auto-title, OpenLayers/Tween.js)
|
||||||
|
File: Util (no auto-title, OpenLayers/Util.js)
|
||||||
|
} # Group: OpenLayers
|
||||||
|
|
||||||
|
Group: Index {
|
||||||
|
|
||||||
|
Index: Everything
|
||||||
|
Class Index: Classes
|
||||||
|
Constant Index: Constants
|
||||||
|
Function Index: Functions
|
||||||
|
Property Index: Properties
|
||||||
|
File Index: Files
|
||||||
|
Constructor Index: Constructor
|
||||||
|
} # Group: Index
|
||||||
|
|
||||||
20
apidoc_config/OL.css
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
p {
|
||||||
|
text-indent: 0; margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.MGroup {
|
||||||
|
font-variant: normal;
|
||||||
|
margin: 0.4em 0 0em 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.MTitle {
|
||||||
|
font-variant: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.CGroup .CTitle {
|
||||||
|
font-variant: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SGroup .SEntry {
|
||||||
|
font-variant: normal;
|
||||||
|
}
|
||||||
105
apidoc_config/Topics.txt
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
Format: Development Release 12-07-2007 (1.35 base)
|
||||||
|
|
||||||
|
# This is the Natural Docs topics file for this project. If you change anything
|
||||||
|
# here, it will apply to THIS PROJECT ONLY. If you'd like to change something
|
||||||
|
# for all your projects, edit the Topics.txt in Natural Docs' Config directory
|
||||||
|
# instead.
|
||||||
|
|
||||||
|
|
||||||
|
Ignore Keywords:
|
||||||
|
function, functions
|
||||||
|
func, funcs
|
||||||
|
procedure, procedures
|
||||||
|
proc, procs
|
||||||
|
routine, routines
|
||||||
|
subroutine, subroutines
|
||||||
|
sub, subs
|
||||||
|
method, methods
|
||||||
|
callback, callbacks
|
||||||
|
property, properties
|
||||||
|
prop, props
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# SYNTAX:
|
||||||
|
#
|
||||||
|
# Topic Type: [name]
|
||||||
|
# Alter Topic Type: [name]
|
||||||
|
# Creates a new topic type or alters one from the main file. Each type gets
|
||||||
|
# its own index and behavior settings. Its name can have letters, numbers,
|
||||||
|
# spaces, and these charaters: - / . '
|
||||||
|
#
|
||||||
|
# Plural: [name]
|
||||||
|
# Sets the plural name of the topic type, if different.
|
||||||
|
#
|
||||||
|
# Keywords:
|
||||||
|
# [keyword]
|
||||||
|
# [keyword], [plural keyword]
|
||||||
|
# ...
|
||||||
|
# Defines or adds to the list of keywords for the topic type. They may only
|
||||||
|
# contain letters, numbers, and spaces and are not case sensitive. Plural
|
||||||
|
# keywords are used for list topics. You can redefine keywords found in the
|
||||||
|
# main topics file.
|
||||||
|
#
|
||||||
|
# Index: [yes|no]
|
||||||
|
# Whether the topics get their own index. Defaults to yes. Everything is
|
||||||
|
# included in the general index regardless of this setting.
|
||||||
|
#
|
||||||
|
# Scope: [normal|start|end|always global]
|
||||||
|
# How the topics affects scope. Defaults to normal.
|
||||||
|
# normal - Topics stay within the current scope.
|
||||||
|
# start - Topics start a new scope for all the topics beneath it,
|
||||||
|
# like class topics.
|
||||||
|
# end - Topics reset the scope back to global for all the topics
|
||||||
|
# beneath it.
|
||||||
|
# always global - Topics are defined as global, but do not change the scope
|
||||||
|
# for any other topics.
|
||||||
|
#
|
||||||
|
# Class Hierarchy: [yes|no]
|
||||||
|
# Whether the topics are part of the class hierarchy. Defaults to no.
|
||||||
|
#
|
||||||
|
# Page Title If First: [yes|no]
|
||||||
|
# Whether the topic's title becomes the page title if it's the first one in
|
||||||
|
# a file. Defaults to no.
|
||||||
|
#
|
||||||
|
# Break Lists: [yes|no]
|
||||||
|
# Whether list topics should be broken into individual topics in the output.
|
||||||
|
# Defaults to no.
|
||||||
|
#
|
||||||
|
# Can Group With: [type], [type], ...
|
||||||
|
# Defines a list of topic types that this one can possibly be grouped with.
|
||||||
|
# Defaults to none.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# The following topics are defined in the main file, if you'd like to alter
|
||||||
|
# their behavior or add keywords:
|
||||||
|
#
|
||||||
|
# Generic, Class, Interface, Section, File, Group, Function, Variable,
|
||||||
|
# Property, Type, Constant, Enumeration, Event, Delegate, Macro,
|
||||||
|
# Database, Database Table, Database View, Database Index, Database
|
||||||
|
# Cursor, Database Trigger, Cookie, Build Target
|
||||||
|
|
||||||
|
# If you add something that you think would be useful to other developers
|
||||||
|
# and should be included in Natural Docs by default, please e-mail it to
|
||||||
|
# topics [at] naturaldocs [dot] org.
|
||||||
|
|
||||||
|
|
||||||
|
Topic Type: Constructor
|
||||||
|
|
||||||
|
Class Hierarchy: Yes
|
||||||
|
Keywords:
|
||||||
|
constructor
|
||||||
|
initialize
|
||||||
|
|
||||||
|
|
||||||
|
Alter Topic Type: Function
|
||||||
|
|
||||||
|
Add Keywords:
|
||||||
|
apimethod
|
||||||
|
apifunction
|
||||||
|
|
||||||
|
|
||||||
|
Alter Topic Type: Property
|
||||||
|
|
||||||
|
Add Keywords:
|
||||||
|
apiproperty
|
||||||
127
art/arrows.svg
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="18.000000px"
|
||||||
|
height="18.000000px"
|
||||||
|
id="svg2"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.42"
|
||||||
|
sodipodi:docbase="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements"
|
||||||
|
sodipodi:docname="pan_icons.svg"
|
||||||
|
inkscape:export-filename="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements/zoom-minus-mini.png"
|
||||||
|
inkscape:export-xdpi="90.000000"
|
||||||
|
inkscape:export-ydpi="90.000000">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.0000000"
|
||||||
|
inkscape:cx="9.0000000"
|
||||||
|
inkscape:cy="9.0000000"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
inkscape:window-width="1226"
|
||||||
|
inkscape:window-height="800"
|
||||||
|
inkscape:window-x="42"
|
||||||
|
inkscape:window-y="22" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="background"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="g2110">
|
||||||
|
<path
|
||||||
|
transform="matrix(0.000000,-1.003160,1.003160,0.000000,-2.844000e-2,18.02844)"
|
||||||
|
d="M 17.971654 9.0000000 A 8.9716539 8.9716539 0 1 1 0.028346062,9.0000000 A 8.9716539 8.9716539 0 1 1 17.971654 9.0000000 z"
|
||||||
|
sodipodi:ry="8.9716539"
|
||||||
|
sodipodi:rx="8.9716539"
|
||||||
|
sodipodi:cy="9.0000000"
|
||||||
|
sodipodi:cx="9.0000000"
|
||||||
|
id="path2059"
|
||||||
|
style="fill:#00008b;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||||
|
sodipodi:type="arc" />
|
||||||
|
<rect
|
||||||
|
transform="matrix(0.000000,-1.000000,1.000000,0.000000,0.000000,0.000000)"
|
||||||
|
y="4.3599998e-06"
|
||||||
|
x="-9.0000048"
|
||||||
|
height="18.000000"
|
||||||
|
width="9.0000000"
|
||||||
|
id="rect2061"
|
||||||
|
style="fill:#00008b;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="zoom"
|
||||||
|
style="display:inline">
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-size:18.000000px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125.00000%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Helvetica"
|
||||||
|
x="3.7485352"
|
||||||
|
y="-3.4077148"
|
||||||
|
id="text2114"
|
||||||
|
sodipodi:linespacing="125.00000%"
|
||||||
|
transform="scale(1.000000,-1.000000)"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan2118"
|
||||||
|
x="3.7485352"
|
||||||
|
y="-3.4077148">−</tspan></text>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer2"
|
||||||
|
inkscape:label="overlay"
|
||||||
|
style="display:none">
|
||||||
|
<path
|
||||||
|
style="font-size:12.000000px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125.00000%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana"
|
||||||
|
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
|
||||||
|
id="text2082"
|
||||||
|
sodipodi:nodetypes="csccsssscccssscccssssccscc" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer3"
|
||||||
|
inkscape:label="pan triangle"
|
||||||
|
style="display:none">
|
||||||
|
<path
|
||||||
|
sodipodi:type="star"
|
||||||
|
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||||
|
id="path2107"
|
||||||
|
sodipodi:sides="3"
|
||||||
|
sodipodi:cx="6.8031497"
|
||||||
|
sodipodi:cy="5.1874018"
|
||||||
|
sodipodi:r1="5.0880113"
|
||||||
|
sodipodi:r2="2.5440056"
|
||||||
|
sodipodi:arg1="1.0471976"
|
||||||
|
sodipodi:arg2="2.0943951"
|
||||||
|
inkscape:flatsided="false"
|
||||||
|
inkscape:rounded="0.0000000"
|
||||||
|
inkscape:randomized="0.0000000"
|
||||||
|
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
|
||||||
|
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6.3 KiB |
128
art/layer-switcher-maximize.svg
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="18.000000px"
|
||||||
|
height="18.000000px"
|
||||||
|
id="svg2"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.43"
|
||||||
|
sodipodi:docbase="/home/sderle/projects/openlayers/layerswitcher/art"
|
||||||
|
sodipodi:docname="layer-switcher-maximize.svg"
|
||||||
|
inkscape:export-filename="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements/zoom-minus-mini.png"
|
||||||
|
inkscape:export-xdpi="90.000000"
|
||||||
|
inkscape:export-ydpi="90.000000">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="16"
|
||||||
|
inkscape:cx="9"
|
||||||
|
inkscape:cy="9"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer4"
|
||||||
|
inkscape:window-width="1226"
|
||||||
|
inkscape:window-height="800"
|
||||||
|
inkscape:window-x="42"
|
||||||
|
inkscape:window-y="25" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="background"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<g
|
||||||
|
id="g2110"
|
||||||
|
transform="matrix(-7.849624e-17,1,-1,-7.849624e-17,18,0)">
|
||||||
|
<path
|
||||||
|
transform="matrix(0,-1.00316,1.00316,0,-2.844e-2,18.02844)"
|
||||||
|
d="M 17.971654 9 A 8.9716539 8.9716539 0 1 1 0.028346062,9 A 8.9716539 8.9716539 0 1 1 17.971654 9 z"
|
||||||
|
sodipodi:ry="8.9716539"
|
||||||
|
sodipodi:rx="8.9716539"
|
||||||
|
sodipodi:cy="9"
|
||||||
|
sodipodi:cx="9"
|
||||||
|
id="path2059"
|
||||||
|
style="fill:#00008b;fill-opacity:1;stroke:none;stroke-width:39.98414612;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
sodipodi:type="arc" />
|
||||||
|
<rect
|
||||||
|
transform="matrix(0,-1,1,0,0,0)"
|
||||||
|
y="4.3599998e-06"
|
||||||
|
x="-9.0000048"
|
||||||
|
height="18"
|
||||||
|
width="9"
|
||||||
|
id="rect2061"
|
||||||
|
style="fill:#00008b;fill-opacity:1;stroke:none;stroke-width:39.98414612;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:label="zoom"
|
||||||
|
style="display:inline">
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-size:18px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1;display:inline;font-family:Helvetica"
|
||||||
|
x="1.5214844"
|
||||||
|
y="-3.2949219"
|
||||||
|
id="text2114"
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
transform="scale(1,-1)"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan2118"
|
||||||
|
x="1.5214844"
|
||||||
|
y="-3.2949219">+</tspan></text>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer2"
|
||||||
|
inkscape:label="overlay"
|
||||||
|
style="display:none">
|
||||||
|
<path
|
||||||
|
style="font-size:12.000000px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125.00000%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana"
|
||||||
|
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
|
||||||
|
id="text2082"
|
||||||
|
sodipodi:nodetypes="csccsssscccssscccssssccscc" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer3"
|
||||||
|
inkscape:label="pan triangle"
|
||||||
|
style="display:none">
|
||||||
|
<path
|
||||||
|
sodipodi:type="star"
|
||||||
|
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||||
|
id="path2107"
|
||||||
|
sodipodi:sides="3"
|
||||||
|
sodipodi:cx="6.8031497"
|
||||||
|
sodipodi:cy="5.1874018"
|
||||||
|
sodipodi:r1="5.0880113"
|
||||||
|
sodipodi:r2="2.5440056"
|
||||||
|
sodipodi:arg1="1.0471976"
|
||||||
|
sodipodi:arg2="2.0943951"
|
||||||
|
inkscape:flatsided="false"
|
||||||
|
inkscape:rounded="0.0000000"
|
||||||
|
inkscape:randomized="0.0000000"
|
||||||
|
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
|
||||||
|
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6.1 KiB |
142
art/layer-switcher-minimize.svg
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
inkscape:export-ydpi="90.000000"
|
||||||
|
inkscape:export-xdpi="90.000000"
|
||||||
|
inkscape:export-filename="/home/sderle/projects/openlayers/layerswitcher/img/layer-switcher-minimize.png"
|
||||||
|
sodipodi:docname="layer-switcher-minimize.svg"
|
||||||
|
sodipodi:docbase="/home/sderle/projects/openlayers/layerswitcher/art"
|
||||||
|
inkscape:version="0.43"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
id="svg2"
|
||||||
|
height="18.000000px"
|
||||||
|
width="18.000000px">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
inkscape:window-y="26"
|
||||||
|
inkscape:window-x="42"
|
||||||
|
inkscape:window-height="800"
|
||||||
|
inkscape:window-width="1226"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:cy="9.3025513"
|
||||||
|
inkscape:cx="9"
|
||||||
|
inkscape:zoom="16"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
borderopacity="1.0"
|
||||||
|
bordercolor="#666666"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
id="base" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
style="display:inline"
|
||||||
|
id="layer1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="background">
|
||||||
|
<rect
|
||||||
|
style="fill:#00008b;fill-opacity:0;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
id="rect2061"
|
||||||
|
width="18.014498"
|
||||||
|
height="18.000000"
|
||||||
|
x="-18.014502"
|
||||||
|
y="4.3599998e-06"
|
||||||
|
transform="matrix(0.000000,-1.000000,1.000000,0.000000,0.000000,0.000000)"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90"
|
||||||
|
inkscape:export-filename="/home/sderle/projects/openlayers/layerswitcher/art/layer-switcher-minimize.png" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:label="graticule"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-size:18px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1;display:inline;font-family:Helvetica"
|
||||||
|
x="5.2802601"
|
||||||
|
y="-3.8032362"
|
||||||
|
id="text1432"
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
transform="scale(1,-1)"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan1434"
|
||||||
|
x="5.2802601"
|
||||||
|
y="-3.8032362">-</tspan></text>
|
||||||
|
<rect
|
||||||
|
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.99699599px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||||
|
id="rect1438"
|
||||||
|
width="13.003004"
|
||||||
|
height="13.002999"
|
||||||
|
x="2.498498"
|
||||||
|
y="2.4984975" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
style="display:none"
|
||||||
|
inkscape:label="zoom"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<text
|
||||||
|
transform="scale(1.000000,-1.000000)"
|
||||||
|
sodipodi:linespacing="125.00000%"
|
||||||
|
id="text2114"
|
||||||
|
y="-3.4077148"
|
||||||
|
x="3.7485352"
|
||||||
|
style="font-size:18.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Helvetica;text-anchor:start;writing-mode:lr-tb"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="-3.4077148"
|
||||||
|
x="3.7485352"
|
||||||
|
id="tspan2118"
|
||||||
|
sodipodi:role="line">−</tspan></text>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
style="display:none"
|
||||||
|
inkscape:label="overlay"
|
||||||
|
id="layer2"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="csccsssscccssscccssssccscc"
|
||||||
|
id="text2082"
|
||||||
|
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
|
||||||
|
style="font-size:12.000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana;text-anchor:start;writing-mode:lr-tb" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
style="display:none"
|
||||||
|
inkscape:label="pan triangle"
|
||||||
|
id="layer3"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<path
|
||||||
|
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)"
|
||||||
|
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
|
||||||
|
inkscape:randomized="0.0000000"
|
||||||
|
inkscape:rounded="0.0000000"
|
||||||
|
inkscape:flatsided="false"
|
||||||
|
sodipodi:arg2="2.0943951"
|
||||||
|
sodipodi:arg1="1.0471976"
|
||||||
|
sodipodi:r2="2.5440056"
|
||||||
|
sodipodi:r1="5.0880113"
|
||||||
|
sodipodi:cy="5.1874018"
|
||||||
|
sodipodi:cx="6.8031497"
|
||||||
|
sodipodi:sides="3"
|
||||||
|
id="path2107"
|
||||||
|
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
sodipodi:type="star" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6.6 KiB |
25
art/marker.svg
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||||
|
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||||
|
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
|
||||||
|
]>
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns:i="&ns_ai;"
|
||||||
|
xmlns="&ns_svg;" width="20.5" height="24.5" viewBox="0 0 20.5 24.5"
|
||||||
|
overflow="visible" enable-background="new 0 0 20.5 24.5" xml:space="preserve">
|
||||||
|
<g i:extraneous="self">
|
||||||
|
<rect x="0.25" y="0.25" opacity="0" stroke="#000000" stroke-width="1" width="20" height="24"/>
|
||||||
|
<g id="XMLID_2_">
|
||||||
|
<g>
|
||||||
|
<polygon fill="#FF0000" points="10.12,0.6 19.93,7.71 10.06,24.03 0.6,7.58 "/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#000000" stroke-width="1" points="9.98,24.16 10.06,24.03 19.93,7.71 20.06,7.49 "/>
|
||||||
|
<polyline fill="none" stroke="#000000" stroke-width="1" points="10.13,24.16 10.06,24.03 0.6,7.58 0.5,7.41 "/>
|
||||||
|
<polyline fill="none" stroke="#000000" stroke-width="1" points="0.41,7.72 0.6,7.58 10.12,0.6 10.29,0.47 "/>
|
||||||
|
<polyline fill="none" stroke="#000000" stroke-width="1" points="9.94,0.47 10.12,0.6 19.93,7.71 20.06,7.8 "/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<ellipse stroke="#000000" stroke-width="1" cx="10.125" cy="9.25" rx="1.5" ry="1.5"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
36
art/measuring-stick-off.svg
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||||
|
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||||
|
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||||
|
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||||
|
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
|
||||||
|
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
|
||||||
|
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
|
||||||
|
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
|
||||||
|
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
|
||||||
|
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
|
||||||
|
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
|
||||||
|
]>
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||||
|
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
|
||||||
|
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
|
||||||
|
<g i:extraneous="self">
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
|
||||||
|
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
|
||||||
|
<rect x="0.875" y="1.045" fill="#00008B" width="27.125" height="26"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="1" x2="0.875" y2="27"/>
|
||||||
|
|
||||||
|
<rect x="5.252" y="11.157" transform="matrix(0.7933 -0.6088 0.6088 0.7933 -5.1621 12.1086)" fill="#FFBF00" width="20" height="5"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="8.376" y1="15.783" x2="10.717" y2="18.766"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="11.946" y1="13.043" x2="14.288" y2="16.027"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="15.342" y1="10.437" x2="17.684" y2="13.42"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="18.69" y1="7.869" x2="21.03" y2="10.852"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
36
art/measuring-stick-on.svg
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||||
|
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||||
|
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||||
|
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||||
|
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
|
||||||
|
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
|
||||||
|
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
|
||||||
|
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
|
||||||
|
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
|
||||||
|
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
|
||||||
|
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
|
||||||
|
]>
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||||
|
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
|
||||||
|
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
|
||||||
|
<g i:extraneous="self">
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
|
||||||
|
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
|
||||||
|
<rect x="0.875" y="1.045" fill="#ADD8E6" width="27.125" height="26"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="0.875" y1="1" x2="0.875" y2="27"/>
|
||||||
|
|
||||||
|
<rect x="4.252" y="12.157" transform="matrix(0.7933 -0.6088 0.6088 0.7933 -5.9776 11.7065)" fill="#FFBF00" width="20" height="5"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="7.376" y1="16.783" x2="9.717" y2="19.766"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="10.946" y1="14.043" x2="13.288" y2="17.027"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="14.342" y1="11.437" x2="16.684" y2="14.42"/>
|
||||||
|
<line fill="#FFBF00" stroke="#000000" x1="17.69" y1="8.869" x2="20.03" y2="11.852"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.3 KiB |
44
art/panning-hand-off.svg
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||||
|
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||||
|
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||||
|
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||||
|
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
|
||||||
|
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
|
||||||
|
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
|
||||||
|
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
|
||||||
|
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
|
||||||
|
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
|
||||||
|
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
|
||||||
|
]>
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||||
|
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
|
||||||
|
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
|
||||||
|
<g i:extraneous="self">
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
|
||||||
|
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
|
||||||
|
<rect x="0.875" y="1.045" fill="#00008B" width="27.125" height="26"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="1" x2="0.875" y2="27"/>
|
||||||
|
<path fill="#FFFFFF" stroke="#000000" d="M9.458,22.458c-0.473-0.168-1.02-1.269-1.363-1.695
|
||||||
|
c-0.479-0.595-0.894-1.245-1.377-1.829c-0.733-0.887-1.356-1.729-1.854-2.764c-0.375-0.782-0.884-1.997-0.005-2.648
|
||||||
|
c1.036-0.767,2.095-0.162,2.934,0.479c0.844,0.646,1.729,1.18,2.526,1.869c-0.372-0.305-0.548-0.986-0.778-1.421
|
||||||
|
c-0.253-0.477-0.565-0.906-0.822-1.375c-0.359-0.657-0.767-1.201-1.21-1.823c-0.544-0.763-1.051-1.74-0.925-2.709
|
||||||
|
c0.133-1.025,0.972-1.527,1.924-1.207c1.202,0.405,1.969,1.692,2.627,2.698c0.636,0.971,1.201,2.159,1.938,3.042
|
||||||
|
c-0.222-0.209-0.148-0.508-0.155-0.782c-0.01-0.37-0.097-0.626-0.219-0.967c-0.162-0.455-0.219-0.972-0.24-1.45
|
||||||
|
c-0.034-0.776-0.25-1.465-0.25-2.247c0-0.988-0.14-1.963,0.71-2.631c0.666-0.523,1.649-0.764,2.381-0.248
|
||||||
|
c1.385,0.976,1.057,2.999,1.209,4.458c0.079,0.759,0.165,1.489,0.2,2.263c0.022,0.496,0.209,1.067,0.168,1.558
|
||||||
|
c-0.146-0.269-0.113-0.749-0.127-1.057c-0.022-0.502-0.041-0.982-0.115-1.47c-0.114-0.743-0.188-1.564-0.25-2.324
|
||||||
|
c-0.152-1.877,2.054-3.17,3.301-1.469c0.884,1.206,0.773,2.643,0.773,4.085c0,0.698-0.034,1.251-0.22,1.91
|
||||||
|
c-0.13,0.459-0.293,1.222-0.239,1.638c0-0.902,0.334-1.697,0.334-2.588c0-0.678-0.272-2.099,0.581-2.334
|
||||||
|
c1.065-0.294,2.008,0.875,2.428,1.66c0.458,0.855,0.555,1.901,0.409,2.882c-0.318,2.154-0.845,4.227-2.096,6.072
|
||||||
|
c-0.268,0.396-0.485,0.838-0.79,1.22c-0.361,0.452-0.923,0.772-1.416,1.071c-0.381,0.232-0.764,0.53-1.176,0.604
|
||||||
|
c-0.822,0.149-1.725,0.157-2.565,0.157c-1.29,0-2.564-0.068-3.832-0.251c-0.799-0.115-2.12,0.153-2.668-0.54"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.3 KiB |
44
art/panning-hand-on.svg
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||||
|
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||||
|
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||||
|
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||||
|
<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
|
||||||
|
<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
|
||||||
|
<!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/">
|
||||||
|
<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
|
||||||
|
<!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/">
|
||||||
|
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
|
||||||
|
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
|
||||||
|
]>
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||||
|
xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="28.375" height="28" viewBox="0 0 28.375 28"
|
||||||
|
overflow="visible" enable-background="new 0 0 28.375 28" xml:space="preserve">
|
||||||
|
<g i:extraneous="self">
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M27.875,1.375"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M0,1.375"/>
|
||||||
|
<path fill="none" stroke="#FFFFFF" d="M0,27.475"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,27.645"/>
|
||||||
|
<path fill="none" stroke="#00008B" stroke-width="1.5" d="M1,0.544"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="0.875" y1="27.5" x2="27.875" y2="27.475"/>
|
||||||
|
<rect x="0.875" y="1.045" fill="#ADD8E6" width="27.125" height="26"/>
|
||||||
|
<line fill="none" stroke="#FFFFFF" x1="27.875" y1="26.925" x2="27.875" y2="0.925"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="1.375" y1="0.5" x2="27.375" y2="0.5"/>
|
||||||
|
<line fill="none" stroke="#00008B" x1="0.875" y1="1" x2="0.875" y2="27"/>
|
||||||
|
<path fill="#FFFFFF" stroke="#000000" d="M8.458,23.458c-0.473-0.168-1.02-1.269-1.363-1.695
|
||||||
|
c-0.479-0.595-0.894-1.245-1.377-1.829c-0.733-0.887-1.356-1.729-1.854-2.764c-0.375-0.782-0.884-1.997-0.005-2.648
|
||||||
|
c1.036-0.767,2.095-0.161,2.934,0.479c0.844,0.646,1.729,1.18,2.526,1.869c-0.372-0.305-0.548-0.986-0.778-1.421
|
||||||
|
c-0.253-0.477-0.565-0.906-0.822-1.375c-0.359-0.657-0.767-1.201-1.21-1.823c-0.544-0.763-1.051-1.74-0.925-2.709
|
||||||
|
c0.133-1.025,0.972-1.527,1.924-1.207c1.202,0.405,1.969,1.692,2.627,2.698c0.636,0.971,1.201,2.159,1.938,3.042
|
||||||
|
c-0.222-0.21-0.148-0.509-0.155-0.783c-0.01-0.37-0.097-0.626-0.219-0.967c-0.162-0.455-0.219-0.972-0.24-1.45
|
||||||
|
c-0.034-0.776-0.25-1.465-0.25-2.247c0-0.988-0.14-1.963,0.71-2.631c0.666-0.523,1.649-0.764,2.381-0.248
|
||||||
|
c1.385,0.976,1.057,2.999,1.209,4.458c0.079,0.759,0.165,1.489,0.2,2.263c0.022,0.496,0.209,1.068,0.168,1.558
|
||||||
|
c-0.146-0.27-0.113-0.75-0.127-1.058c-0.022-0.502-0.041-0.982-0.115-1.47c-0.114-0.743-0.188-1.564-0.25-2.324
|
||||||
|
c-0.152-1.877,2.054-3.17,3.301-1.469c0.884,1.206,0.773,2.643,0.773,4.085c0,0.698-0.034,1.251-0.22,1.91
|
||||||
|
c-0.13,0.459-0.293,1.222-0.239,1.639c0-0.902,0.334-1.697,0.334-2.589c0-0.678-0.272-2.099,0.581-2.334
|
||||||
|
c1.065-0.294,2.008,0.875,2.428,1.66c0.458,0.855,0.555,1.901,0.409,2.883c-0.318,2.153-0.845,4.227-2.096,6.071
|
||||||
|
c-0.268,0.396-0.485,0.838-0.79,1.22c-0.361,0.452-0.923,0.772-1.416,1.071c-0.381,0.232-0.764,0.53-1.176,0.604
|
||||||
|
c-0.822,0.149-1.725,0.157-2.565,0.157c-1.29,0-2.564-0.068-3.832-0.251c-0.799-0.115-2.12,0.153-2.668-0.54"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.3 KiB |
71
art/slider.svg
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="210mm"
|
||||||
|
height="297mm"
|
||||||
|
id="svg2"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.41.1"
|
||||||
|
sodipodi:docbase="/afs/metacarta.com/user/sderle/public_html/ol.zoombar/art"
|
||||||
|
sodipodi:docname="slider.svg"
|
||||||
|
inkscape:export-filename="/afs/metacarta.com/user/sderle/public_html/ol.zoombar/img/slider.png"
|
||||||
|
inkscape:export-xdpi="90.000000"
|
||||||
|
inkscape:export-ydpi="90.000000">
|
||||||
|
<defs
|
||||||
|
id="defs3" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="39.870978"
|
||||||
|
inkscape:cx="140.00732"
|
||||||
|
inkscape:cy="695.49796"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:window-width="1010"
|
||||||
|
inkscape:window-height="538"
|
||||||
|
inkscape:window-x="20"
|
||||||
|
inkscape:window-y="107" />
|
||||||
|
<metadata
|
||||||
|
id="metadata4">
|
||||||
|
<rdf:RDF
|
||||||
|
id="RDF5">
|
||||||
|
<cc:Work
|
||||||
|
rdf:about=""
|
||||||
|
id="Work6">
|
||||||
|
<dc:format
|
||||||
|
id="format7">image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
id="type9"
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="fill:#00008b;fill-opacity:1.0000000;stroke:#000080;stroke-width:4.9999957;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
id="rect1291"
|
||||||
|
x="132.50000"
|
||||||
|
y="354.86218"
|
||||||
|
width="15.014628"
|
||||||
|
height="4.0040474" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:2.0000000;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
d="M 134.08880,356.89603 L 146.00000,356.87002"
|
||||||
|
id="path2052" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.4 KiB |
193
art/zoom-world.svg
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:xml="http://www.w3.org/XML/1998/namespace"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
inkscape:export-ydpi="90.000000"
|
||||||
|
inkscape:export-xdpi="90.000000"
|
||||||
|
inkscape:export-filename="/Users/phil/Documents/work/metacarta/2svn.openlayers.net/follower/code/b-edits-1/openlayers/assets/ui_elements/zoom-minus-mini.png"
|
||||||
|
sodipodi:docname="zoom-world.svg"
|
||||||
|
sodipodi:docbase="/afs/metacarta.com/user/sderle/OL/openlayers/assets/ui_elements"
|
||||||
|
inkscape:version="0.41.1"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
id="svg2"
|
||||||
|
height="18.000000px"
|
||||||
|
width="18.000000px">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
inkscape:window-y="26"
|
||||||
|
inkscape:window-x="42"
|
||||||
|
inkscape:window-height="800"
|
||||||
|
inkscape:window-width="1226"
|
||||||
|
inkscape:current-layer="layer5"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:cy="9.3025513"
|
||||||
|
inkscape:cx="9.0000000"
|
||||||
|
inkscape:zoom="1.0000000"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
borderopacity="1.0"
|
||||||
|
bordercolor="#666666"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
id="base" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF
|
||||||
|
id="RDF1295">
|
||||||
|
<cc:Work
|
||||||
|
id="Work1297"
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format
|
||||||
|
id="format1299">image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
id="type1301"
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
style="display:inline"
|
||||||
|
id="layer1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
inkscape:label="background">
|
||||||
|
<rect
|
||||||
|
style="fill:#00008b;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
id="rect2061"
|
||||||
|
width="18.014498"
|
||||||
|
height="18.000000"
|
||||||
|
x="-18.014502"
|
||||||
|
y="4.3599998e-06"
|
||||||
|
transform="matrix(0.000000,-1.000000,1.000000,0.000000,0.000000,0.000000)" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:label="graticule"
|
||||||
|
id="layer5"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<g
|
||||||
|
transform="translate(0.000000,-4.419417e-2)"
|
||||||
|
id="g2876">
|
||||||
|
<path
|
||||||
|
transform="matrix(1.155321,0.000000,0.000000,1.155321,-2.292065,-1.751761)"
|
||||||
|
d="M 16.869573 9.3188362 A 7.0579743 7.0579743 0 1 1 2.7536244,9.3188362 A 7.0579743 7.0579743 0 1 1 16.869573 9.3188362 z"
|
||||||
|
sodipodi:ry="7.0579743"
|
||||||
|
sodipodi:rx="7.0579743"
|
||||||
|
sodipodi:cy="9.3188362"
|
||||||
|
sodipodi:cx="9.8115988"
|
||||||
|
id="path1321"
|
||||||
|
style="fill:none;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:0.50000000;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
sodipodi:type="arc" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2086"
|
||||||
|
d="M 8.1145142,1.1289949 C 15.315267,9.5238831 8.3963197,17.101449 8.3963197,17.057255"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2846"
|
||||||
|
d="M 11.588885,1.3666059 C 18.922222,9.5405232 11.605526,16.764536 11.605526,16.764536"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2848"
|
||||||
|
d="M 5.2258471,2.0593951 C 11.080923,9.7405585 5.3432210,16.278941 5.3432210,16.278941"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2850"
|
||||||
|
d="M 2.7388198,3.7571959 C 6.3686281,9.1817837 2.9127331,14.361601 2.9127331,14.361601"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
transform="matrix(-6.269315e-2,0.998033,-0.998033,-6.269315e-2,18.62352,0.612232)"
|
||||||
|
id="g2883">
|
||||||
|
<path
|
||||||
|
transform="matrix(1.155321,0.000000,0.000000,1.155321,-2.292065,-1.751761)"
|
||||||
|
d="M 16.869573 9.3188362 A 7.0579743 7.0579743 0 1 1 2.7536244,9.3188362 A 7.0579743 7.0579743 0 1 1 16.869573 9.3188362 z"
|
||||||
|
sodipodi:ry="7.0579743"
|
||||||
|
sodipodi:rx="7.0579743"
|
||||||
|
sodipodi:cy="9.3188362"
|
||||||
|
sodipodi:cx="9.8115988"
|
||||||
|
id="path2885"
|
||||||
|
style="fill:none;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:0.50000000;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
sodipodi:type="arc" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2887"
|
||||||
|
d="M 8.1145142,1.1289949 C 15.315267,9.5238831 8.3963197,17.101449 8.3963197,17.057255"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2889"
|
||||||
|
d="M 11.588885,1.3666059 C 18.922222,9.5405232 11.605526,16.764536 11.605526,16.764536"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2891"
|
||||||
|
d="M 5.2258471,2.0593951 C 11.080923,9.7405585 5.3432210,16.278941 5.3432210,16.278941"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
id="path2893"
|
||||||
|
d="M 2.7388198,3.7571959 C 6.3686281,9.1817837 2.9127331,14.361601 2.9127331,14.361601"
|
||||||
|
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
style="display:none"
|
||||||
|
inkscape:label="zoom"
|
||||||
|
id="layer4"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<text
|
||||||
|
transform="scale(1.000000,-1.000000)"
|
||||||
|
sodipodi:linespacing="125.00000%"
|
||||||
|
id="text2114"
|
||||||
|
y="-3.4077148"
|
||||||
|
x="3.7485352"
|
||||||
|
style="font-size:18.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Helvetica;text-anchor:start;writing-mode:lr-tb"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="-3.4077148"
|
||||||
|
x="3.7485352"
|
||||||
|
id="tspan2118"
|
||||||
|
sodipodi:role="line">−</tspan></text>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
style="display:none"
|
||||||
|
inkscape:label="overlay"
|
||||||
|
id="layer2"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="csccsssscccssscccssssccscc"
|
||||||
|
id="text2082"
|
||||||
|
d="M 2.9678210,9.0332227 C 2.9678314,9.5015070 3.1752531,9.8938504 3.5900866,10.210254 C 3.6463464,10.254553 3.9451742,10.453889 4.4865710,10.808262 L 8.1568835,13.247754 C 8.2693886,13.323691 8.4240759,13.393300 8.6209460,13.456582 C 8.8107943,13.519862 9.0041535,13.551503 9.2010240,13.551504 C 9.5736843,13.551503 9.8936056,13.431269 10.160789,13.190801 C 10.427980,12.950332 10.561574,12.659238 10.561572,12.317520 C 10.561574,11.861896 10.322511,11.488536 9.8443836,11.197442 L 8.5998522,10.428575 L 14.548408,10.428575 C 15.026535,10.428577 15.406221,10.298849 15.687470,10.039395 C 15.968721,9.7799443 16.109345,9.4318977 16.109345,8.9952540 C 16.109345,8.5396330 15.961690,8.1915865 15.666377,7.9511133 C 15.364034,7.7106494 14.980831,7.5904152 14.516767,7.5904102 L 8.6314928,7.5904102 L 9.9920390,6.7076368 C 10.160793,6.5937365 10.290871,6.4481897 10.382274,6.2709962 C 10.466652,6.0874870 10.508840,5.8913153 10.508837,5.6824805 C 10.508840,5.3281127 10.378761,5.0338552 10.118602,4.7997070 C 9.8584498,4.5655745 9.5279814,4.4485043 9.1271961,4.4484962 C 8.7615757,4.4485043 8.4029823,4.5624104 8.0514147,4.7902149 L 3.9697741,7.5239649 C 3.6393151,7.7454540 3.4002529,7.9542820 3.2525866,8.1504493 C 3.0627532,8.3972503 2.9678314,8.6756875 2.9678210,8.9857618 L 2.9678210,9.0332227"
|
||||||
|
style="font-size:12.000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Verdana;text-anchor:start;writing-mode:lr-tb" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
style="display:none"
|
||||||
|
inkscape:label="pan triangle"
|
||||||
|
id="layer3"
|
||||||
|
inkscape:groupmode="layer">
|
||||||
|
<path
|
||||||
|
transform="matrix(0.000000,-1.331000,1.331000,0.000000,2.038879,16.92102)"
|
||||||
|
d="M 9.3471551,9.5937489 L 5.5311469,7.3905753 L 1.7151384,5.1874015 L 5.5311469,2.9842283 L 9.3471555,0.78105489 L 9.3471553,5.1874018 L 9.3471551,9.5937489 z "
|
||||||
|
inkscape:randomized="0.0000000"
|
||||||
|
inkscape:rounded="0.0000000"
|
||||||
|
inkscape:flatsided="false"
|
||||||
|
sodipodi:arg2="2.0943951"
|
||||||
|
sodipodi:arg1="1.0471976"
|
||||||
|
sodipodi:r2="2.5440056"
|
||||||
|
sodipodi:r1="5.0880113"
|
||||||
|
sodipodi:cy="5.1874018"
|
||||||
|
sodipodi:cx="6.8031497"
|
||||||
|
sodipodi:sides="3"
|
||||||
|
id="path2107"
|
||||||
|
style="fill:#ffffff;fill-opacity:1.0000000;stroke:none;stroke-width:39.984146;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"
|
||||||
|
sodipodi:type="star" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 10 KiB |
73
art/zoombar.svg
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="18"
|
||||||
|
height="18"
|
||||||
|
id="svg2"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.43"
|
||||||
|
version="1.0"
|
||||||
|
inkscape:export-filename="C:\Documents and Settings\crschmidt\Desktop\zoombar.png"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90"
|
||||||
|
sodipodi:docbase="C:\Documents and Settings\crschmidt\Desktop"
|
||||||
|
sodipodi:docname="zoombar.svg">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1"
|
||||||
|
inkscape:cx="-117.50597"
|
||||||
|
inkscape:cy="65.94562"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showguides="false"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-width="1024"
|
||||||
|
inkscape:window-height="721"
|
||||||
|
inkscape:window-x="-4"
|
||||||
|
inkscape:window-y="-4" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<rect
|
||||||
|
style="opacity:0.5;fill:#808080;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000012;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect1307"
|
||||||
|
width="16.999998"
|
||||||
|
height="10.000004"
|
||||||
|
x="-125.51302"
|
||||||
|
y="-52.420002" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999958;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.50196078"
|
||||||
|
d="M -125.54176,-52.415494 L -125.54176,-42.415495"
|
||||||
|
id="path8297" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999982;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.50196078"
|
||||||
|
d="M -108.48157,-52.418044 L -108.48157,-42.418046"
|
||||||
|
id="path12667" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.6 KiB |
@@ -1,33 +0,0 @@
|
|||||||
//
|
|
||||||
// A PhantomJS script used to check that the hosted examples load
|
|
||||||
// without errors. This script is executed by the build tool's
|
|
||||||
// check-examples target.
|
|
||||||
//
|
|
||||||
var args = require('system').args;
|
|
||||||
if (args.length != 2) {
|
|
||||||
phantom.exit(2);
|
|
||||||
}
|
|
||||||
var examplePath = args[1];
|
|
||||||
var page = require('webpage').create();
|
|
||||||
page.onError = function(msg, trace) {
|
|
||||||
var msgStack = ['JavaScript ERROR: ' + msg];
|
|
||||||
if (trace) {
|
|
||||||
msgStack.push('TRACE:');
|
|
||||||
trace.forEach(function(t) {
|
|
||||||
msgStack.push(' -> ' + t.file + ': ' + t.line + (t.function ? ' (in function "' + t.function + '")' : ''));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
console.error(msgStack.join('\n'));
|
|
||||||
phantom.exit(1);
|
|
||||||
};
|
|
||||||
page.open(examplePath, function(s) {
|
|
||||||
var exitCode = 0;
|
|
||||||
if (s != 'success') {
|
|
||||||
exitCode = 1;
|
|
||||||
console.error('PAGE LOAD ERROR');
|
|
||||||
}
|
|
||||||
phantom.exit(exitCode);
|
|
||||||
});
|
|
||||||
page.onConsoleMessage = function(msg) {
|
|
||||||
console.log('console:', msg);
|
|
||||||
};
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def main(argv):
|
|
||||||
examples = {}
|
|
||||||
requires = set()
|
|
||||||
for filename in argv[1:]:
|
|
||||||
lines = open(filename, 'rU').readlines()
|
|
||||||
if len(lines) > 0 and lines[0].startswith('// NOCOMPILE'):
|
|
||||||
continue
|
|
||||||
requires.update(line for line in lines if line.startswith('goog.require'))
|
|
||||||
examples[filename] = [line for line in lines if not line.startswith('goog.require')]
|
|
||||||
for require in sorted(requires):
|
|
||||||
sys.stdout.write(require)
|
|
||||||
for filename in sorted(examples.keys()):
|
|
||||||
sys.stdout.write('// ' + filename + '\n')
|
|
||||||
sys.stdout.write('(function(){\n')
|
|
||||||
for line in examples[filename]:
|
|
||||||
sys.stdout.write(line)
|
|
||||||
sys.stdout.write('})();\n')
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.exit(main(sys.argv))
|
|
||||||
@@ -1,180 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This script is supposed to be executed via phantomjs. It will generate
|
|
||||||
* screenshots of the html files in the directory specified by a commandline
|
|
||||||
* option when these files are served through a webserver which can also be
|
|
||||||
* specified. The screenshots will be in the current working directory.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
*
|
|
||||||
* user@host:~/openlayers/bin $ phantomjs example-screenshot.js \
|
|
||||||
* http://localhost:8000/openlayers/examples/ \
|
|
||||||
* ../examples
|
|
||||||
*
|
|
||||||
* The above command will generate `*.png` files in `examples/` for all html
|
|
||||||
* files that are served through `http://localhost:8000/openlayers/examples/`.
|
|
||||||
*
|
|
||||||
* So if there is a file `my-humpty-example.html` inside of the relative folder
|
|
||||||
* `../examples/` which is being served through the webserver so that
|
|
||||||
* `http://localhost:8000/openlayers/examples/my-humpty-example.html` is a valid and
|
|
||||||
* reachable URL, this script will generate a screenshot and store it as
|
|
||||||
* `my-humpty-example.html.png`.
|
|
||||||
*
|
|
||||||
* The query string `?mode=raw` will be appended to the generated URL.
|
|
||||||
*
|
|
||||||
* Known limitations:
|
|
||||||
*
|
|
||||||
* As phantomjs doesn't support WebGL (see e.g.
|
|
||||||
* https://github.com/ariya/phantomjs/wiki/Supported-Web-Standards and
|
|
||||||
* http://code.google.com/p/phantomjs/issues/detail?id=273) This won't render
|
|
||||||
* OpenLayers maps rendered through the webglrenderer.
|
|
||||||
*
|
|
||||||
* In parts based upon this gist: https://gist.github.com/crazy4groovy/3160121
|
|
||||||
*/
|
|
||||||
(function() { // global closure
|
|
||||||
|
|
||||||
var page = require('webpage').create(), // imports
|
|
||||||
fs = require('fs'),
|
|
||||||
system = require('system'),
|
|
||||||
// arguments
|
|
||||||
baseExamplesUrl = system.args[1],
|
|
||||||
exampleDir = system.args[2],
|
|
||||||
// various settings
|
|
||||||
ignoreFiles = [
|
|
||||||
'index.html'
|
|
||||||
],
|
|
||||||
intervalMillisecs = 25,
|
|
||||||
renderMillisecs = 2000,
|
|
||||||
// basic variables
|
|
||||||
curDir = fs.workingDirectory,
|
|
||||||
exampleDirList = fs.list(exampleDir),
|
|
||||||
pageindex = 0,
|
|
||||||
fileName = '',
|
|
||||||
htmlFiles = [],
|
|
||||||
lenHtmlFiles = 0,
|
|
||||||
loadInProgress = false;
|
|
||||||
|
|
||||||
// simple object with helper functions
|
|
||||||
var util = {
|
|
||||||
/**
|
|
||||||
* Returns the basename of a file given a path.
|
|
||||||
*/
|
|
||||||
baseName: function(path) {
|
|
||||||
var parts = path.split(fs.separator);
|
|
||||||
return parts[parts.length - 1];
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Super basic test whether a file can be considered a HTML-file.
|
|
||||||
*/
|
|
||||||
isHtmlFile: function(filename) {
|
|
||||||
return (/\.html?$/).test(filename);
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Appends a slash to given string if it isn't there already.
|
|
||||||
*/
|
|
||||||
appendSlash: function(str) {
|
|
||||||
return ((/\/$/).test(str)) ? str : str + '/';
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Generates an URL out of given baseurl and path.
|
|
||||||
*/
|
|
||||||
buildUrl: function(baseurl, path) {
|
|
||||||
var name = util.baseName(path),
|
|
||||||
mode = 'raw';
|
|
||||||
return util.appendSlash(baseurl) + name + '?mode=' + mode;
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Simple progressbar logger that uses our globals pageindex & lenHtmlFiles.
|
|
||||||
*/
|
|
||||||
logProgress: function() {
|
|
||||||
var doneSymbol = '-',
|
|
||||||
todoSymbol = ' ',
|
|
||||||
currentSymbol = '>',
|
|
||||||
barStrLeft = '[',
|
|
||||||
barStrRight = ']',
|
|
||||||
progresStep = 5, // one doneSymbol equals this percentage
|
|
||||||
totalSteps = Math.round(100 / progresStep),
|
|
||||||
ratio = (lenHtmlFiles === 0) ? 0 : (pageindex / lenHtmlFiles),
|
|
||||||
percent = (ratio === 0) ? 0 : ratio * 100,
|
|
||||||
normalizedNumDone = Math.floor(ratio * totalSteps),
|
|
||||||
normalizedNumTodo = totalSteps - normalizedNumDone,
|
|
||||||
progressLine = '',
|
|
||||||
i = 0;
|
|
||||||
// the progress bar
|
|
||||||
progressLine += barStrLeft;
|
|
||||||
for (; i < normalizedNumDone; i++) {
|
|
||||||
progressLine += doneSymbol;
|
|
||||||
}
|
|
||||||
for (i = 0; i < normalizedNumTodo; i++) {
|
|
||||||
progressLine += (i === 0) ? currentSymbol : todoSymbol;
|
|
||||||
}
|
|
||||||
progressLine += barStrRight;
|
|
||||||
// the percentage information
|
|
||||||
// pad if necessary
|
|
||||||
if (percent < 10) {
|
|
||||||
progressLine += ' ';
|
|
||||||
} else if (percent < 100) {
|
|
||||||
progressLine += ' ';
|
|
||||||
}
|
|
||||||
progressLine += ' ' + percent.toFixed(1) + ' % done';
|
|
||||||
// additional information
|
|
||||||
if (fileName !== '') {
|
|
||||||
progressLine += ', ' + util.baseName(fileName) + '';
|
|
||||||
}
|
|
||||||
console.log(progressLine);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// iterate over all files in examples directory
|
|
||||||
// and find the HTML files.
|
|
||||||
for (var i = 0; i < exampleDirList.length; i++) {
|
|
||||||
var fullpath = exampleDir + fs.separator + exampleDirList[i];
|
|
||||||
if (fs.isFile(fullpath) && util.isHtmlFile(fullpath) &&
|
|
||||||
ignoreFiles.indexOf(util.baseName(fullpath)) === -1) {
|
|
||||||
//TODO: make this more async (i.e. pop on/off stack WHILE rending pages)
|
|
||||||
htmlFiles.push(fullpath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
lenHtmlFiles = htmlFiles.length;
|
|
||||||
|
|
||||||
console.log('Capturing ' + lenHtmlFiles + ' example screenshots.');
|
|
||||||
|
|
||||||
// The main interval function that is executed regularly and renders a
|
|
||||||
// page to a file
|
|
||||||
var interval = setInterval(function() {
|
|
||||||
if (!loadInProgress && pageindex < lenHtmlFiles) {
|
|
||||||
util.logProgress();
|
|
||||||
fileName = htmlFiles[pageindex];
|
|
||||||
page.viewportSize = { width: 800, height: 600 };
|
|
||||||
page.clipRect = {
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
width: page.viewportSize.width,
|
|
||||||
height: page.viewportSize.height
|
|
||||||
};
|
|
||||||
page.open(util.buildUrl(baseExamplesUrl, htmlFiles[pageindex]));
|
|
||||||
}
|
|
||||||
if (pageindex == lenHtmlFiles) {
|
|
||||||
util.logProgress();
|
|
||||||
console.log(lenHtmlFiles + ' screenshots captured.');
|
|
||||||
phantom.exit();
|
|
||||||
}
|
|
||||||
}, intervalMillisecs);
|
|
||||||
|
|
||||||
// set loadInProgress flag so we only process one image at time.
|
|
||||||
page.onLoadStarted = function() {
|
|
||||||
loadInProgress = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
// When the page is loaded, render it to an image
|
|
||||||
page.onLoadFinished = function() {
|
|
||||||
var dest = exampleDir + fs.separator + util.baseName(fileName) + '.png';
|
|
||||||
window.setTimeout(function() {
|
|
||||||
loadInProgress = false;
|
|
||||||
page.render(dest); // actually render the page.
|
|
||||||
pageindex++;
|
|
||||||
}, renderMillisecs);
|
|
||||||
};
|
|
||||||
|
|
||||||
})(); // eof global closure
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
/**
|
|
||||||
* This loader is used for the hosted examples. It is used in place of the
|
|
||||||
* development loader (examples/loader.js).
|
|
||||||
*
|
|
||||||
* The loader loads ol.js and the example's script in "production" mode; it
|
|
||||||
* loads Closure Library's base.js, ol-deps.js, the example's "goog.require"
|
|
||||||
* script, and the example's script in "development" mode.
|
|
||||||
*
|
|
||||||
* The ol.js and ol-deps.js scripts are built using OpenLayers's Makefile. They are
|
|
||||||
* located in the ../build/ directory, relative to this script.
|
|
||||||
*
|
|
||||||
* The script must be named loader.js.
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
*
|
|
||||||
* <script src="../loader.js?id=my-demo"></script>
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
|
|
||||||
var i, pair;
|
|
||||||
|
|
||||||
var href = window.location.href, start, end, paramsString, pairs,
|
|
||||||
pageParams = {};
|
|
||||||
if (href.indexOf('?') > 0) {
|
|
||||||
start = href.indexOf('?') + 1;
|
|
||||||
end = href.indexOf('#') > 0 ? href.indexOf('#') : href.length;
|
|
||||||
paramsString = href.substring(start, end);
|
|
||||||
pairs = paramsString.split(/[&;]/);
|
|
||||||
for (i = 0; i < pairs.length; ++i) {
|
|
||||||
pair = pairs[i].split('=');
|
|
||||||
if (pair[0]) {
|
|
||||||
pageParams[decodeURIComponent(pair[0])] =
|
|
||||||
decodeURIComponent(pair[1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var scripts = document.getElementsByTagName('script');
|
|
||||||
var src, index, search, chunks, scriptParams = {};
|
|
||||||
for (i = scripts.length - 1; i >= 0; --i) {
|
|
||||||
src = scripts[i].getAttribute('src');
|
|
||||||
if (~(index = src.indexOf('loader.js?'))) {
|
|
||||||
search = src.substr(index + 10);
|
|
||||||
chunks = search ? search.split('&') : [];
|
|
||||||
for (i = chunks.length - 1; i >= 0; --i) {
|
|
||||||
pair = chunks[i].split('=');
|
|
||||||
if (pair[0]) {
|
|
||||||
scriptParams[decodeURIComponent(pair[0])] =
|
|
||||||
decodeURIComponent(pair[1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var raw = pageParams.mode && pageParams.mode.toLowerCase() === 'raw';
|
|
||||||
|
|
||||||
var scriptId = encodeURIComponent(scriptParams.id);
|
|
||||||
if (!raw) {
|
|
||||||
document.write('<scr' + 'ipt type="text/javascript" src="../build/ol.js"></scr' + 'ipt>');
|
|
||||||
} else {
|
|
||||||
window.CLOSURE_NO_DEPS = true; // we've got our own deps file
|
|
||||||
document.write('<scr' + 'ipt type="text/javascript" src="../closure-library/closure/goog/base.js"></scr' + 'ipt>');
|
|
||||||
document.write('<scr' + 'ipt type="text/javascript" src="../build/ol-deps.js"></scr' + 'ipt>');
|
|
||||||
document.write('<scr' + 'ipt type="text/javascript" src="' + scriptId + '-require.js"></scr' + 'ipt>');
|
|
||||||
}
|
|
||||||
document.write('<scr' + 'ipt type="text/javascript" src="' + scriptId + '.js"></scr' + 'ipt>');
|
|
||||||
}());
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
|
|
||||||
from optparse import OptionParser
|
|
||||||
import json
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ESCAPE_SEQUENCE = {
|
|
||||||
'\\': '\\\\',
|
|
||||||
'\n': '\\n',
|
|
||||||
'\t': '\\t'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def js_escape(s):
|
|
||||||
return ''.join(ESCAPE_SEQUENCE.get(c, c) for c in s)
|
|
||||||
|
|
||||||
|
|
||||||
def glsl_compress(s, shortNames):
|
|
||||||
# strip leading whitespace
|
|
||||||
s = re.sub(r'\A\s+', '', s)
|
|
||||||
# strip trailing whitespace
|
|
||||||
s = re.sub(r'\s+\Z', '', s)
|
|
||||||
# strip multi-line comments
|
|
||||||
s = re.sub(r'/\*.*?\*/', '', s)
|
|
||||||
# strip single line comments
|
|
||||||
s = re.sub(r'//.*?\n', '', s)
|
|
||||||
# replace multiple whitespace with a single space
|
|
||||||
s = re.sub(r'\s+', ' ', s)
|
|
||||||
# remove whitespace between non-word tokens
|
|
||||||
s = re.sub(r'(\S)\s+([^\w])', r'\1\2', s)
|
|
||||||
s = re.sub(r'([^\w])\s+(\S)', r'\1\2', s)
|
|
||||||
# replace original names with short names
|
|
||||||
for originalName, shortName in shortNames.items():
|
|
||||||
s = s.replace(originalName, shortName)
|
|
||||||
return s
|
|
||||||
|
|
||||||
|
|
||||||
def main(argv):
|
|
||||||
option_parser = OptionParser()
|
|
||||||
option_parser.add_option('--input')
|
|
||||||
option_parser.add_option('--output')
|
|
||||||
options, args = option_parser.parse_args(argv[1:])
|
|
||||||
|
|
||||||
context = {}
|
|
||||||
nextShortName = ord('a')
|
|
||||||
shortNames = {}
|
|
||||||
|
|
||||||
common, vertex, fragment = [], [], []
|
|
||||||
attributes, uniforms, varyings = {}, {}, {}
|
|
||||||
block = None
|
|
||||||
for line in open(options.input, 'rU'):
|
|
||||||
if line.startswith('//!'):
|
|
||||||
m = re.match(r'//!\s+NAMESPACE=(\S+)\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
context['namespace'] = m.group(1)
|
|
||||||
continue
|
|
||||||
m = re.match(r'//!\s+CLASS=(\S+)\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
context['className'] = m.group(1)
|
|
||||||
continue
|
|
||||||
m = re.match(r'//!\s+COMMON\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
block = common
|
|
||||||
continue
|
|
||||||
m = re.match(r'//!\s+VERTEX\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
block = vertex
|
|
||||||
continue
|
|
||||||
m = re.match(r'//!\s+FRAGMENT\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
block = fragment
|
|
||||||
continue
|
|
||||||
else:
|
|
||||||
if block is None:
|
|
||||||
assert line.rstrip() == ''
|
|
||||||
else:
|
|
||||||
block.append(line)
|
|
||||||
m = re.match(r'attribute\s+\S+\s+(\S+);\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
attribute = m.group(1)
|
|
||||||
if attribute not in attributes:
|
|
||||||
shortName = chr(nextShortName)
|
|
||||||
nextShortName += 1
|
|
||||||
attributes[attribute] = {'originalName': attribute, 'shortName': shortName}
|
|
||||||
shortNames[attribute] = shortName
|
|
||||||
m = re.match(r'uniform\s+\S+\s+(\S+);\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
uniform = m.group(1)
|
|
||||||
if uniform not in uniforms:
|
|
||||||
shortName = chr(nextShortName)
|
|
||||||
nextShortName += 1
|
|
||||||
uniforms[uniform] = {'originalName': uniform, 'shortName': shortName}
|
|
||||||
shortNames[uniform] = shortName
|
|
||||||
m = re.match(r'varying\s+\S+\s+(\S+);\s*\Z', line)
|
|
||||||
if m:
|
|
||||||
varying = m.group(1)
|
|
||||||
if varying not in varyings:
|
|
||||||
shortName = chr(nextShortName)
|
|
||||||
nextShortName += 1
|
|
||||||
shortNames[varying] = shortName
|
|
||||||
|
|
||||||
context['getOriginalFragmentSource'] = js_escape(''.join(common + fragment))
|
|
||||||
context['getOriginalVertexSource'] = js_escape(''.join(common + vertex))
|
|
||||||
context['getFragmentSource'] = glsl_compress(''.join(common + fragment), shortNames)
|
|
||||||
context['getVertexSource'] = glsl_compress(''.join(common + vertex), shortNames)
|
|
||||||
context['getAttributes'] = [attributes[a] for a in sorted(attributes.keys())]
|
|
||||||
context['getUniforms'] = [uniforms[u] for u in sorted(uniforms.keys())]
|
|
||||||
|
|
||||||
if options.output and options.output != '-':
|
|
||||||
output = open(options.output, 'wb')
|
|
||||||
else:
|
|
||||||
output = sys.stdout
|
|
||||||
json.dump(context, output)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.exit(main(sys.argv))
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
import os
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def split_example_file(example, dst_dir):
|
|
||||||
lines = open(example, 'rU').readlines()
|
|
||||||
|
|
||||||
target_lines = []
|
|
||||||
target_require_lines = []
|
|
||||||
|
|
||||||
found_requires = False
|
|
||||||
found_code = False
|
|
||||||
for line in lines:
|
|
||||||
m = re.match(r'goog.require\(\'(.*)\'\);', line)
|
|
||||||
if m:
|
|
||||||
found_requires = True
|
|
||||||
target_require_lines.append(line)
|
|
||||||
elif found_requires:
|
|
||||||
if found_code or line not in ('\n', '\r\n'):
|
|
||||||
found_code = True
|
|
||||||
target_lines.append(line)
|
|
||||||
|
|
||||||
target = open(
|
|
||||||
os.path.join(dst_dir, os.path.basename(example)), 'wb')
|
|
||||||
target_require = open(
|
|
||||||
os.path.join(dst_dir, os.path.basename(example)
|
|
||||||
.replace('.js', '-require.js')),
|
|
||||||
'wb')
|
|
||||||
|
|
||||||
target.writelines(target_lines)
|
|
||||||
target.close()
|
|
||||||
|
|
||||||
target_require.writelines(target_require_lines)
|
|
||||||
target_require.close()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
split_example_file(*sys.argv[1:])
|
|
||||||
14
build/README.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
## HowTo: Build & deploy "Shrunk" Single File Library version of OpenLayers ##
|
||||||
|
|
||||||
|
* Build:
|
||||||
|
|
||||||
|
cd build
|
||||||
|
./build.py
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
* Upload the result to the server: e.g.
|
||||||
|
|
||||||
|
scp build/OpenLayers.js openlayers@openlayers.org:openlayers.org/htdocs/code/
|
||||||
|
|
||||||
|
|
||||||
50
build/build.py
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.path.append("../tools")
|
||||||
|
import mergejs
|
||||||
|
|
||||||
|
have_compressor = None
|
||||||
|
try:
|
||||||
|
import jsmin
|
||||||
|
have_compressor = "jsmin"
|
||||||
|
except ImportError:
|
||||||
|
try:
|
||||||
|
import minimize
|
||||||
|
have_compressor = "minimize"
|
||||||
|
except Exception, E:
|
||||||
|
print E
|
||||||
|
pass
|
||||||
|
|
||||||
|
sourceDirectory = "../lib"
|
||||||
|
configFilename = "full.cfg"
|
||||||
|
outputFilename = "OpenLayers.js"
|
||||||
|
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
configFilename = sys.argv[1]
|
||||||
|
extension = configFilename[-4:]
|
||||||
|
|
||||||
|
if extension != ".cfg":
|
||||||
|
configFilename = sys.argv[1] + ".cfg"
|
||||||
|
|
||||||
|
if len(sys.argv) > 2:
|
||||||
|
outputFilename = sys.argv[2]
|
||||||
|
|
||||||
|
print "Merging libraries."
|
||||||
|
merged = mergejs.run(sourceDirectory, None, configFilename)
|
||||||
|
if have_compressor == "jsmin":
|
||||||
|
print "Compressing using jsmin."
|
||||||
|
minimized = jsmin.jsmin(merged)
|
||||||
|
elif have_compressor == "minimize":
|
||||||
|
print "Compressing using minimize."
|
||||||
|
minimized = minimize.minimize(merged)
|
||||||
|
else: # fallback
|
||||||
|
print "Not compressing."
|
||||||
|
minimized = merged
|
||||||
|
print "Adding license file."
|
||||||
|
minimized = file("license.txt").read() + minimized
|
||||||
|
|
||||||
|
print "Writing to %s." % outputFilename
|
||||||
|
file(outputFilename, "w").write(minimized)
|
||||||
|
|
||||||
|
print "Done."
|
||||||
25
build/buildUncompressed.py
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.path.append("../tools")
|
||||||
|
|
||||||
|
import jsmin, mergejs
|
||||||
|
|
||||||
|
sourceDirectory = "../lib"
|
||||||
|
configFilename = "full.cfg"
|
||||||
|
outputFilename = "OpenLayers.js"
|
||||||
|
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
configFilename = sys.argv[1] + ".cfg"
|
||||||
|
if len(sys.argv) > 2:
|
||||||
|
outputFilename = sys.argv[2]
|
||||||
|
|
||||||
|
print "Merging libraries."
|
||||||
|
merged = mergejs.run(sourceDirectory, None, configFilename)
|
||||||
|
print "Adding license file."
|
||||||
|
merged = file("license.txt").read() + merged
|
||||||
|
|
||||||
|
print "Writing to %s." % outputFilename
|
||||||
|
file(outputFilename, "w").write(merged)
|
||||||
|
|
||||||
|
print "Done."
|
||||||
32
build/full.cfg
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# This is the full build with all files: this includes the vector-related files
|
||||||
|
# like Renderers and Formats.
|
||||||
|
|
||||||
|
[first]
|
||||||
|
OpenLayers/SingleFile.js
|
||||||
|
OpenLayers.js
|
||||||
|
OpenLayers/BaseTypes.js
|
||||||
|
OpenLayers/BaseTypes/Class.js
|
||||||
|
OpenLayers/Util.js
|
||||||
|
Rico/Corner.js
|
||||||
|
|
||||||
|
[last]
|
||||||
|
|
||||||
|
[include]
|
||||||
|
|
||||||
|
[exclude]
|
||||||
|
Firebug/firebug.js
|
||||||
|
Firebug/firebugx.js
|
||||||
|
OpenLayers/Lang/ca.js
|
||||||
|
OpenLayers/Lang/cs-CZ.js
|
||||||
|
OpenLayers/Lang/da-DK.js
|
||||||
|
OpenLayers/Lang/de.js
|
||||||
|
OpenLayers/Lang/en-CA.js
|
||||||
|
OpenLayers/Lang/es.js
|
||||||
|
OpenLayers/Lang/fr.js
|
||||||
|
OpenLayers/Lang/it.js
|
||||||
|
OpenLayers/Lang/nb.js
|
||||||
|
OpenLayers/Lang/nl.js
|
||||||
|
OpenLayers/Lang/pt-BR.js
|
||||||
|
OpenLayers/Lang/sv-SE.js
|
||||||
|
OpenLayers/Lang/zh-TW.js
|
||||||
|
OpenLayers/Lang/zh-CN.js
|
||||||
68
build/library.cfg
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
# This file includes the OpenLayers code to create a build for everything that
|
||||||
|
# does not require vector support. build.py uses this profile if no other one
|
||||||
|
# is specified.
|
||||||
|
|
||||||
|
[first]
|
||||||
|
OpenLayers/SingleFile.js
|
||||||
|
OpenLayers.js
|
||||||
|
OpenLayers/BaseTypes.js
|
||||||
|
OpenLayers/BaseTypes/Class.js
|
||||||
|
OpenLayers/Util.js
|
||||||
|
Rico/Corner.js
|
||||||
|
|
||||||
|
[last]
|
||||||
|
|
||||||
|
[include]
|
||||||
|
|
||||||
|
[exclude]
|
||||||
|
Firebug/firebug.js
|
||||||
|
Firebug/firebugx.js
|
||||||
|
OpenLayers/Format/GeoRSS.js
|
||||||
|
OpenLayers/Format/GML.js
|
||||||
|
OpenLayers/Format/WKT.js
|
||||||
|
OpenLayers/Format/KML.js
|
||||||
|
OpenLayers/Format/WFS.js
|
||||||
|
OpenLayers/Format.js
|
||||||
|
OpenLayers/Handler/Path.js
|
||||||
|
OpenLayers/Handler/Point.js
|
||||||
|
OpenLayers/Handler/Polygon.js
|
||||||
|
OpenLayers/Handler/Select.js
|
||||||
|
OpenLayers/Geometry/Collection.js
|
||||||
|
OpenLayers/Geometry/Curve.js
|
||||||
|
OpenLayers/Geometry/LinearRing.js
|
||||||
|
OpenLayers/Geometry/LineString.js
|
||||||
|
OpenLayers/Geometry/MultiLineString.js
|
||||||
|
OpenLayers/Geometry/MultiPoint.js
|
||||||
|
OpenLayers/Geometry/MultiPolygon.js
|
||||||
|
OpenLayers/Geometry/Point.js
|
||||||
|
OpenLayers/Geometry/Polygon.js
|
||||||
|
OpenLayers/Geometry/Rectangle.js
|
||||||
|
OpenLayers/Geometry/Surface.js
|
||||||
|
OpenLayers/Geometry.js
|
||||||
|
OpenLayers/Layer/GML.js
|
||||||
|
OpenLayers/Layer/Vector.js
|
||||||
|
OpenLayers/Control/DrawFeature.js
|
||||||
|
OpenLayers/Control/EditingToolbar.js
|
||||||
|
OpenLayers/Control/SelectFeature.js
|
||||||
|
OpenLayers/Feature/Vector.js
|
||||||
|
OpenLayers/Renderer
|
||||||
|
OpenLayers/Renderer/Elements.js
|
||||||
|
OpenLayers/Renderer/SVG.js
|
||||||
|
OpenLayers/Renderer/VML.js
|
||||||
|
OpenLayers/Renderer.js
|
||||||
|
OpenLayers/Lang/ca.js
|
||||||
|
OpenLayers/Lang/cs-CZ.js
|
||||||
|
OpenLayers/Lang/da-DK.js
|
||||||
|
OpenLayers/Lang/de.js
|
||||||
|
OpenLayers/Lang/en-CA.js
|
||||||
|
OpenLayers/Lang/es.js
|
||||||
|
OpenLayers/Lang/fr.js
|
||||||
|
OpenLayers/Lang/it.js
|
||||||
|
OpenLayers/Lang/nb.js
|
||||||
|
OpenLayers/Lang/nl.js
|
||||||
|
OpenLayers/Lang/pt-BR.js
|
||||||
|
OpenLayers/Lang/sv-SE.js
|
||||||
|
OpenLayers/Lang/zh-TW.js
|
||||||
|
OpenLayers/Lang/zh-CN.js
|
||||||
|
|
||||||
|
|
||||||
92
build/license.txt
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
OpenLayers.js -- OpenLayers Map Viewer Library
|
||||||
|
|
||||||
|
Copyright 2005-2008 MetaCarta, Inc., released under the Clear BSD license.
|
||||||
|
Please see http://svn.openlayers.org/trunk/openlayers/license.txt
|
||||||
|
for the full text of the license.
|
||||||
|
|
||||||
|
Includes compressed code under the following licenses:
|
||||||
|
|
||||||
|
(For uncompressed versions of the code used please see the
|
||||||
|
OpenLayers SVN repository: <http://openlayers.org/>)
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Contains portions of Prototype.js:
|
||||||
|
*
|
||||||
|
* Prototype JavaScript framework, version 1.4.0
|
||||||
|
* (c) 2005 Sam Stephenson <sam@conio.net>
|
||||||
|
*
|
||||||
|
* Prototype is freely distributable under the terms of an MIT-style license.
|
||||||
|
* For details, see the Prototype web site: http://prototype.conio.net/
|
||||||
|
*
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Contains portions of Rico <http://openrico.org/>
|
||||||
|
*
|
||||||
|
* Copyright 2005 Sabre Airline Solutions
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); you
|
||||||
|
* may not use this file except in compliance with the License. You
|
||||||
|
* may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
* implied. See the License for the specific language governing
|
||||||
|
* permissions and limitations under the License.
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/>
|
||||||
|
* Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains portions of Gears <http://code.google.com/apis/gears/>
|
||||||
|
*
|
||||||
|
* Copyright 2007, Google Inc.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright notice,
|
||||||
|
* this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
* this list of conditions and the following disclaimer in the documentation
|
||||||
|
* and/or other materials provided with the distribution.
|
||||||
|
* 3. Neither the name of Google Inc. nor the names of its contributors may be
|
||||||
|
* used to endorse or promote products derived from this software without
|
||||||
|
* specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||||
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||||
|
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* Sets up google.gears.*, which is *the only* supported way to access Gears.
|
||||||
|
*
|
||||||
|
* Circumvent this file at your own risk!
|
||||||
|
*
|
||||||
|
* In the future, Gears may automatically define google.gears.* without this
|
||||||
|
* file. Gears may use these objects to transparently fix bugs and compatibility
|
||||||
|
* issues. Applications that use the code below will continue to work seamlessly
|
||||||
|
* when that happens.
|
||||||
|
*/
|
||||||
22
build/lite.cfg
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# This file includes a small subset of OpenLayers code, designed to be
|
||||||
|
# integrated into another application. It includes only the Layer types
|
||||||
|
# neccesary to create tiled or untiled WMS, and does not include any Controls.
|
||||||
|
# This is the result of what was at the time called "Webmap.js" at the FOSS4G
|
||||||
|
# Web Mapping BOF.
|
||||||
|
|
||||||
|
[first]
|
||||||
|
OpenLayers/SingleFile.js
|
||||||
|
OpenLayers.js
|
||||||
|
OpenLayers/BaseTypes.js
|
||||||
|
OpenLayers/BaseTypes/Class.js
|
||||||
|
OpenLayers/Util.js
|
||||||
|
|
||||||
|
[last]
|
||||||
|
|
||||||
|
[include]
|
||||||
|
OpenLayers/Map.js
|
||||||
|
OpenLayers/Layer/WMS.js
|
||||||
|
|
||||||
|
[exclude]
|
||||||
|
|
||||||
|
|
||||||
@@ -1,871 +0,0 @@
|
|||||||
## Upgrade notes
|
|
||||||
|
|
||||||
### Next release
|
|
||||||
|
|
||||||
#### `ol.animate` now takes the shortest arc for rotation animation
|
|
||||||
|
|
||||||
Usually rotation animations should animate along the shortest arc. There are rare occasions where a spinning animation effect is desired. So if you previously had something like
|
|
||||||
```js
|
|
||||||
map.getView().animate({
|
|
||||||
rotation: 2 * Math.PI,
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
```
|
|
||||||
we recommend to split the animation into two parts and use different easing functions. The code below results in the same effect as the snippet above did with previous versions:
|
|
||||||
```js
|
|
||||||
map.getView().animate({
|
|
||||||
rotation: Math.PI,
|
|
||||||
easing: ol.easing.easeIn
|
|
||||||
}, {
|
|
||||||
rotation: 2 * Math.PI,
|
|
||||||
easing: ol.easing.easeOut
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### v4.2.0
|
|
||||||
|
|
||||||
#### Return values of two `ol.style.RegularShape` getters have changed
|
|
||||||
|
|
||||||
To provide a more consistent behaviour the following getters now return the same value that was given to constructor:
|
|
||||||
|
|
||||||
`ol.style.RegularShape#getPoints` does not return the double amount of points anymore if a radius2 is set.
|
|
||||||
|
|
||||||
`ol.style.RegularShape#getRadius2` will return `undefined` if no radius2 is set.
|
|
||||||
|
|
||||||
### v4.1.0
|
|
||||||
|
|
||||||
#### Adding duplicate layers to a map throws
|
|
||||||
|
|
||||||
Previously, you could do this:
|
|
||||||
```js
|
|
||||||
map.addLayer(layer);
|
|
||||||
map.addLayer(layer);
|
|
||||||
```
|
|
||||||
|
|
||||||
However, after adding a duplicate layer, things failed if you tried to remove that layer.
|
|
||||||
|
|
||||||
Now, `map.addLayer()` throws if you try adding a layer that has already been added to the map.
|
|
||||||
|
|
||||||
#### Simpler `constrainResolution` configuration
|
|
||||||
|
|
||||||
The `constrainResolution` configuration for `ol.interaction.PinchZoom` and `ol.interaction.MouseWheelZoom`
|
|
||||||
can now be set directly with an option in `ol.interaction.defaults`:
|
|
||||||
```js
|
|
||||||
ol.interaction.defaults({
|
|
||||||
constrainResolution: true
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### v4.0.0
|
|
||||||
|
|
||||||
#### Simpler `ol.source.Zoomify` `url` configuration
|
|
||||||
|
|
||||||
Instead specifying a base url, the `url` for the `ol.source.Zoomify` source can now be a template. The `{TileGroup}`, `{x}`, `{y}`, `{z}` and placeholders must be included in the `url` in this case. the `url` can now also include subdomain placeholders:
|
|
||||||
```js
|
|
||||||
new ol.source.Zoomify({
|
|
||||||
url: 'https://{a-f}.example.com/cgi-bin/iipsrv.fcgi?zoomify=/a/b/{TileGroup}/{z}-{x}-{y}.jpg'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removal of deprecated methods
|
|
||||||
|
|
||||||
The deprecated `ol.animation` functions and `map.beforeRender()` method have been removed. Use `view.animate()` instead.
|
|
||||||
|
|
||||||
The `unByKey()` method has been removed from `ol.Observable` instances. Use the `ol.Observable.unByKey()` static function instead.
|
|
||||||
```js
|
|
||||||
var key = map.on('moveend', function() { ...});
|
|
||||||
map.unByKey(key);
|
|
||||||
```
|
|
||||||
New code:
|
|
||||||
```js
|
|
||||||
var key = map.on('moveend', function() { ...});
|
|
||||||
ol.Observable.unByKey(key);
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Simplified `ol.View#fit()` API
|
|
||||||
|
|
||||||
In most cases, it is no longer necessary to provide an `ol.Size` (previously the 2nd argument) to `ol.View#fit()`. By default, the size of the first map that uses the view will be used. If you want to specify a different size, it goes in the options now (previously the 3rd argument, now the 2nd).
|
|
||||||
|
|
||||||
Most common use case - old API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent, map.getSize());
|
|
||||||
```
|
|
||||||
Most common use case - new API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent);
|
|
||||||
```
|
|
||||||
Advanced use - old API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent, [200, 100], {padding: 10});
|
|
||||||
```
|
|
||||||
Advanced use - new API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent, {size: [200, 100], padding 10});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removed build flags (`@define`)
|
|
||||||
|
|
||||||
The `ol.DEBUG`, `ol.ENABLE_TILE`, `ol.ENABLE_IMAGE`, `ol.ENABLE_VECTOR`, and `ol.ENABLE_VECTOR_TILE` build flags are no longer necessary and have been removed. If you were using these in a `define` array for a custom build, you can remove them.
|
|
||||||
|
|
||||||
If you leave `ol.ENABLE_WEBGL` set to `true` in your build, you should set `ol.DEBUG_WEBGL` to `false` to avoid including debuggable shader sources.
|
|
||||||
|
|
||||||
|
|
||||||
### v3.20.0
|
|
||||||
|
|
||||||
#### Use `view.animate()` instead of `map.beforeRender()` and `ol.animation` functions
|
|
||||||
|
|
||||||
The `map.beforeRender()` and `ol.animation` functions have been deprecated in favor of a new `view.animate()` function. Use of the deprecated functions will result in a warning during development. These functions are subject to removal in an upcoming release.
|
|
||||||
|
|
||||||
For details on the `view.animate()` method, see the API docs and the view animation example. Upgrading should be relatively straightforward. For example, if you wanted to have an animated pan, zoom, and rotation previously, you might have done this:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var zoom = ol.animation.zoom({
|
|
||||||
resolution: view.getResolution()
|
|
||||||
});
|
|
||||||
var pan = ol.animation.pan({
|
|
||||||
source: view.getCenter()
|
|
||||||
});
|
|
||||||
var rotate = ol.animation.rotate({
|
|
||||||
rotation: view.getRotation()
|
|
||||||
});
|
|
||||||
|
|
||||||
map.beforeRender(zoom, pan, rotate);
|
|
||||||
|
|
||||||
map.setZoom(1);
|
|
||||||
map.setCenter([0, 0]);
|
|
||||||
map.setRotation(Math.PI);
|
|
||||||
```
|
|
||||||
|
|
||||||
Now, the same can be accomplished with this:
|
|
||||||
```js
|
|
||||||
view.animate({
|
|
||||||
zoom: 1,
|
|
||||||
center: [0, 0],
|
|
||||||
rotation: Math.PI
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### `ol.Map#forEachFeatureAtPixel` and `ol.Map#hasFeatureAtPixel` parameters have changed
|
|
||||||
|
|
||||||
If you are using the layer filter of one of these methods, please note that you now have to pass in the layer filter via an `ol.AtPixelOptions` object. If you are not using the layer filter the usage has not changed.
|
|
||||||
|
|
||||||
Old syntax:
|
|
||||||
```js
|
|
||||||
map.forEachFeatureAtPixel(pixel, callback, callbackThis, layerFilterFn, layerFilterThis);
|
|
||||||
|
|
||||||
map.hasFeatureAtPixel(pixel, layerFilterFn, layerFilterThis);
|
|
||||||
```
|
|
||||||
|
|
||||||
New syntax:
|
|
||||||
```js
|
|
||||||
map.forEachFeatureAtPixel(pixel, callback.bind(callbackThis), {
|
|
||||||
layerFilter: layerFilterFn.bind(layerFilterThis)
|
|
||||||
});
|
|
||||||
|
|
||||||
map.hasFeatureAtPixel(pixel, {
|
|
||||||
layerFilter: layerFilterFn.bind(layerFilterThis)
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
This change is due to the introduction of the `hitTolerance` parameter which can be passed in via this `ol.AtPixelOptions` object, too.
|
|
||||||
|
|
||||||
#### Use `ol.proj.getPointResolution()` instead of `projection.getPointResolution()`
|
|
||||||
|
|
||||||
The experimental `getPointResolution` method has been removed from `ol.Projection` instances. Since the implementation of this method required an inverse transform (function for transforming projected coordinates to geographic coordinates) and `ol.Projection` instances are not constructed with forward or inverse transforms, it does not make sense that a projection instance can always calculate the point resolution.
|
|
||||||
|
|
||||||
As a substitute for the `projection.getPointResolution()` function, a `ol.proj.getPointResolution()` function has been added. To upgrade, you will need to change things like this:
|
|
||||||
```js
|
|
||||||
projection.getPointResolution(resolution, point);
|
|
||||||
```
|
|
||||||
|
|
||||||
into this:
|
|
||||||
```js
|
|
||||||
ol.proj.getPointResolution(projection, resolution, point);
|
|
||||||
```
|
|
||||||
|
|
||||||
Note that if you were previously creating a projection with a `getPointResolution` function in the constructor (or calling `projection.setGetPointResolution()` after construction), this function will be used by `ol.proj.getPointResolution()`.
|
|
||||||
|
|
||||||
#### `ol.interaction.PinchZoom` no longer zooms to a whole-number zoom level after the gesture ends
|
|
||||||
|
|
||||||
The old behavior of `ol.interaction.PinchZoom` was to zoom to the next integer zoom level after the user ends the gesture.
|
|
||||||
|
|
||||||
Now the pinch zoom keeps the user selected zoom level even if it is a fractional zoom.
|
|
||||||
|
|
||||||
To get the old behavior set the new `constrainResolution` parameter to `true` like this:
|
|
||||||
```js
|
|
||||||
new ol.interaction.PinchZoom({constrainResolution: true})
|
|
||||||
```
|
|
||||||
|
|
||||||
See the new `pinch-zoom` example for a complete implementation.
|
|
||||||
|
|
||||||
### v3.19.1
|
|
||||||
|
|
||||||
#### `ol.style.Fill` with `CanvasGradient` or `CanvasPattern`
|
|
||||||
|
|
||||||
The origin for gradients and patterns has changed from `[0, 0]` to the top-left
|
|
||||||
corner of the extent of the geometry being filled.
|
|
||||||
|
|
||||||
### v3.19.0
|
|
||||||
|
|
||||||
#### `ol.style.Fill` with `CanvasGradient` or `CanvasPattern`
|
|
||||||
|
|
||||||
Previously, gradients and patterns were aligned with the canvas, so they did not
|
|
||||||
move and rotate with the map. This was changed to a more expected behavior by anchoring the fill to the map origin (usually at map coordinate `[0, 0]`).
|
|
||||||
|
|
||||||
#### `goog.DEBUG` define was renamed to `ol.DEBUG`
|
|
||||||
|
|
||||||
As last step in the removal of the dependency on Google Closure Library, the `goog.DEBUG` compiler define was renamed to `ol.DEBUG`. Please change accordingly in your custom build configuration json files.
|
|
||||||
|
|
||||||
#### `ol.format.ogc.filter` namespace was renamed to `ol.format.filter`
|
|
||||||
|
|
||||||
`ol.format.ogc.filter` was simplified to `ol.format.filter`; to upgrade your code, simply remove the `ogc` string from the name.
|
|
||||||
For example: `ol.format.ogc.filter.and` to `ol.format.filter.and`.
|
|
||||||
|
|
||||||
#### Changes only relevant to those who compile their applications together with the Closure Compiler
|
|
||||||
|
|
||||||
A number of internal types have been renamed. This will not affect those who use the API provided by the library, but if you are compiling your application together with OpenLayers and using type names, you'll need to do the following:
|
|
||||||
|
|
||||||
* rename `ol.CollectionProperty` to `ol.Collection.Property`
|
|
||||||
* rename `ol.DeviceOrientationProperty` to `ol.DeviceOrientation.Property`
|
|
||||||
* rename `ol.DragBoxEvent` to `ol.interaction.DragBox.Event`
|
|
||||||
* rename `ol.DragBoxEventType` to `ol.interaction.DragBox.EventType`
|
|
||||||
* rename `ol.GeolocationProperty` to `ol.Geolocation.Property`
|
|
||||||
* rename `ol.OverlayPositioning` to `ol.Overlay.Positioning`
|
|
||||||
* rename `ol.OverlayProperty` to `ol.Overlay.Property`
|
|
||||||
* rename `ol.control.MousePositionProperty` to `ol.control.MousePosition.Property`
|
|
||||||
* rename `ol.format.IGCZ` to `ol.format.IGC.Z`
|
|
||||||
* rename `ol.interaction.InteractionProperty` to `ol.interaction.Interaction.Property`
|
|
||||||
* rename `ol.interaction.DrawMode` to `ol.interaction.Draw.Mode`
|
|
||||||
* rename `ol.interaction.DrawEvent` to `ol.interaction.Draw.Event`
|
|
||||||
* rename `ol.interaction.DrawEventType` to `ol.interaction.Draw.EventType`
|
|
||||||
* rename `ol.interaction.ExtentEvent` to `ol.interaction.Extent.Event`
|
|
||||||
* rename `ol.interaction.ExtentEventType` to `ol.interaction.Extent.EventType`
|
|
||||||
* rename `ol.interaction.DragAndDropEvent` to `ol.interaction.DragAndDrop.Event`
|
|
||||||
* rename `ol.interaction.DragAndDropEventType` to `ol.interaction.DragAndDrop.EventType`
|
|
||||||
* rename `ol.interaction.ModifyEvent` to `ol.interaction.Modify.Event`
|
|
||||||
* rename `ol.interaction.SelectEvent` to `ol.interaction.Select.Event`
|
|
||||||
* rename `ol.interaction.SelectEventType` to `ol.interaction.Select.EventType`
|
|
||||||
* rename `ol.interaction.TranslateEvent` to `ol.interaction.Translate.Event`
|
|
||||||
* rename `ol.interaction.TranslateEventType` to `ol.interaction.Translate.EventType`
|
|
||||||
* rename `ol.layer.GroupProperty` to `ol.layer.Group.Property`
|
|
||||||
* rename `ol.layer.HeatmapLayerProperty` to `ol.layer.Heatmap.Property`
|
|
||||||
* rename `ol.layer.TileProperty` to `ol.layer.Tile.Property`
|
|
||||||
* rename `ol.layer.VectorTileRenderType` to `ol.layer.VectorTile.RenderType`
|
|
||||||
* rename `ol.MapEventType` to `ol.MapEvent.Type`
|
|
||||||
* rename `ol.MapProperty` to `ol.Map.Property`
|
|
||||||
* rename `ol.ModifyEventType` to `ol.interaction.Modify.EventType`
|
|
||||||
* rename `ol.RendererType` to `ol.renderer.Type`
|
|
||||||
* rename `ol.render.EventType` to `ol.render.Event.Type`
|
|
||||||
* rename `ol.source.ImageEvent` to `ol.source.Image.Event`
|
|
||||||
* rename `ol.source.ImageEventType` to `ol.source.Image.EventType`
|
|
||||||
* rename `ol.source.RasterEvent` to `ol.source.Raster.Event`
|
|
||||||
* rename `ol.source.RasterEventType` to `ol.source.Raster.EventType`
|
|
||||||
* rename `ol.source.TileEvent` to `ol.source.Tile.Event`
|
|
||||||
* rename `ol.source.TileEventType` to `ol.source.Tile.EventType`
|
|
||||||
* rename `ol.source.VectorEvent` to `ol.source.Vector.Event`
|
|
||||||
* rename `ol.source.VectorEventType` to `ol.source.Vector.EventType`
|
|
||||||
* rename `ol.source.wms.ServerType` to `ol.source.WMSServerType`
|
|
||||||
* rename `ol.source.WMTSRequestEncoding` to `ol.source.WMTS.RequestEncoding`
|
|
||||||
* rename `ol.style.IconAnchorUnits` to `ol.style.Icon.AnchorUnits`
|
|
||||||
* rename `ol.style.IconOrigin` to `ol.style.Icon.Origin`
|
|
||||||
|
|
||||||
### v3.18.0
|
|
||||||
|
|
||||||
#### Removal of the DOM renderer
|
|
||||||
|
|
||||||
The DOM renderer has been removed. Instead, the Canvas renderer should be used. If you were previously constructing a map with `'dom'` as the `renderer` option, you will see an error message in the console in debug mode and the Canvas renderer will be used instead. To remove the warning, remove the `renderer` option from your map constructor.
|
|
||||||
|
|
||||||
#### Changes in the way assertions are handled
|
|
||||||
|
|
||||||
Previously, minified builds of the library did not have any assertions. This caused applications to fail silently or with cryptic stack traces. Starting with this release, developers get notified of many runtime errors through the new `ol.AssertionError`. This error has a `code` property. The meaning of the code can be found on https://openlayers.org/en/latest/doc/errors/. There are additional console assertion checks in debug mode when the `goog.DEBUG` compiler flag is `true`. As this is `true` by default, it is recommended that those creating custom builds set this to `false` so these assertions are stripped.'
|
|
||||||
|
|
||||||
#### Removal of `ol.ENABLE_NAMED_COLORS`
|
|
||||||
|
|
||||||
This option was previously needed to use named colors with the WebGL renderer but is no longer needed.
|
|
||||||
|
|
||||||
#### KML format now uses URL()
|
|
||||||
|
|
||||||
The URL constructor is supported by all modern browsers, but not by older ones, such as IE. To use the KML format in such older browsers, a URL polyfill will have to be loaded before use.
|
|
||||||
|
|
||||||
#### Changes only relevant to those who compile their applications together with the Closure Compiler
|
|
||||||
|
|
||||||
A number of internal types have been renamed. This will not affect those who use the API provided by the library, but if you are compiling your application together with OpenLayers and using type names, you'll need to do the following:
|
|
||||||
|
|
||||||
* rename `ol.CollectionEventType` to `ol.Collection.EventType`
|
|
||||||
* rename `ol.CollectionEvent` to `ol.Collection.Event`
|
|
||||||
* rename `ol.ViewHint` to `ol.View.Hint`
|
|
||||||
* rename `ol.ViewProperty` to `ol.View.Property`
|
|
||||||
* rename `ol.render.webgl.imagereplay.shader.Default.Locations` to `ol.render.webgl.imagereplay.defaultshader.Locations`
|
|
||||||
* rename `ol.render.webgl.imagereplay.shader.DefaultFragment` to `ol.render.webgl.imagereplay.defaultshader.Fragment`
|
|
||||||
* rename `ol.render.webgl.imagereplay.shader.DefaultVertex` to `ol.render.webgl.imagereplay.defaultshader.Vertex`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.Default.Locations` to `ol.renderer.webgl.defaultmapshader.Locations`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.Default.Locations` to `ol.renderer.webgl.defaultmapshader.Locations`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.DefaultFragment` to `ol.renderer.webgl.defaultmapshader.Fragment`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.DefaultVertex` to `ol.renderer.webgl.defaultmapshader.Vertex`
|
|
||||||
* rename `ol.renderer.webgl.tilelayer.shader.Fragment` to `ol.renderer.webgl.tilelayershader.Fragment`
|
|
||||||
* rename `ol.renderer.webgl.tilelayer.shader.Locations` to `ol.renderer.webgl.tilelayershader.Locations`
|
|
||||||
* rename `ol.renderer.webgl.tilelayer.shader.Vertex` to `ol.renderer.webgl.tilelayershader.Vertex`
|
|
||||||
* rename `ol.webgl.WebGLContextEventType` to `ol.webgl.ContextEventType`
|
|
||||||
* rename `ol.webgl.shader.Fragment` to `ol.webgl.Fragment`
|
|
||||||
* rename `ol.webgl.shader.Vertex` to `ol.webgl.Vertex`
|
|
||||||
|
|
||||||
### v3.17.0
|
|
||||||
|
|
||||||
#### `ol.source.MapQuest` removal
|
|
||||||
|
|
||||||
Because of changes at MapQuest (see: https://lists.openstreetmap.org/pipermail/talk/2016-June/076106.html) we had to remove the MapQuest source for now (see https://github.com/openlayers/openlayers/issues/5484 for details).
|
|
||||||
|
|
||||||
#### `ol.interaction.ModifyEvent` changes
|
|
||||||
|
|
||||||
The event object previously had a `mapBrowserPointerEvent` property, which has been renamed to `mapBrowserEvent`.
|
|
||||||
|
|
||||||
#### Removal of ol.raster namespace
|
|
||||||
|
|
||||||
Users compiling their code with the library and using types in the `ol.raster` namespace should note that this has now been removed. `ol.raster.Pixel` has been deleted, and the other types have been renamed as follows, and your code may need changing if you use these:
|
|
||||||
* `ol.raster.Operation` to `ol.RasterOperation`
|
|
||||||
* `ol.raster.OperationType` to `ol.RasterOperationType`
|
|
||||||
|
|
||||||
#### All typedefs now in ol namespace
|
|
||||||
|
|
||||||
Users compiling their code with the library should note that the following typedefs have been renamed; your code may need changing if you use these:
|
|
||||||
* ol.events.ConditionType to ol.EventsConditionType
|
|
||||||
* ol.events.EventTargetLike to ol.EventTargetLike
|
|
||||||
* ol.events.Key to ol.EventsKey
|
|
||||||
* ol.events.ListenerFunctionType to ol.EventsListenerFunctionType
|
|
||||||
* ol.interaction.DragBoxEndConditionType to ol.DragBoxEndConditionType
|
|
||||||
* ol.interaction.DrawGeometryFunctionType to ol.DrawGeometryFunctionType
|
|
||||||
* ol.interaction.SegmentDataType to ol.ModifySegmentDataType
|
|
||||||
* ol.interaction.SelectFilterFunction to ol.SelectFilterFunction
|
|
||||||
* ol.interaction.SnapResultType to ol.SnapResultType
|
|
||||||
* ol.interaction.SnapSegmentDataType to ol.SnapSegmentDataType
|
|
||||||
* ol.proj.ProjectionLike to ol.ProjectionLike
|
|
||||||
* ol.style.AtlasBlock to ol.AtlasBlock
|
|
||||||
* ol.style.AtlasInfo to ol.AtlasInfo
|
|
||||||
* ol.style.AtlasManagerInfo to ol.AtlasManagerInfo
|
|
||||||
* ol.style.CircleRenderOptions to ol.CircleRenderOptions
|
|
||||||
* ol.style.ImageOptions to ol.StyleImageOptions
|
|
||||||
* ol.style.GeometryFunction to ol.StyleGeometryFunction
|
|
||||||
* ol.style.RegularShapeRenderOptions to ol.RegularShapeRenderOptions
|
|
||||||
* ol.style.StyleFunction to ol.StyleFunction
|
|
||||||
|
|
||||||
### v3.16.0
|
|
||||||
|
|
||||||
#### Rendering change for tile sources
|
|
||||||
|
|
||||||
Previously, if you called `source.setUrl()` on a tile source, all currently rendered tiles would be cleared before new tiles were loaded and rendered. This clearing of the map is undesirable if you are trying to smoothly update the tiles used by a source. This behavior has now changed, and calling `source.setUrl()` (or `source.setUrls()`) will *not* clear currently rendered tiles before loading and rendering new tiles. Instead, previously rendered tiles remain rendered until new tiles have loaded and can replace them. If you want to achieve the old behavior (render a blank map before loading new tiles), you can call `source.refresh()` or you can replace the old source with a new one (using `layer.setSource()`).
|
|
||||||
|
|
||||||
#### Move of typedefs out of code and into separate file
|
|
||||||
|
|
||||||
This change should not affect the great majority of application developers, but it's possible there are edge cases when compiling application code together with the library which cause compiler errors or warnings. In this case, please raise a GitHub issue. `goog.require`s for typedefs should not be necessary.
|
|
||||||
Users compiling their code with the library should note that the following API `@typedef`s have been renamed; your code may need changing if you use these:
|
|
||||||
* `ol.format.WFS.FeatureCollectionMetadata` to `ol.WFSFeatureCollectionMetadata`
|
|
||||||
* `ol.format.WFS.TransactionResponse` to `ol.WFSTransactionResponse`
|
|
||||||
|
|
||||||
#### Removal of `opaque` option for `ol.source.VectorTile`
|
|
||||||
|
|
||||||
This option is no longer needed, so it was removed from the API.
|
|
||||||
|
|
||||||
#### XHR loading for `ol.source.TileUTFGrid`
|
|
||||||
|
|
||||||
The `ol.source.TileUTFGrid` now uses XMLHttpRequest to load UTFGrid tiles by default. This works out of the box with the v4 Mapbox API. To work with the v3 API, you must use the new `jsonp` option on the source. See the examples below for detail.
|
|
||||||
|
|
||||||
```js
|
|
||||||
// To work with the v4 API
|
|
||||||
var v4source = new ol.source.TileUTFGrid({
|
|
||||||
url: 'https://api.tiles.mapbox.com/v4/example.json?access_token=' + YOUR_KEY_HERE
|
|
||||||
});
|
|
||||||
|
|
||||||
// To work with the v3 API
|
|
||||||
var v3source = new ol.source.TileUTFGrid({
|
|
||||||
jsonp: true, // <--- this is required for v3
|
|
||||||
url: 'http://api.tiles.mapbox.com/v3/example.json'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### v3.15.0
|
|
||||||
|
|
||||||
#### Internet Explorer 9 support
|
|
||||||
|
|
||||||
As of this release, OpenLayers requires a `classList` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features#Element_prototype_classList.
|
|
||||||
|
|
||||||
#### Immediate rendering API
|
|
||||||
|
|
||||||
Listeners for `precompose`, `render`, and `postcompose` receive an event with a `vectorContext` property with methods for immediate vector rendering. The previous geometry drawing methods have been replaced with a single `vectorContext.drawGeometry(geometry)` method. If you were using any of the following experimental methods on the vector context, replace them with `drawGeometry`:
|
|
||||||
|
|
||||||
* Removed experimental geometry drawing methods: `drawPointGeometry`, `drawLineStringGeometry`, `drawPolygonGeometry`, `drawMultiPointGeometry`, `drawMultiLineStringGeometry`, `drawMultiPolygonGeometry`, and `drawCircleGeometry` (all have been replaced with `drawGeometry`).
|
|
||||||
|
|
||||||
In addition, the previous methods for setting style parts have been replaced with a single `vectorContext.setStyle(style)` method. If you were using any of the following experimental methods on the vector context, replace them with `setStyle`:
|
|
||||||
|
|
||||||
* Removed experimental style setting methods: `setFillStrokeStyle`, `setImageStyle`, `setTextStyle` (all have been replaced with `setStyle`).
|
|
||||||
|
|
||||||
Below is an example of how the vector context might have been used in the past:
|
|
||||||
|
|
||||||
```js
|
|
||||||
// OLD WAY, NO LONGER SUPPORTED
|
|
||||||
map.on('postcompose', function(event) {
|
|
||||||
event.vectorContext.setFillStrokeStyle(style.getFill(), style.getStroke());
|
|
||||||
event.vectorContext.drawPointGeometry(geometry);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
Here is an example of how you could accomplish the same with the new methods:
|
|
||||||
```js
|
|
||||||
// NEW WAY, USE THIS INSTEAD OF THE CODE ABOVE
|
|
||||||
map.on('postcompose', function(event) {
|
|
||||||
event.vectorContext.setStyle(style);
|
|
||||||
event.vectorContext.drawGeometry(geometry);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
A final change to the immediate rendering API is that `vectorContext.drawFeature()` calls are now "immediate" as well. The drawing now occurs synchronously. This means that any `zIndex` in a style passed to `drawFeature()` will be ignored. To achieve `zIndex` ordering, order your calls to `drawFeature()` instead.
|
|
||||||
|
|
||||||
#### Removal of `ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK`
|
|
||||||
|
|
||||||
The `ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK` define has been removed. The size of the cache can now be defined on every tile based `ol.source`:
|
|
||||||
```js
|
|
||||||
new ol.layer.Tile({
|
|
||||||
source: new ol.source.OSM({
|
|
||||||
cacheSize: 128
|
|
||||||
})
|
|
||||||
})
|
|
||||||
```
|
|
||||||
The default cache size is `2048`.
|
|
||||||
|
|
||||||
### v3.14.0
|
|
||||||
|
|
||||||
#### Internet Explorer 9 support
|
|
||||||
|
|
||||||
As of this release, OpenLayers requires a `requestAnimationFrame`/`cancelAnimationFrame` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features/#requestAnimationFrame.
|
|
||||||
|
|
||||||
#### Layer pre-/postcompose event changes
|
|
||||||
|
|
||||||
It is the responsibility of the application to undo any canvas transform changes at the end of a layer 'precompose' or 'postcompose' handler. Previously, it was ok to set a null transform. The API now guarantees a device pixel coordinate system on the canvas with its origin in the top left corner of the map. However, applications should not rely on the underlying canvas being the same size as the visible viewport.
|
|
||||||
|
|
||||||
Old code:
|
|
||||||
```js
|
|
||||||
layer.on('precompose', function(e) {
|
|
||||||
// rely on canvas dimensions to move coordinate origin to center
|
|
||||||
e.context.translate(e.context.canvas.width / 2, e.context.canvas.height / 2);
|
|
||||||
e.context.scale(3, 3);
|
|
||||||
// draw an x in the center of the viewport
|
|
||||||
e.context.moveTo(-20, -20);
|
|
||||||
e.context.lineTo(20, 20);
|
|
||||||
e.context.moveTo(-20, 20);
|
|
||||||
e.context.lineTo(20, -20);
|
|
||||||
// rely on the canvas having a null transform
|
|
||||||
e.context.setTransform(1, 0, 0, 1, 0, 0);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
New code:
|
|
||||||
```js
|
|
||||||
layer.on('precompose', function(e) {
|
|
||||||
// use map size and pixel ratio to move coordinate origin to center
|
|
||||||
var size = map.getSize();
|
|
||||||
var pixelRatio = e.frameState.pixelRatio;
|
|
||||||
e.context.translate(size[0] / 2 * pixelRatio, size[1] / 2 * pixelRatio);
|
|
||||||
e.context.scale(3, 3);
|
|
||||||
// draw an x in the center of the viewport
|
|
||||||
e.context.moveTo(-20, -20);
|
|
||||||
e.context.lineTo(20, 20);
|
|
||||||
e.context.moveTo(-20, 20);
|
|
||||||
e.context.lineTo(20, -20);
|
|
||||||
// undo all transforms
|
|
||||||
e.context.scale(1 / 3, 1 / 3);
|
|
||||||
e.context.translate(-size[0] / 2 * pixelRatio, -size[1] / 2 * pixelRatio);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### v3.13.0
|
|
||||||
|
|
||||||
#### `proj4js` integration
|
|
||||||
|
|
||||||
Before this release, OpenLayers depended on the global proj4 namespace. When using a module loader like Browserify, you might not want to depend on the global `proj4` namespace. You can use the `ol.proj.setProj4` function to set the proj4 function object. For example in a browserify ES6 environment:
|
|
||||||
|
|
||||||
```js
|
|
||||||
import ol from 'openlayers';
|
|
||||||
import proj4 from 'proj4';
|
|
||||||
ol.proj.setProj4(proj4);
|
|
||||||
```
|
|
||||||
|
|
||||||
#### `ol.source.TileJSON` changes
|
|
||||||
|
|
||||||
The `ol.source.TileJSON` now uses `XMLHttpRequest` to load the TileJSON instead of JSONP with callback.
|
|
||||||
When using server without proper CORS support, `jsonp: true` option can be passed to the constructor to get the same behavior as before:
|
|
||||||
```js
|
|
||||||
new ol.source.TileJSON({
|
|
||||||
url: 'http://serverwithoutcors.com/tilejson.json',
|
|
||||||
jsonp: true
|
|
||||||
})
|
|
||||||
```
|
|
||||||
Also for Mapbox v3, make sure you use urls ending with `.json` (which are able to handle both `XMLHttpRequest` and JSONP) instead of `.jsonp`.
|
|
||||||
|
|
||||||
### v3.12.0
|
|
||||||
|
|
||||||
#### `ol.Map#forEachFeatureAtPixel` changes
|
|
||||||
|
|
||||||
The optional `layerFilter` function is now also called for unmanaged layers. To get the same behaviour as before, wrap your layer filter code in an if block like this:
|
|
||||||
```js
|
|
||||||
function layerFilter(layer) {
|
|
||||||
if (map.getLayers().getArray().indexOf(layer) !== -1) {
|
|
||||||
// existing layer filter code
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### v3.11.0
|
|
||||||
|
|
||||||
#### `ol.format.KML` changes
|
|
||||||
|
|
||||||
KML icons are scaled 50% so that the rendering better matches Google Earth rendering.
|
|
||||||
|
|
||||||
If a KML placemark has a name and is a point, an `ol.style.Text` is created with the name displayed to the right of the icon (if there is an icon).
|
|
||||||
This can be controlled with the showPointNames option which defaults to true.
|
|
||||||
|
|
||||||
To disable rendering of the point names for placemarks, use the option:
|
|
||||||
new ol.format.KML({ showPointNames: false });
|
|
||||||
|
|
||||||
|
|
||||||
#### `ol.interaction.DragBox` and `ol.interaction.DragZoom` changes
|
|
||||||
|
|
||||||
Styling is no longer done with `ol.Style`, but with pure CSS. The `style` constructor option is no longer required, and no longer available. Instead, there is a `className` option for the CSS selector. The default for `ol.interaction.DragBox` is `ol-dragbox`, and `ol.interaction.DragZoom` uses `ol-dragzoom`. If you previously had
|
|
||||||
```js
|
|
||||||
new ol.interaction.DragZoom({
|
|
||||||
style: new ol.style.Style({
|
|
||||||
stroke: new ol.style.Stroke({
|
|
||||||
color: 'red',
|
|
||||||
width: 3
|
|
||||||
}),
|
|
||||||
fill: new ol.style.Fill({
|
|
||||||
color: [255, 255, 255, 0.4]
|
|
||||||
})
|
|
||||||
})
|
|
||||||
});
|
|
||||||
```
|
|
||||||
you'll now just need
|
|
||||||
```js
|
|
||||||
new ol.interaction.DragZoom();
|
|
||||||
```
|
|
||||||
but with additional css:
|
|
||||||
```css
|
|
||||||
.ol-dragzoom {
|
|
||||||
border-color: red;
|
|
||||||
border-width: 3px;
|
|
||||||
background-color: rgba(255,255,255,0.4);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removal of `ol.source.TileVector`
|
|
||||||
|
|
||||||
With the introduction of true vector tile support, `ol.source.TileVector` becomes obsolete. Change your code to use `ol.layer.VectorTile` and `ol.source.VectorTile` instead of `ol.layer.Vector` and `ol.source.TileVector`.
|
|
||||||
|
|
||||||
#### `ol.Map#forEachFeatureAtPixel` changes for unmanaged layers
|
|
||||||
|
|
||||||
`ol.Map#forEachFeatureAtPixel` will still be called for unmanaged layers, but the 2nd argument to the callback function will be `null` instead of a reference to the unmanaged layer. This brings back the behavior of the abandoned `ol.FeatureOverlay` that was replaced by unmanaged layers.
|
|
||||||
|
|
||||||
If you are affected by this change, please change your unmanaged layer to a regular layer by using e.g. `ol.Map#addLayer` instead of `ol.layer.Layer#setMap`.
|
|
||||||
|
|
||||||
### v3.10.0
|
|
||||||
|
|
||||||
#### `ol.layer.Layer` changes
|
|
||||||
|
|
||||||
The experimental `setHue`, `setContrast`, `setBrightness`, `setSaturation`, and the corresponding getter methods have been removed. These properties only worked with the WebGL renderer. If are interested in applying color transforms, look for the `postcompose` event in the API docs. In addition, the `ol.source.Raster` source provides a way to create new raster data based on arbitrary transforms run on any number of input sources.
|
|
||||||
|
|
||||||
### v3.9.0
|
|
||||||
|
|
||||||
#### `ol.style.Circle` changes
|
|
||||||
|
|
||||||
The experimental `getAnchor`, `getOrigin`, and `getSize` methods have been removed. The anchor and origin of a circle symbolizer are not modifiable, so these properties should not need to be accessed. The radius and stroke width can be used to calculate the rendered size of a circle symbolizer if needed:
|
|
||||||
|
|
||||||
```js
|
|
||||||
// calculate rendered size of a circle symbolizer
|
|
||||||
var width = 2 * circle.getRadius();
|
|
||||||
if (circle.getStroke()) {
|
|
||||||
width += circle.getStroke().getWidth() + 1;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### v3.8.0
|
|
||||||
|
|
||||||
There should be nothing special required when upgrading from v3.7.0 to v3.8.0.
|
|
||||||
|
|
||||||
### v3.7.0
|
|
||||||
|
|
||||||
#### Removal of `ol.FeatureOverlay`
|
|
||||||
|
|
||||||
Instead of an `ol.FeatureOverlay`, we now use an `ol.layer.Vector` with an
|
|
||||||
`ol.source.Vector`. If you previously had:
|
|
||||||
```js
|
|
||||||
var featureOverlay = new ol.FeatureOverlay({
|
|
||||||
map: map,
|
|
||||||
style: overlayStyle
|
|
||||||
});
|
|
||||||
featureOverlay.addFeature(feature);
|
|
||||||
featureOverlay.removeFeature(feature);
|
|
||||||
var collection = featureOverlay.getFeatures();
|
|
||||||
```
|
|
||||||
you will have to change this to:
|
|
||||||
```js
|
|
||||||
var collection = new ol.Collection();
|
|
||||||
var featureOverlay = new ol.layer.Vector({
|
|
||||||
map: map,
|
|
||||||
source: new ol.source.Vector({
|
|
||||||
features: collection,
|
|
||||||
useSpatialIndex: false // optional, might improve performance
|
|
||||||
}),
|
|
||||||
style: overlayStyle,
|
|
||||||
updateWhileAnimating: true, // optional, for instant visual feedback
|
|
||||||
updateWhileInteracting: true // optional, for instant visual feedback
|
|
||||||
});
|
|
||||||
featureOverlay.getSource().addFeature(feature);
|
|
||||||
featureOverlay.getSource().removeFeature(feature);
|
|
||||||
```
|
|
||||||
|
|
||||||
With the removal of `ol.FeatureOverlay`, `zIndex` symbolizer properties of overlays are no longer stacked per map, but per layer/overlay. If you previously had multiple feature overlays where you controlled the rendering order of features by using `zIndex` symbolizer properties, you can now achieve the same rendering order only if all overlay features are on the same layer.
|
|
||||||
|
|
||||||
Note that `ol.FeatureOverlay#getFeatures()` returned an `{ol.Collection.<ol.Feature>}`, whereas `ol.source.Vector#getFeatures()` returns an `{Array.<ol.Feature>}`.
|
|
||||||
|
|
||||||
#### `ol.TileCoord` changes
|
|
||||||
|
|
||||||
Until now, the API exposed two different types of `ol.TileCoord` tile coordinates: internal ones that increase left to right and upward, and transformed ones that may increase downward, as defined by a transform function on the tile grid. With this change, the API now only exposes tile coordinates that increase left to right and upward.
|
|
||||||
|
|
||||||
Previously, tile grids created by OpenLayers either had their origin at the top-left or at the bottom-left corner of the extent. To make it easier for application developers to transform tile coordinates to the common XYZ tiling scheme, all tile grids that OpenLayers creates internally have their origin now at the top-left corner of the extent.
|
|
||||||
|
|
||||||
This change affects applications that configure a custom `tileUrlFunction` for an `ol.source.Tile`. Previously, the `tileUrlFunction` was called with rather unpredictable tile coordinates, depending on whether a tile coordinate transform took place before calling the `tileUrlFunction`. Now it is always called with OpenLayers tile coordinates. To transform these into the common XYZ tiling scheme, a custom `tileUrlFunction` has to change the `y` value (tile row) of the `ol.TileCoord`:
|
|
||||||
```js
|
|
||||||
function tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
var urlTemplate = '{z}/{x}/{y}';
|
|
||||||
return urlTemplate
|
|
||||||
.replace('{z}', tileCoord[0].toString())
|
|
||||||
.replace('{x}', tileCoord[1].toString())
|
|
||||||
.replace('{y}', (-tileCoord[2] - 1).toString());
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
The `ol.tilegrid.TileGrid#createTileCoordTransform()` function which could be used to get the tile grid's tile coordinate transform function has been removed. This function was confusing and should no longer be needed now that application developers get tile coordinates in a known layout.
|
|
||||||
|
|
||||||
The code snippets below show how your application code needs to be changed:
|
|
||||||
|
|
||||||
Old application code (with `ol.tilegrid.TileGrid#createTileCoordTransform()`):
|
|
||||||
```js
|
|
||||||
var transform = source.getTileGrid().createTileCoordTransform();
|
|
||||||
var tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
tileCoord = transform(tileCoord, projection);
|
|
||||||
return 'http://mytiles.com/' +
|
|
||||||
tileCoord[0] + '/' + tileCoord[1] + '/' + tileCoord[2] + '.png';
|
|
||||||
};
|
|
||||||
```
|
|
||||||
Old application code (with custom `y` transform):
|
|
||||||
```js
|
|
||||||
var tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
var z = tileCoord[0];
|
|
||||||
var yFromBottom = tileCoord[2];
|
|
||||||
var resolution = tileGrid.getResolution(z);
|
|
||||||
var tileHeight = ol.size.toSize(tileSize)[1];
|
|
||||||
var matrixHeight =
|
|
||||||
Math.floor(ol.extent.getHeight(extent) / tileHeight / resolution);
|
|
||||||
return 'http://mytiles.com/' +
|
|
||||||
tileCoord[0] + '/' + tileCoord[1] + '/' +
|
|
||||||
(matrixHeight - yFromBottom - 1) + '.png';
|
|
||||||
|
|
||||||
};
|
|
||||||
```
|
|
||||||
New application code (simple -y - 1 transform):
|
|
||||||
```js
|
|
||||||
var tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
return 'http://mytiles.com/' +
|
|
||||||
tileCoord[0] + '/' + tileCoord[1] + '/' + (-tileCoord[2] - 1) + '.png';
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removal of `ol.tilegrid.Zoomify`
|
|
||||||
|
|
||||||
The replacement of `ol.tilegrid.Zoomify` is a plain `ol.tilegrid.TileGrid`, configured with `extent`, `origin` and `resolutions`. If the `size` passed to the `ol.source.Zoomify` source is `[width, height]`, then the extent for the tile grid will be `[0, -height, width, 0]`, and the origin will be `[0, 0]`.
|
|
||||||
|
|
||||||
#### Replace `ol.View.fitExtent()` and `ol.View.fitGeometry()` with `ol.View.fit()`
|
|
||||||
* This combines two previously distinct functions into one more flexible call which takes either a geometry or an extent.
|
|
||||||
* Rename all calls to `fitExtent` and `fitGeometry` to `fit`.
|
|
||||||
|
|
||||||
#### Change to `ol.interaction.Modify`
|
|
||||||
|
|
||||||
When single clicking a line or boundary within the `pixelTolerance`, a vertex is now created.
|
|
||||||
|
|
||||||
### v3.6.0
|
|
||||||
|
|
||||||
#### `ol.interaction.Draw` changes
|
|
||||||
|
|
||||||
* The `minPointsPerRing` config option has been renamed to `minPoints`. It is now also available for linestring drawing, not only for polygons.
|
|
||||||
* The `ol.DrawEvent` and `ol.DrawEventType` types were renamed to `ol.interaction.DrawEvent` and `ol.interaction.DrawEventType`. This has an impact on your code only if your code is compiled together with OpenLayers.
|
|
||||||
|
|
||||||
#### `ol.tilegrid` changes
|
|
||||||
|
|
||||||
* The `ol.tilegrid.XYZ` constructor has been replaced by a static `ol.tilegrid.createXYZ()` function. The `ol.tilegrid.createXYZ()` function takes the same arguments as the previous `ol.tilegrid.XYZ` constructor, but returns an `ol.tilegrid.TileGrid` instance.
|
|
||||||
* The internal tile coordinate scheme for XYZ sources has been changed. Previously, the `y` of tile coordinates was transformed to the coordinates used by sources by calculating `-y-1`. Now, it is transformed by calculating `height-y-1`, where height is the number of rows of the tile grid at the zoom level of the tile coordinate.
|
|
||||||
* The `widths` constructor option of `ol.tilegrid.TileGrid` and subclasses is no longer available, and it is no longer necessary to get proper wrapping at the 180° meridian. However, for `ol.tilegrid.WMTS`, there is a new option `sizes`, where each entry is an `ol.Size` with the `width` ('TileMatrixWidth' in WMTS capabilities) as first and the `height` ('TileMatrixHeight') as second entry of the array. For other tile grids, users can
|
|
||||||
now specify an `extent` instead of `widths`. These settings are used to restrict the range of tiles that sources will request.
|
|
||||||
* For `ol.source.TileWMS`, the default value of `warpX` used to be `undefined`, meaning that WMS requests with out-of-extent tile BBOXes would be sent. Now `wrapX` can only be `true` or `false`, and the new default is `true`. No application code changes should be required, but the resulting WMS requests for out-of-extent tiles will no longer use out-of-extent BBOXes, but ones that are shifted to real-world coordinates.
|
|
||||||
|
|
||||||
### v3.5.0
|
|
||||||
|
|
||||||
#### `ol.Object` and `bindTo`
|
|
||||||
|
|
||||||
* The following experimental methods have been removed from `ol.Object`: `bindTo`, `unbind`, and `unbindAll`. If you want to get notification about `ol.Object` property changes, you can listen for the `'propertychange'` event (e.g. `object.on('propertychange', listener)`). Two-way binding can be set up at the application level using property change listeners. See [#3472](https://github.com/openlayers/openlayers/pull/3472) for details on the change.
|
|
||||||
|
|
||||||
* The experimental `ol.dom.Input` component has been removed. If you need to synchronize the state of a dom Input element with an `ol.Object`, this can be accomplished using listeners for change events. For example, you might bind the state of a checkbox type input with a layer's visibility like this:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var layer = new ol.layer.Tile();
|
|
||||||
var checkbox = document.querySelector('#checkbox');
|
|
||||||
|
|
||||||
checkbox.addEventListener('change', function() {
|
|
||||||
var checked = this.checked;
|
|
||||||
if (checked !== layer.getVisible()) {
|
|
||||||
layer.setVisible(checked);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
layer.on('change:visible', function() {
|
|
||||||
var visible = this.getVisible();
|
|
||||||
if (visible !== checkbox.checked) {
|
|
||||||
checkbox.checked = visible;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### New Vector API
|
|
||||||
|
|
||||||
* The following experimental vector classes have been removed: `ol.source.GeoJSON`, `ol.source.GML`, `ol.source.GPX`, `ol.source.IGC`, `ol.source.KML`, `ol.source.OSMXML`, and `ol.source.TopoJSON`. You now will use `ol.source.Vector` instead.
|
|
||||||
|
|
||||||
For example, if you used `ol.source.GeoJSON` as follows:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.GeoJSON({
|
|
||||||
url: 'features.json',
|
|
||||||
projection: 'EPSG:3857'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
you will need to change your code to:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector({
|
|
||||||
url: 'features.json',
|
|
||||||
format: new ol.format.GeoJSON()
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
See https://openlayers.org/en/master/examples/vector-layer.html for a real example.
|
|
||||||
|
|
||||||
Note that you no longer need to set a `projection` on the source!
|
|
||||||
|
|
||||||
Previously the vector data was loaded at source construction time, and, if the data projection and the source projection were not the same, the vector data was transformed to the source projection before being inserted (as features) into the source.
|
|
||||||
|
|
||||||
The vector data is now loaded at render time, when the view projection is known. And the vector data is transformed to the view projection if the data projection and the source projection are not the same.
|
|
||||||
|
|
||||||
If you still want to "eagerly" load the source you will use something like this:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector();
|
|
||||||
$.ajax('features.json').then(function(response) {
|
|
||||||
var geojsonFormat = new ol.format.GeoJSON();
|
|
||||||
var features = geojsonFormat.readFeatures(response,
|
|
||||||
{featureProjection: 'EPSG:3857'});
|
|
||||||
source.addFeatures(features);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
The above code uses jQuery to send an Ajax request, but you can obviously use any Ajax library.
|
|
||||||
|
|
||||||
See https://openlayers.org/en/master/examples/igc.html for a real example.
|
|
||||||
|
|
||||||
* Note about KML
|
|
||||||
|
|
||||||
If you used `ol.source.KML`'s `extractStyles` or `defaultStyle` options, you will now have to set these options on `ol.format.KML` instead. For example, if you used:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.KML({
|
|
||||||
url: 'features.kml',
|
|
||||||
extractStyles: false,
|
|
||||||
projection: 'EPSG:3857'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
you will now use:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector({
|
|
||||||
url: 'features.kml',
|
|
||||||
format: new ol.format.KML({
|
|
||||||
extractStyles: false
|
|
||||||
})
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
* The `ol.source.ServerVector` class has been removed. If you used it, for example as follows:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.ServerVector({
|
|
||||||
format: new ol.format.GeoJSON(),
|
|
||||||
loader: function(extent, resolution, projection) {
|
|
||||||
var url = …;
|
|
||||||
$.ajax(url).then(function(response) {
|
|
||||||
source.addFeatures(source.readFeatures(response));
|
|
||||||
});
|
|
||||||
},
|
|
||||||
strategy: ol.loadingstrategy.bbox,
|
|
||||||
projection: 'EPSG:3857'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
you will need to change your code to:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector({
|
|
||||||
loader: function(extent, resolution, projection) {
|
|
||||||
var url = …;
|
|
||||||
$.ajax(url).then(function(response) {
|
|
||||||
var format = new ol.format.GeoJSON();
|
|
||||||
var features = format.readFeatures(response,
|
|
||||||
{featureProjection: projection});
|
|
||||||
source.addFeatures(features);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
strategy: ol.loadingstrategy.bbox
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
See https://openlayers.org/en/master/examples/vector-osm.html for a real example.
|
|
||||||
|
|
||||||
* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/master/examples/vector-osm.html for an example.
|
|
||||||
|
|
||||||
#### Change to `ol.style.Icon`
|
|
||||||
|
|
||||||
* When manually loading an image for `ol.style.Icon`, the image size should now be set
|
|
||||||
with the `imgSize` option and not with `size`. `size` is supposed to be used for the
|
|
||||||
size of a sub-rectangle in an image sprite.
|
|
||||||
|
|
||||||
#### Support for non-square tiles
|
|
||||||
|
|
||||||
The return value of `ol.tilegrid.TileGrid#getTileSize()` will now be an `ol.Size` array instead of a number if non-square tiles (i.e. an `ol.Size` array instead of a number as `tilsSize`) are used. To always get an `ol.Size`, the new `ol.size.toSize()` was added.
|
|
||||||
|
|
||||||
#### Change to `ol.interaction.Draw`
|
|
||||||
|
|
||||||
When finishing a draw, the `drawend` event is now dispatched before the feature is inserted to either the source or the collection. This change allows application code to finish setting up the feature.
|
|
||||||
|
|
||||||
#### Misc.
|
|
||||||
|
|
||||||
If you compile your application together with the library and use the `ol.feature.FeatureStyleFunction` type annotation (this should be extremely rare), the type is now named `ol.FeatureStyleFunction`.
|
|
||||||
|
|
||||||
### v3.4.0
|
|
||||||
|
|
||||||
There should be nothing special required when upgrading from v3.3.0 to v3.4.0.
|
|
||||||
|
|
||||||
### v3.3.0
|
|
||||||
|
|
||||||
* The `ol.events.condition.mouseMove` function was replaced by `ol.events.condition.pointerMove` (see [#3281](https://github.com/openlayers/openlayers/pull/3281)). For example, if you use `ol.events.condition.mouseMove` as the condition in a `Select` interaction then you now need to use `ol.events.condition.pointerMove`:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var selectInteraction = new ol.interaction.Select({
|
|
||||||
condition: ol.events.condition.pointerMove
|
|
||||||
// …
|
|
||||||
});
|
|
||||||
```
|
|
||||||
@@ -1,234 +0,0 @@
|
|||||||
# 3.1.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The 3.1.0 release includes a whopping 214 merged pull requests since 3.0.0. Of note, the WebGL renderer [now supports point rendering](https://github.com/openlayers/openlayers/pull/2967). You can use [UTFGrids for interaction](https://github.com/openlayers/openlayers/pull/3015)! Styles can now specify [alternate geometries for rendering](https://github.com/openlayers/openlayers/pull/3010). Library builds [can now be loaded](https://github.com/openlayers/openlayers/pull/3039) with module loaders like Browserify or RequireJS. You can now symbolize point features with stars, squares, enneadecagons, or [any other regular(ish) polygon](https://github.com/openlayers/openlayers/pull/2706). See the full list of [changes](#changes) below.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
The 3.1.0 release maintains a backwards-compatible API with the 3.0.0 release, so upgrades should be painless. Some special considerations below.
|
|
||||||
|
|
||||||
* If you are using a `ol.source.ImageStatic`, you no longer need to provide an `imageSize` option if you don't want any special scaling on your image (see [#2796](https://github.com/openlayers/openlayers/pull/2796)).
|
|
||||||
|
|
||||||
* Instead of calling `obj.unByKey(key)` you can now call `ol.Observable.unByKey(key)` (see [#2794](https://github.com/openlayers/openlayers/pull/2794)).
|
|
||||||
|
|
||||||
* If you were using `format.writeFeatures(features)`, note that this method returns a string for all feature formats. We considered the previous behavior a bug (see [#3003](https://github.com/openlayers/openlayers/pull/3003)).
|
|
||||||
|
|
||||||
* The `obj.dispatchChangeEvent()` method is now spelled `obj.changed()`. This method is still unstable (see [#2684](https://github.com/openlayers/openlayers/pull/2684)).
|
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
* [#3076](https://github.com/openlayers/openlayers/pull/3076) - Add script to standardize changelog creation. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3074](https://github.com/openlayers/openlayers/pull/3074) - Remove misplaced function annotation. ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3075](https://github.com/openlayers/openlayers/pull/3075) - Remove unneeded undefined from ol.proj.ProjectionLike definitions (r=@tschaub) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3071](https://github.com/openlayers/openlayers/pull/3071) - Add task for publishing to npm. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3070](https://github.com/openlayers/openlayers/pull/3070) - Define goog and assign to global when generating UMD debug builds. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3068](https://github.com/openlayers/openlayers/pull/3068) - Update pre-release version. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3039](https://github.com/openlayers/openlayers/pull/3039) - Support for UMD builds. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3038](https://github.com/openlayers/openlayers/pull/3038) - Update attribution CSS #2803 ([@acanimal](https://github.com/acanimal))
|
|
||||||
* [#3061](https://github.com/openlayers/openlayers/pull/3061) - Add a renderBuffer option to ol.layer.Vector ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3048](https://github.com/openlayers/openlayers/pull/3048) - Add a drag-features example ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3060](https://github.com/openlayers/openlayers/pull/3060) - Update closure-library version ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3058](https://github.com/openlayers/openlayers/pull/3058) - Use an API function to extend the extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3010](https://github.com/openlayers/openlayers/pull/3010) - Allow styles to override feature geometries ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3056](https://github.com/openlayers/openlayers/pull/3056) - Reuse previousExtent_ local variable ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3055](https://github.com/openlayers/openlayers/pull/3055) - ol.tilecoord.createOrUpdate: add 'opt_' prefix to optional param ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3044](https://github.com/openlayers/openlayers/pull/3044) - Mark Image style constructor properties `@api` ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3052](https://github.com/openlayers/openlayers/pull/3052) - Add a testcase for parsing GML feature with only boundedBy ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3051](https://github.com/openlayers/openlayers/pull/3051) - Remove // NOCOMPILE from vector-wfs ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2699](https://github.com/openlayers/openlayers/pull/2699) - No need for featureNS and featureType to be quoted ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3047](https://github.com/openlayers/openlayers/pull/3047) - Move description above annotation to avoid JSDoc warnings. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2996](https://github.com/openlayers/openlayers/pull/2996) - Add getter functions for points and angle in ol.style.RegularShape ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3046](https://github.com/openlayers/openlayers/pull/3046) - Need exportable constructor for constructor options in olx ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3043](https://github.com/openlayers/openlayers/pull/3043) - Use // NOCOMPILE for vector-wfs ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3042](https://github.com/openlayers/openlayers/pull/3042) - Print example name in check-examples exception ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3032](https://github.com/openlayers/openlayers/pull/3032) - Extension points for custom controls and interactions ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3033](https://github.com/openlayers/openlayers/pull/3033) - Allow custom mousemove conditions for Select interaction ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3040](https://github.com/openlayers/openlayers/pull/3040) - Transform the coordinates in place ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3036](https://github.com/openlayers/openlayers/pull/3036) - Respect geometry stride in modify interaction ([@tonio](https://github.com/tonio))
|
|
||||||
* [#3020](https://github.com/openlayers/openlayers/pull/3020) - Correct error message from generate-info.js. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3037](https://github.com/openlayers/openlayers/pull/3037) - Implement rotation for ol.style.RegularShape ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3015](https://github.com/openlayers/openlayers/pull/3015) - UTFGrid Support ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#3012](https://github.com/openlayers/openlayers/pull/3012) - Failing tests in IE9 ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3029](https://github.com/openlayers/openlayers/pull/3029) - Update closure compiler and library ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3031](https://github.com/openlayers/openlayers/pull/3031) - Add missing maxZoom property in olx.view.FitGeometryOptions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3028](https://github.com/openlayers/openlayers/pull/3028) - ol.format.WFS cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3024](https://github.com/openlayers/openlayers/pull/3024) - Add missing gmlFormat to olx.format.WFSOptions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3023](https://github.com/openlayers/openlayers/pull/3023) - Change loader function return type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3021](https://github.com/openlayers/openlayers/pull/3021) - Add missing properties in olx.control.AttributionOptions typedef ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3013](https://github.com/openlayers/openlayers/pull/3013) - Improve vector source clear() performance ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3017](https://github.com/openlayers/openlayers/pull/3017) - Use writeFeatures instead of writeFeaturesNode in GPX and KML example (r=@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3014](https://github.com/openlayers/openlayers/pull/3014) - Simplify hit detection code ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3006](https://github.com/openlayers/openlayers/pull/3006) - gml3.js and gml2.js don't follow file naming conventions ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3003](https://github.com/openlayers/openlayers/pull/3003) - The writeFeatures method should always return a string (r=@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3011](https://github.com/openlayers/openlayers/pull/3011) - opt_options may not be defined, use options ([@pagameba](https://github.com/pagameba))
|
|
||||||
* [#3009](https://github.com/openlayers/openlayers/pull/3009) - Fix hit detection bug ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3002](https://github.com/openlayers/openlayers/pull/3002) - Passing options to RegularShape is mandatory ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2967](https://github.com/openlayers/openlayers/pull/2967) - Add support for drawing points with WebGL ([@camptocamp](https://github.com/camptocamp))
|
|
||||||
* [#2701](https://github.com/openlayers/openlayers/pull/2701) - Writing GeoJSON does not respect the feature's geometryName ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3000](https://github.com/openlayers/openlayers/pull/3000) - Explain that return of ol.color.asArray should not be modified ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2997](https://github.com/openlayers/openlayers/pull/2997) - Use new demo GeoServer location ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2976](https://github.com/openlayers/openlayers/pull/2976) - Add an example to show off ol.style.RegularShape ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2992](https://github.com/openlayers/openlayers/pull/2992) - Add support for finding features at a given coordinates for vector tiles - fixes ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#2987](https://github.com/openlayers/openlayers/pull/2987) - Image layer renderers use source projection if given and equivalent ([@kartverket](https://github.com/kartverket))
|
|
||||||
* [#2975](https://github.com/openlayers/openlayers/pull/2975) - Use offsetX and offsetY if available ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2973](https://github.com/openlayers/openlayers/pull/2973) - Making GetTileCoordFor methods public avaible ([@s093294](https://github.com/s093294))
|
|
||||||
* [#2986](https://github.com/openlayers/openlayers/pull/2986) - Add support for finding features at a given coordinates for vector tiles ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#2937](https://github.com/openlayers/openlayers/pull/2937) - Clip layer rendering to limited extent. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2971](https://github.com/openlayers/openlayers/pull/2971) - Two ol.source.TileVector fixes ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2988](https://github.com/openlayers/openlayers/pull/2988) - Correct olx.style.RegularShapeOptions definition (r=@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2981](https://github.com/openlayers/openlayers/pull/2981) - Use lineDash in ol.style.Circle's and ol.style.RegularShape's stroke (r=@fredj,@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2982](https://github.com/openlayers/openlayers/pull/2982) - Allow radius1 as an alias for radius in ol.style.RegularShape ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2980](https://github.com/openlayers/openlayers/pull/2980) - Export ol.source.TileVector#getFeatures in built mode ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#2979](https://github.com/openlayers/openlayers/pull/2979) - Support OGC srs urns without an EPSG database version ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2978](https://github.com/openlayers/openlayers/pull/2978) - Fix zoom levels for the MapQuest Street layer ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2889](https://github.com/openlayers/openlayers/pull/2889) - Add GetFeatureInfo format ([@fgravin](https://github.com/fgravin))
|
|
||||||
* [#2965](https://github.com/openlayers/openlayers/pull/2965) - Fix pan with select interaction in mousemove mode. ([@tonio](https://github.com/tonio))
|
|
||||||
* [#2960](https://github.com/openlayers/openlayers/pull/2960) - LayerGroup extent should be used if extent not set on child layer ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2956](https://github.com/openlayers/openlayers/pull/2956) - Revert "Remove mousewheel event name workaround" ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2959](https://github.com/openlayers/openlayers/pull/2959) - Fix typo in selector ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2895](https://github.com/openlayers/openlayers/pull/2895) - Move font-family customization to layout.css ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2896](https://github.com/openlayers/openlayers/pull/2896) - Remove duplicated style parameter ([@kalinbas](https://github.com/kalinbas))
|
|
||||||
* [#2938](https://github.com/openlayers/openlayers/pull/2938) - Additional image static docs. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2939](https://github.com/openlayers/openlayers/pull/2939) - Make stability checkbox sticky. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2949](https://github.com/openlayers/openlayers/pull/2949) - Add ol.ext to hosted dir ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2943](https://github.com/openlayers/openlayers/pull/2943) - Mark applyTransform api stable ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2936](https://github.com/openlayers/openlayers/pull/2936) - Fix unselection of selected features ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2935](https://github.com/openlayers/openlayers/pull/2935) - Fix jsdoc comment ([@geosense](https://github.com/geosense))
|
|
||||||
* [#2933](https://github.com/openlayers/openlayers/pull/2933) - Fix compile warning ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2931](https://github.com/openlayers/openlayers/pull/2931) - Improvement to view docs ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2906](https://github.com/openlayers/openlayers/pull/2906) - Assume a latitude, longitude order for Polyline format ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2927](https://github.com/openlayers/openlayers/pull/2927) - Make it possible to programmatically finish drawing ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2928](https://github.com/openlayers/openlayers/pull/2928) - Do not rename handleMapBrowserEvent internally ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2924](https://github.com/openlayers/openlayers/pull/2924) - Readability rearangement in canvasmaprenderer.js ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2911](https://github.com/openlayers/openlayers/pull/2911) - List events fired in the navigation. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2921](https://github.com/openlayers/openlayers/pull/2921) - Small feature overlay optimization ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2897](https://github.com/openlayers/openlayers/pull/2897) - Remove pointerup listener on controls ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2912](https://github.com/openlayers/openlayers/pull/2912) - jQuery externs update ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2888](https://github.com/openlayers/openlayers/pull/2888) - Element boundedBy must not be set as geometry field on GML reading ([@fgravin](https://github.com/fgravin))
|
|
||||||
* [#2903](https://github.com/openlayers/openlayers/pull/2903) - Improved docs for icon options ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2900](https://github.com/openlayers/openlayers/pull/2900) - Allow build.js task to add header. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2893](https://github.com/openlayers/openlayers/pull/2893) - Don't pass an object to goog.dom.createDom for the class name ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2781](https://github.com/openlayers/openlayers/pull/2781) - Use a standard title attribute for the control buttons ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2852](https://github.com/openlayers/openlayers/pull/2852) - Add missing space between class names ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2891](https://github.com/openlayers/openlayers/pull/2891) - Introduce a load function for image sources ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2885](https://github.com/openlayers/openlayers/pull/2885) - Add wrapX option to TileJSON source ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2890](https://github.com/openlayers/openlayers/pull/2890) - Use correct layer property names ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2887](https://github.com/openlayers/openlayers/pull/2887) - Explicitly pass coordinate dimension before transforming. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2886](https://github.com/openlayers/openlayers/pull/2886) - Use ternary notation ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2869](https://github.com/openlayers/openlayers/pull/2869) - Export useful xml functions ([@tonio](https://github.com/tonio))
|
|
||||||
* [#2884](https://github.com/openlayers/openlayers/pull/2884) - Make WKT methods throw errors instead of calling a method that throws. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2746](https://github.com/openlayers/openlayers/pull/2746) - Add versioning for GML format ([@fgravin](https://github.com/fgravin))
|
|
||||||
* [#2882](https://github.com/openlayers/openlayers/pull/2882) - Allow olx.source.WMTSOptions#requestEncoding to be a string ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2881](https://github.com/openlayers/openlayers/pull/2881) - Add default requestEncoding in documentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2877](https://github.com/openlayers/openlayers/pull/2877) - Remove FIXME in src/ol/structs/rbush.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2870](https://github.com/openlayers/openlayers/pull/2870) - Use bulk-insertion for addFeatures ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#2856](https://github.com/openlayers/openlayers/pull/2856) - Allow layer source to be set. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2875](https://github.com/openlayers/openlayers/pull/2875) - Avoid modifying `map.logos_` with each frame. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2874](https://github.com/openlayers/openlayers/pull/2874) - Avoid shrinking logos. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2872](https://github.com/openlayers/openlayers/pull/2872) - Remove the beforepropertychange event from ol.Object ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2868](https://github.com/openlayers/openlayers/pull/2868) - Remove doc about dispatching events. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2871](https://github.com/openlayers/openlayers/pull/2871) - Make `npm install` a dependency of node based targets. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2867](https://github.com/openlayers/openlayers/pull/2867) - Support for importing CommonJS style modules (like rbush). ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#2865](https://github.com/openlayers/openlayers/pull/2865) - Add old value to property change events ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2866](https://github.com/openlayers/openlayers/pull/2866) - Cluster source calls loadFeatures on vector source ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2864](https://github.com/openlayers/openlayers/pull/2864) - Avoid mixed content in Bing Maps (r=@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2855](https://github.com/openlayers/openlayers/pull/2855) - Move touchstart preventDefault to ol.renderer.dom.Map ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2690](https://github.com/openlayers/openlayers/pull/2690) - Vector rendering with the DOM renderer ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2859](https://github.com/openlayers/openlayers/pull/2859) - Document exportable vector source symbols. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2857](https://github.com/openlayers/openlayers/pull/2857) - Update the OSM attribution. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2847](https://github.com/openlayers/openlayers/pull/2847) - Constrain center in zoomify example ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2838](https://github.com/openlayers/openlayers/pull/2838) - ol.source.WMTS now passes tileClass option to ol.source.TileImage ([@mike-mcgann](https://github.com/mike-mcgann))
|
|
||||||
* [#2821](https://github.com/openlayers/openlayers/pull/2821) - Add ol.geom.Polygon.fromExtent ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2835](https://github.com/openlayers/openlayers/pull/2835) - Use correct Stamen URL for SSL. ([@j16sdiz](https://github.com/j16sdiz))
|
|
||||||
* [#2839](https://github.com/openlayers/openlayers/pull/2839) - Dependency updates and new package name. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2840](https://github.com/openlayers/openlayers/pull/2840) - Fewer point resolution tests. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2836](https://github.com/openlayers/openlayers/pull/2836) - Give priority to feature's style instead of source's style ([@oterral](https://github.com/oterral))
|
|
||||||
* [#2834](https://github.com/openlayers/openlayers/pull/2834) - Use ADVANCED instead of ADVANCED_OPTIMIZATIONS ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2833](https://github.com/openlayers/openlayers/pull/2833) - Avoid too many files open with graceful-fs@3.0.3. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2829](https://github.com/openlayers/openlayers/pull/2829) - Zoom slider refactor. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2757](https://github.com/openlayers/openlayers/pull/2757) - Clear the canvas on layer extent changes. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2796](https://github.com/openlayers/openlayers/pull/2796) - Determine image size on load. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2825](https://github.com/openlayers/openlayers/pull/2825) - Change comments for examples_star_json build target ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2822](https://github.com/openlayers/openlayers/pull/2822) - Remove obsolete comment ([@gingerik](https://github.com/gingerik))
|
|
||||||
* [#2769](https://github.com/openlayers/openlayers/pull/2769) - OverviewMap control ([@adube](https://github.com/adube))
|
|
||||||
* [#2820](https://github.com/openlayers/openlayers/pull/2820) - Add parsing of LabelStyle in KML format ([@oterral](https://github.com/oterral))
|
|
||||||
* [#2819](https://github.com/openlayers/openlayers/pull/2819) - Improvements to the xyz-esri-4326-512 example ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2743](https://github.com/openlayers/openlayers/pull/2743) - Handle ol.interaction.Draw activation/deactivation ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2816](https://github.com/openlayers/openlayers/pull/2816) - Exit on check-examples failure ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2794](https://github.com/openlayers/openlayers/pull/2794) - Add ol.Observable.unByKey ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2815](https://github.com/openlayers/openlayers/pull/2815) - Fix jquery.min.js path in xyz-esri-4326-512 example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2756](https://github.com/openlayers/openlayers/pull/2756) - Add an example for using an Esri 512x512 tile server in EPSG:4326 (r=@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2814](https://github.com/openlayers/openlayers/pull/2814) - Add missing whitespaces in CSS calc ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2811](https://github.com/openlayers/openlayers/pull/2811) - Remove defaultProjection and object from typedef ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2779](https://github.com/openlayers/openlayers/pull/2779) - Update jQuery to 1.9.1 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2810](https://github.com/openlayers/openlayers/pull/2810) - Remove unused properties from olx.source.TileVectorOptions ([@pagameba](https://github.com/pagameba))
|
|
||||||
* [#2808](https://github.com/openlayers/openlayers/pull/2808) - Remove reprojectTo option from olx.source.OSMXMLOptions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2809](https://github.com/openlayers/openlayers/pull/2809) - Miscellaneous controls cleanups ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2805](https://github.com/openlayers/openlayers/pull/2805) - Enable subclassing Interaction in public API ([@sweco-sebhar](https://github.com/sweco-sebhar))
|
|
||||||
* [#2798](https://github.com/openlayers/openlayers/pull/2798) - Update closure-util to version 1.0.0 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2785](https://github.com/openlayers/openlayers/pull/2785) - Use goog.* types in externs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2795](https://github.com/openlayers/openlayers/pull/2795) - Externs ([@gingerik](https://github.com/gingerik))
|
|
||||||
* [#2792](https://github.com/openlayers/openlayers/pull/2792) - Use valid mediatype for GPX export. ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#2784](https://github.com/openlayers/openlayers/pull/2784) - Add 'tooltip'-tag to KML example. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#2782](https://github.com/openlayers/openlayers/pull/2782) - Hide the rotate control when the rotation is 0 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2774](https://github.com/openlayers/openlayers/pull/2774) - Remove unused distinctFeatures object in ol.interaction.Modify#handlePointerDown ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2771](https://github.com/openlayers/openlayers/pull/2771) - Allow package to be published in npm registry. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2773](https://github.com/openlayers/openlayers/pull/2773) - Type-related changes to ol.style.Image ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2751](https://github.com/openlayers/openlayers/pull/2751) - Export constructors and options of ol.source.Source children ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2772](https://github.com/openlayers/openlayers/pull/2772) - Rename updatefeature event to changefeature ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2766](https://github.com/openlayers/openlayers/pull/2766) - Make interaction "active" an ol.Object property ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2765](https://github.com/openlayers/openlayers/pull/2765) - Treat unknown opt types as Object in ol externs ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2759](https://github.com/openlayers/openlayers/pull/2759) - Fix test failures. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2762](https://github.com/openlayers/openlayers/pull/2762) - Report test failures to the console. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2768](https://github.com/openlayers/openlayers/pull/2768) - Write the function name correctly in the doc. ([@xamgreen](https://github.com/xamgreen))
|
|
||||||
* [#2764](https://github.com/openlayers/openlayers/pull/2764) - Remove rtree example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2763](https://github.com/openlayers/openlayers/pull/2763) - Miscellaneous coding style and typo fixes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2758](https://github.com/openlayers/openlayers/pull/2758) - Correctly generate child tile ranges for XYZ tiles. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2734](https://github.com/openlayers/openlayers/pull/2734) - Add maxZoom option to BingMaps ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2752](https://github.com/openlayers/openlayers/pull/2752) - Call loadFeatures from ol.source.ImageVector ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2658](https://github.com/openlayers/openlayers/pull/2658) - Set inherited values when parsing a GetCapabilities ([@oterral](https://github.com/oterral))
|
|
||||||
* [#2750](https://github.com/openlayers/openlayers/pull/2750) - Export ol.layer.Base ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2749](https://github.com/openlayers/openlayers/pull/2749) - Export ol.source.Source ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2742](https://github.com/openlayers/openlayers/pull/2742) - Dispatch an 'updatefeature' from the vector source ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2747](https://github.com/openlayers/openlayers/pull/2747) - Fix incorrect web address. ([@lazaruslarue](https://github.com/lazaruslarue))
|
|
||||||
* [#2745](https://github.com/openlayers/openlayers/pull/2745) - DragBox Interaction: getGeometry return type can be ol.geom.Polygon (r=@fredj) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2744](https://github.com/openlayers/openlayers/pull/2744) - Fix ol.Feature 'change' event documentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2741](https://github.com/openlayers/openlayers/pull/2741) - issue with reading scientific notation coordinates in ol.format.GML (r=@fredj) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2739](https://github.com/openlayers/openlayers/pull/2739) - Revert "Function circular renamed to createCircularOnSphere" ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2616](https://github.com/openlayers/openlayers/pull/2616) - Target for attribution links differs between maps ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2740](https://github.com/openlayers/openlayers/pull/2740) - Make interactions activable and deactivable ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2727](https://github.com/openlayers/openlayers/pull/2727) - Rename ol.geom.Polygon#circular to createCircularOnSphere ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2730](https://github.com/openlayers/openlayers/pull/2730) - Do not call toLowerCase when forming a change:property event ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2728](https://github.com/openlayers/openlayers/pull/2728) - Mark `ol.extent.getIntersection` as stable. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#2726](https://github.com/openlayers/openlayers/pull/2726) - Make ol.Feature#setStyle accept null ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2724](https://github.com/openlayers/openlayers/pull/2724) - Error when compiling individual example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#1959](https://github.com/openlayers/openlayers/pull/1959) - Add a feature box selection example ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2722](https://github.com/openlayers/openlayers/pull/2722) - Make ol.Map#setView do not accept undefined ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2696](https://github.com/openlayers/openlayers/pull/2696) - Consistent circle transform. ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2717](https://github.com/openlayers/openlayers/pull/2717) - Change the control visibility by using css class ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2715](https://github.com/openlayers/openlayers/pull/2715) - Add an EPSG:3857 map to Tissot example ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2714](https://github.com/openlayers/openlayers/pull/2714) - Set the opacity directly to element.style.opacity ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2647](https://github.com/openlayers/openlayers/pull/2647) - Upgrade closure library version ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2549](https://github.com/openlayers/openlayers/pull/2549) - Use goog.array.ASSUME_NATIVE_FUNCTIONS define ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2711](https://github.com/openlayers/openlayers/pull/2711) - Remove Google Maps example ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#2684](https://github.com/openlayers/openlayers/pull/2684) - Rename ol.Observable#dispatchChangeEvent() to #changed() ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2678](https://github.com/openlayers/openlayers/pull/2678) - Mutable symbolizer properties for styles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2568](https://github.com/openlayers/openlayers/pull/2568) - re-implement auto-configure code for ol.format.GML (r=@ahocevar) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#2704](https://github.com/openlayers/openlayers/pull/2704) - Use pool thread for calling bin/check-example.js. ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2698](https://github.com/openlayers/openlayers/pull/2698) - StaticVector is not an abstract base class ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2702](https://github.com/openlayers/openlayers/pull/2702) - Add vector layer in export-map example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2687](https://github.com/openlayers/openlayers/pull/2687) - Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2675](https://github.com/openlayers/openlayers/pull/2675) - Remove undefined from ol.Map#getLayers return type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2692](https://github.com/openlayers/openlayers/pull/2692) - Unset z-index in overlay example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2681](https://github.com/openlayers/openlayers/pull/2681) - Make tileSize a config option for ol.source.XYZ ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2534](https://github.com/openlayers/openlayers/pull/2534) - Document ol.geom.Polygon#getLinearRing function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2677](https://github.com/openlayers/openlayers/pull/2677) - Add TextStyle offsets getters to API. ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2676](https://github.com/openlayers/openlayers/pull/2676) - ol.FeatureOverlay: use the feature style if defined ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2656](https://github.com/openlayers/openlayers/pull/2656) - Set ol.layer.Image#getSource return type to ol.source.Image ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2651](https://github.com/openlayers/openlayers/pull/2651) - ol.layer.Vector.getSource return type specialisation. ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#2669](https://github.com/openlayers/openlayers/pull/2669) - Revert "snapshot" ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2663](https://github.com/openlayers/openlayers/pull/2663) - Set tracking property to false on geolocation error ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2662](https://github.com/openlayers/openlayers/pull/2662) - Delegate transformation in ol.source.FormatVector#readFeatures to `ol.format.*` ([@gingerik](https://github.com/gingerik))
|
|
||||||
* [#2447](https://github.com/openlayers/openlayers/pull/2447) - Correct documentation typo. ([@lazaruslarue](https://github.com/lazaruslarue))
|
|
||||||
* [#2660](https://github.com/openlayers/openlayers/pull/2660) - New domain in the build header ([@elemoine](https://github.com/elemoine))
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# 3.1.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
This is a patch release to fix an issue with the select interaction in the 3.1.0 release.
|
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
* [#3082](https://github.com/openlayers/openlayers/pull/3082) - Correct arguments for forEachGeometryAtPixel. ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,93 +0,0 @@
|
|||||||
# v3.10.0
|
|
||||||
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.10.0 release includes features and fixes from 66 pull requests since the v3.9.0 release. New features and improvements include:
|
|
||||||
|
|
||||||
* Full touch gesture support for the Microsoft Edge browser.
|
|
||||||
* Improved API docs - required constructor options are now marked as such.
|
|
||||||
* Text styles (vector labels) now work with defaults instead of failing when only a label text is set.
|
|
||||||
* Write support for GML3 features with multiple geometries
|
|
||||||
|
|
||||||
See the complete list below for details. And see the following notes to know how to upgrade from v3.9.0 to v3.10.0.
|
|
||||||
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.layer.Layer` changes
|
|
||||||
|
|
||||||
The experimental `setHue`, `setContrast`, `setBrightness`, `setSaturation`, and the corresponding getter methods have been removed. These properties only worked with the WebGL renderer. If you are interested in applying color transforms, look for the `postcompose` event in the API docs. In addition, the `ol.source.Raster` source provides a way to create new raster data based on arbitrary transforms run on any number of input sources.
|
|
||||||
|
|
||||||
#### Removal of legacy Internet Explorer support
|
|
||||||
|
|
||||||
If you are building an appliction that supports Internet Explorer 8 or older, you'll need to use ES5 shims to make OpenLayers work. As before, support for such old browsers is very basic, and we recommend to not support them.
|
|
||||||
|
|
||||||
|
|
||||||
## New features and fixes
|
|
||||||
|
|
||||||
* [#4237](https://github.com/openlayers/openlayers/pull/4237) - #3328: GML3 - Writing features with multiple geometries ([@awaterme](https://github.com/awaterme))
|
|
||||||
* [#4218](https://github.com/openlayers/openlayers/pull/4218) - Add 'getLayer()' method to 'ol.interaction.Select' ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4036](https://github.com/openlayers/openlayers/pull/4036) - Fix modify interaction event order ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#4036](https://github.com/openlayers/openlayers/pull/4036) - Fix modify interaction event order ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#4116](https://github.com/openlayers/openlayers/pull/4116) - Make ol.control.OverviewMap's view configurable ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4234](https://github.com/openlayers/openlayers/pull/4234) - Support OGC WKT proj4 def.units and def.to_meter ([@tbarsballe](https://github.com/tbarsballe))
|
|
||||||
* [#4224](https://github.com/openlayers/openlayers/pull/4224) - Don't transform the angle into degrees to rotate the element ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4231](https://github.com/openlayers/openlayers/pull/4231) - Revert "Merge pull request #4217 from ThomasG77/clipboardjs-replacement" ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4217](https://github.com/openlayers/openlayers/pull/4217) - Replace ZeroClipboard with Clipboard.js to remove flash dependency ([@ThomasG77](https://github.com/ThomasG77))
|
|
||||||
* [#4223](https://github.com/openlayers/openlayers/pull/4223) - Remove goog.fx.easing ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4222](https://github.com/openlayers/openlayers/pull/4222) - Remove unnecessary cast ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4209](https://github.com/openlayers/openlayers/pull/4209) - Remove goog.string.remove ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4207](https://github.com/openlayers/openlayers/pull/4207) - Remove goog.string.startsWith ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4208](https://github.com/openlayers/openlayers/pull/4208) - Remove goog.string.trim() ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4216](https://github.com/openlayers/openlayers/pull/4216) - Fix canvas replay which broke with 31a68e2 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4202](https://github.com/openlayers/openlayers/pull/4202) - Remove use of goog.dom.appendChild ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4205](https://github.com/openlayers/openlayers/pull/4205) - Minor cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4203](https://github.com/openlayers/openlayers/pull/4203) - Cosmetic changes to example html / css ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4184](https://github.com/openlayers/openlayers/pull/4184) - Adjust iframe's position of GetFeatureInfo examples ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4192](https://github.com/openlayers/openlayers/pull/4192) - Remove use of goog.isNull in favor of simple truthy checks ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4187](https://github.com/openlayers/openlayers/pull/4187) - Fix {-y} template calculation for custom (TMS) tile grids ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4176](https://github.com/openlayers/openlayers/pull/4176) - Remove use of goog.isDefAndNotNull().
|
|
||||||
([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4200](https://github.com/openlayers/openlayers/pull/4200) - Do not use goog.object.get ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4198](https://github.com/openlayers/openlayers/pull/4198) - Improve ol.control.Rotate.prototype.resetNorth_ performance ([@denilsonsa](https://github.com/denilsonsa))
|
|
||||||
* [#4197](https://github.com/openlayers/openlayers/pull/4197) - Remove blur action on MOUSEOUT on Zoom Out button ([@denilsonsa](https://github.com/denilsonsa))
|
|
||||||
* [#4195](https://github.com/openlayers/openlayers/pull/4195) - #4171: Prefer current layout as default on MultiLineString.setLineStrings() ([@awaterme](https://github.com/awaterme))
|
|
||||||
* [#4172](https://github.com/openlayers/openlayers/pull/4172) - #4171: Prefer current layout as default on Multipolygon.setPolygons() ([@awaterme](https://github.com/awaterme))
|
|
||||||
* [#4190](https://github.com/openlayers/openlayers/pull/4190) - Remove use of goog.functions.constant ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4188](https://github.com/openlayers/openlayers/pull/4188) - Remove use of goog.object.getKeys ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4189](https://github.com/openlayers/openlayers/pull/4189) - Replace goog.nullFunction with ol.nullFunction ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4165](https://github.com/openlayers/openlayers/pull/4165) - Use ECMAScript 5.1 Array functions instead of goog.array ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4181](https://github.com/openlayers/openlayers/pull/4181) - Remove use of goog.array.contains ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4162](https://github.com/openlayers/openlayers/pull/4162) - Remove ol.LEGACY_IE_SUPPORT ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4174](https://github.com/openlayers/openlayers/pull/4174) - Remove hue, saturation, contrast, and brightness as layer properties. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4183](https://github.com/openlayers/openlayers/pull/4183) - Remove @api on getHitDetectionFramebuffer ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4179](https://github.com/openlayers/openlayers/pull/4179) - Use Date.now() instead of goog.now() ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4175](https://github.com/openlayers/openlayers/pull/4175) - Remove use of goog.math.clamp(). ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4173](https://github.com/openlayers/openlayers/pull/4173) - Only animate when resolution is about to be changed ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4129](https://github.com/openlayers/openlayers/pull/4129) - Remove use of goog.isDef. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4168](https://github.com/openlayers/openlayers/pull/4168) - Tile preload example wording (fixes #4147) ([@wlerner](https://github.com/wlerner))
|
|
||||||
* [#4167](https://github.com/openlayers/openlayers/pull/4167) - Remove externs in externs/closure-compiler.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4166](https://github.com/openlayers/openlayers/pull/4166) - Use version 20150920 of Closure Compiler ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4159](https://github.com/openlayers/openlayers/pull/4159) - Remove use of goog.object.containsKey ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4157](https://github.com/openlayers/openlayers/pull/4157) - Fix typo in doc ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4138](https://github.com/openlayers/openlayers/pull/4138) - Enhanced documentation for ol.style.Text ([@ekargee](https://github.com/ekargee))
|
|
||||||
* [#4151](https://github.com/openlayers/openlayers/pull/4151) - Remove bogus assertion ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4110](https://github.com/openlayers/openlayers/pull/4110) - Minor cleanups ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4156](https://github.com/openlayers/openlayers/pull/4156) - Rename drag-features example to custom-interactions ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4150](https://github.com/openlayers/openlayers/pull/4150) - Remove use of goog.object.remove ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4145](https://github.com/openlayers/openlayers/pull/4145) - API method for simplifying geometries. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4153](https://github.com/openlayers/openlayers/pull/4153) - Add a "features" option to ol.interaction.Select ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4144](https://github.com/openlayers/openlayers/pull/4144) - Set context.fillStyle to a string ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4149](https://github.com/openlayers/openlayers/pull/4149) - Remove use of goog.array.isEmpty ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4139](https://github.com/openlayers/openlayers/pull/4139) - Add turf.js and JSTS example ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#4136](https://github.com/openlayers/openlayers/pull/4136) - Fix the 'click-to-fork' link in contributer notes ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4132](https://github.com/openlayers/openlayers/pull/4132) - Update quickstart tutorial ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#4111](https://github.com/openlayers/openlayers/pull/4111) - Use a blackish default for filling texts ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4120](https://github.com/openlayers/openlayers/pull/4120) - Remove invalid link to featureOverlay in API doc ([@kalbermattenm](https://github.com/kalbermattenm))
|
|
||||||
* [#4117](https://github.com/openlayers/openlayers/pull/4117) - forEachFeatureAtPixel shouldn't fail if layer has no source ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#4106](https://github.com/openlayers/openlayers/pull/4106) - Focus to search field on page load ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4079](https://github.com/openlayers/openlayers/pull/4079) - Automatically mark required options in API-docs ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4108](https://github.com/openlayers/openlayers/pull/4108) - Add missing CSSProperties.prototype.touchAction extern ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4107](https://github.com/openlayers/openlayers/pull/4107) - Prevent page zoom on IE Edge ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3969](https://github.com/openlayers/openlayers/pull/3969) - Add an option to use the mouse's location as an anchor when zooming ([@samuellapointe](https://github.com/samuellapointe))
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# v3.10.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
This is a patch release that fixes a regression causing text styles with a fill but no stroke to not be rendered.
|
|
||||||
|
|
||||||
* [#4242](https://github.com/openlayers/openlayers/pull/4242) - Fix a drawText regression introduced with 31a68e2 ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
@@ -1,136 +0,0 @@
|
|||||||
# v3.11.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.11.0 release includes features and fixes from 73 pull requests since the v3.10.1 release. New features and improvements include:
|
|
||||||
|
|
||||||
* Support for raster reprojection - load raster sources in one projection and view them in another.
|
|
||||||
* Support for Mapbox Vector Tiles!
|
|
||||||
* Improved KML support, GeoJSON & TopoJSON fixes, and much more. See below for the full list.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.format.KML` changes
|
|
||||||
|
|
||||||
KML icons are scaled 50% so that the rendering better matches Google Earth rendering.
|
|
||||||
|
|
||||||
If a KML placemark has a name and is a point, an `ol.style.Text` is created with the name displayed to the right of the icon (if there is an icon).
|
|
||||||
This can be controlled with the showPointNames option which defaults to true.
|
|
||||||
|
|
||||||
To disable rendering of the point names for placemarks, use the option:
|
|
||||||
new ol.format.KML({ showPointNames: false });
|
|
||||||
|
|
||||||
#### `ol.interaction.DragBox` and `ol.interaction.DragZoom` changes
|
|
||||||
|
|
||||||
Styling is no longer done with `ol.Style`, but with pure CSS. The `style` constructor option is no longer required, and no longer available. Instead, there is a `className` option for the CSS selector. The default for `ol.interaction.DragBox` is `ol-dragbox`, and `ol.interaction.DragZoom` uses `ol-dragzoom`. If you previously had
|
|
||||||
```js
|
|
||||||
new ol.interaction.DragZoom({
|
|
||||||
style: new ol.style.Style({
|
|
||||||
stroke: new ol.style.Stroke({
|
|
||||||
color: 'red',
|
|
||||||
width: 3
|
|
||||||
}),
|
|
||||||
fill: new ol.style.Fill({
|
|
||||||
color: [255, 255, 255, 0.4]
|
|
||||||
})
|
|
||||||
})
|
|
||||||
});
|
|
||||||
```
|
|
||||||
you'll now just need
|
|
||||||
```js
|
|
||||||
new ol.interaction.DragZoom();
|
|
||||||
```
|
|
||||||
but with additional css:
|
|
||||||
```css
|
|
||||||
.ol-dragzoom {
|
|
||||||
border-color: red;
|
|
||||||
border-width: 3px;
|
|
||||||
background-color: rgba(255,255,255,0.4);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removal of `ol.source.TileVector`
|
|
||||||
|
|
||||||
With the introduction of true vector tile support, `ol.source.TileVector` becomes obsolete. Change your code to use `ol.layer.VectorTile` and `ol.source.VectorTile` instead of `ol.layer.Vector` and `ol.source.TileVector`.
|
|
||||||
|
|
||||||
#### `ol.Map#forEachFeatureAtPixel` changes for unmanaged layers
|
|
||||||
|
|
||||||
`ol.Map#forEachFeatureAtPixel` will still be called for unmanaged layers, but the 2nd argument to the callback function will be `null` instead of a reference to the unmanaged layer. This brings back the behavior of the abandoned `ol.FeatureOverlay` that was replaced by unmanaged layers.
|
|
||||||
|
|
||||||
If you are affected by this change, please change your unmanaged layer to a regular layer by using e.g. `ol.Map#addLayer` instead of `ol.layer.Layer#setMap`.
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#4394](https://github.com/openlayers/openlayers/pull/4394) - Allow ol.Object property update without notification. ([@DavidHequet](https://github.com/DavidHequet))
|
|
||||||
* [#4395](https://github.com/openlayers/openlayers/pull/4395) - Flag ol.style.Text setOffsetX and Y as @api. ([@adube](https://github.com/adube))
|
|
||||||
* [#4393](https://github.com/openlayers/openlayers/pull/4393) - Faster vector tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4392](https://github.com/openlayers/openlayers/pull/4392) - Update clean-css to version 3.4.7 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4391](https://github.com/openlayers/openlayers/pull/4391) - Pass null as forEachFeatureAtPixel layer arg for unmanaged layers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4390](https://github.com/openlayers/openlayers/pull/4390) - Fix usage of mocha-phantomjs-core after update ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4387](https://github.com/openlayers/openlayers/pull/4387) - Add default argument to getRendererFromQueryString ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4376](https://github.com/openlayers/openlayers/pull/4376) - Make KML format ignore image styles that aren't icons ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4385](https://github.com/openlayers/openlayers/pull/4385) - Don't transform the scale specified by the user ([@oterral](https://github.com/oterral))
|
|
||||||
* [#4388](https://github.com/openlayers/openlayers/pull/4388) - Quick-fix running tests with PhantomJS ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4378](https://github.com/openlayers/openlayers/pull/4378) - Add a writeStyles option to KML format ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4375](https://github.com/openlayers/openlayers/pull/4375) - Fixed documentation typo (ol.source.ImageWMS) ([@simonseyock](https://github.com/simonseyock))
|
|
||||||
* [#4371](https://github.com/openlayers/openlayers/pull/4371) - Fix typo in closure compilation tutorial ([@dtreiter](https://github.com/dtreiter))
|
|
||||||
* [#4370](https://github.com/openlayers/openlayers/pull/4370) - Improve ol.interaction.Select#getLayer documentation. ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4365](https://github.com/openlayers/openlayers/pull/4365) - Update fs-extra to version 0.26.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4366](https://github.com/openlayers/openlayers/pull/4366) - Update resemblejs to version 2.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4368](https://github.com/openlayers/openlayers/pull/4368) - Append KML placemark text style to existing styles ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4361](https://github.com/openlayers/openlayers/pull/4361) - Make GPX format not fail on unsupported geometries ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4360](https://github.com/openlayers/openlayers/pull/4360) - Update getExtent return value jsdoc tag ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4359](https://github.com/openlayers/openlayers/pull/4359) - Update closure-util to version 1.9.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4357](https://github.com/openlayers/openlayers/pull/4357) - Update all dependencies. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4356](https://github.com/openlayers/openlayers/pull/4356) - Update Metalsmith and layouts plugin. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4355](https://github.com/openlayers/openlayers/pull/4355) - Update PhantomJS. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4353](https://github.com/openlayers/openlayers/pull/4353) - Resolve path to jsdoc-fork. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3627](https://github.com/openlayers/openlayers/pull/3627) - Make package.json compatible for npm frontend use. ([@ThomasG77](https://github.com/ThomasG77))
|
|
||||||
* [#4163](https://github.com/openlayers/openlayers/pull/4163) - Fixes for building with Node 4.x. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4347](https://github.com/openlayers/openlayers/pull/4347) - Use require.resolve() to find jsdoc. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4291](https://github.com/openlayers/openlayers/pull/4291) - Add 'Move a feature along a line' example. ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4344](https://github.com/openlayers/openlayers/pull/4344) - Allow different resolutions in x and y direction for ol.source.ImageStatic ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4339](https://github.com/openlayers/openlayers/pull/4339) - Make sure drawImage width and height are not too big ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4334](https://github.com/openlayers/openlayers/pull/4334) - Check view extent within image extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4332](https://github.com/openlayers/openlayers/pull/4332) - Fix write out GeoJSON features with id equal to 0 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4331](https://github.com/openlayers/openlayers/pull/4331) - Allow TopoJSON features with id equal to 0 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4330](https://github.com/openlayers/openlayers/pull/4330) - ol.format.TopoJSON is read only, update the jsdoc ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4327](https://github.com/openlayers/openlayers/pull/4327) - Allow GeoJSON features with id equal to 0 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4219](https://github.com/openlayers/openlayers/pull/4219) - Support tiled vector data and Mapbox vector tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4322](https://github.com/openlayers/openlayers/pull/4322) - Add wrapX override support for ol.source.Cluster ([@FRizZL](https://github.com/FRizZL))
|
|
||||||
* [#4316](https://github.com/openlayers/openlayers/pull/4316) - Render name labels if the geometry is a point in KML format (@tamarmot) ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4313](https://github.com/openlayers/openlayers/pull/4313) - Align logos nicely with attribution text ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4297](https://github.com/openlayers/openlayers/pull/4297) - Create standalone versions of ol.ext packages ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4302](https://github.com/openlayers/openlayers/pull/4302) - scale icons by 0.5 so they are not huge ([@tamarmot](https://github.com/tamarmot))
|
|
||||||
* [#4301](https://github.com/openlayers/openlayers/pull/4301) - Remove jshint -W069 tags in source code ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4273](https://github.com/openlayers/openlayers/pull/4273) - Expand docs on ol.source url prop. ([@Barryrowe](https://github.com/Barryrowe))
|
|
||||||
* [#4293](https://github.com/openlayers/openlayers/pull/4293) - Refine the pull request process ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4289](https://github.com/openlayers/openlayers/pull/4289) - Restrict maxZoom of the static-image example ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4275](https://github.com/openlayers/openlayers/pull/4275) - Fix ol.events.condition.mouseOnly parameter type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4248](https://github.com/openlayers/openlayers/pull/4248) - Use Math.cosh of ES6/2015 if available ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4286](https://github.com/openlayers/openlayers/pull/4286) - Add a color manipulation example. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4122](https://github.com/openlayers/openlayers/pull/4122) - Raster reprojection ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4283](https://github.com/openlayers/openlayers/pull/4283) - Flag ol.tilegrid.TileGrid getTileCoordExtent as @api ([@adube](https://github.com/adube))
|
|
||||||
* [#4280](https://github.com/openlayers/openlayers/pull/4280) - Use overlay container instead of viewport for ol.render.Box ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4278](https://github.com/openlayers/openlayers/pull/4278) - Use DOM instead of map canvas for ol.render.Box ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4277](https://github.com/openlayers/openlayers/pull/4277) - Improve the box select example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4276](https://github.com/openlayers/openlayers/pull/4276) - Better ol.events.condition.platformModifierKeyOnly documentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4102](https://github.com/openlayers/openlayers/pull/4102) - Export ol.Observable#dispatchEvent function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4261](https://github.com/openlayers/openlayers/pull/4261) - ol.events.condition.mouseOnly may be wrong ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4269](https://github.com/openlayers/openlayers/pull/4269) - Fix Zoom control duration option - allow `0` as value ([@adube](https://github.com/adube))
|
|
||||||
* [#4268](https://github.com/openlayers/openlayers/pull/4268) - Add method for retrieving ol.Overlay by id ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4257](https://github.com/openlayers/openlayers/pull/4257) - Remove unused ol.math-methods ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4270](https://github.com/openlayers/openlayers/pull/4270) - Fix Keyboard zoom interation options ([@adube](https://github.com/adube))
|
|
||||||
* [#4272](https://github.com/openlayers/openlayers/pull/4272) - Allow the DragZoom interaction created in defaults to use zoomDuration option. ([@adube](https://github.com/adube))
|
|
||||||
* [#4271](https://github.com/openlayers/openlayers/pull/4271) - Fix DragZoom interaction duration, allow `0` value ([@adube](https://github.com/adube))
|
|
||||||
* [#4267](https://github.com/openlayers/openlayers/pull/4267) - Example usability improvements ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4263](https://github.com/openlayers/openlayers/pull/4263) - Add back CSSProperties.prototype.touchAction extern ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4259](https://github.com/openlayers/openlayers/pull/4259) - Remove use of toDegrees/toRadians util functions ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4258](https://github.com/openlayers/openlayers/pull/4258) - Remove usage of goog.dom.TagName enum ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4255](https://github.com/openlayers/openlayers/pull/4255) - Fix zoom slider width for retina displays ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4249](https://github.com/openlayers/openlayers/pull/4249) - Make whole example box clickable ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4045](https://github.com/openlayers/openlayers/pull/4045) - Add parser for dimension property from WMTS Capabilities.xml ([@Jenselme](https://github.com/Jenselme))
|
|
||||||
* [#4161](https://github.com/openlayers/openlayers/pull/4161) - Add `translatestart`, `translateend` and `translating` events to `ol.interaction.Translate` ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4186](https://github.com/openlayers/openlayers/pull/4186) - Do not export ol.webgl.Context ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4239](https://github.com/openlayers/openlayers/pull/4239) - Changing highlighted to highlight ([@austinkeeley](https://github.com/austinkeeley))
|
|
||||||
* [#3727](https://github.com/openlayers/openlayers/pull/3727) - Added getOverviewMap getter method in overviewmapcontrol.js ([@bogdanvaduva](https://github.com/bogdanvaduva))
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# v3.11.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.11.1 release is a patch release that addresses a few regressions in the v3.11.0 release. See the [v3.11.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.11.0) for details on upgrading from v3.10.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#4413](https://github.com/openlayers/openlayers/pull/4413) - Revert "Merge pull request #4339 from bartvde/issue-4337" ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4412](https://github.com/openlayers/openlayers/pull/4412) - Revert "Merge pull request #4344 from bartvde/issue-2844" ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4408](https://github.com/openlayers/openlayers/pull/4408) - Use ratio when calculating ImageWMS width and height ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# v3.11.2
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.11.2 release is a patch release that addresses a few regressions in the v3.11.1 release. See the [v3.11.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.11.0) for details on upgrading from v3.10.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#4450](https://github.com/openlayers/openlayers/pull/4450) - Fix select interaction regression caused by #4391 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4448](https://github.com/openlayers/openlayers/pull/4448) - Check ol.source.UrlTile#urls property for null value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4439](https://github.com/openlayers/openlayers/pull/4439) - Allow '' for crossOrigin (as Anonymous alias) ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
# v3.12.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.12.0 release includes features and fixes from 71 pull requests since the v3.11.2 release. New features and improvements include:
|
|
||||||
|
|
||||||
* Tile coordinate wrapping for raster reprojection.
|
|
||||||
* Support for multi-line labels.
|
|
||||||
* Allow rendering geometries to an arbitrary canvas (useful for vector legends).
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.Map#forEachFeatureAtPixel` changes
|
|
||||||
|
|
||||||
The optional `layerFilter` function is now also called for unmanaged layers. To get the same behaviour as before, wrap your layer filter code in an if block like this:
|
|
||||||
```js
|
|
||||||
function layerFilter(layer) {
|
|
||||||
if (map.getLayers().getArray().indexOf(layer) !== -1) {
|
|
||||||
// existing layer filter code
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#4559](https://github.com/openlayers/openlayers/pull/4559) - Fix up failing KML test in Firefox ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4561](https://github.com/openlayers/openlayers/pull/4561) - Exclude feature loader MVT test from IE9 ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4552](https://github.com/openlayers/openlayers/pull/4552) - Make sure compiled code calls ol.VectorTile#setProjection ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4551](https://github.com/openlayers/openlayers/pull/4551) - Handle tile coordinate wrapping when reprojecting raster tiles ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4544](https://github.com/openlayers/openlayers/pull/4544) - Update vector-tile to version 1.2.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4537](https://github.com/openlayers/openlayers/pull/4537) - Allow specifying non default DPI on ol.source.TileArcGISRest ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4548](https://github.com/openlayers/openlayers/pull/4548) - Improve vector tile related docs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4549](https://github.com/openlayers/openlayers/pull/4549) - Update vector label example ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#4512](https://github.com/openlayers/openlayers/pull/4512) - Support for multi-line labels (improved) ([@flightaware](https://github.com/flightaware))
|
|
||||||
* [#4546](https://github.com/openlayers/openlayers/pull/4546) - Update coveralls to version 2.11.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4539](https://github.com/openlayers/openlayers/pull/4539) - Ignore index.html in example list ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4536](https://github.com/openlayers/openlayers/pull/4536) - Register the change callback when the tile is enqueued ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4528](https://github.com/openlayers/openlayers/pull/4528) - Remove redundant code from ol.featureloader.tile ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4535](https://github.com/openlayers/openlayers/pull/4535) - Do not use an array for a single style ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4532](https://github.com/openlayers/openlayers/pull/4532) - Mark olx.source.WMTSOptions#dimensions as not null ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4530](https://github.com/openlayers/openlayers/pull/4530) - Remove use of goog.isNull ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4529](https://github.com/openlayers/openlayers/pull/4529) - Update coding style rules ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4518](https://github.com/openlayers/openlayers/pull/4518) - Add support for OSM vector tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4524](https://github.com/openlayers/openlayers/pull/4524) - Add example for rendering custom point symbols ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4523](https://github.com/openlayers/openlayers/pull/4523) - Allow rendering geometries to an arbitrary canvas ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4525](https://github.com/openlayers/openlayers/pull/4525) - Make render tests work on more devices ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4515](https://github.com/openlayers/openlayers/pull/4515) - Accept HTMLCanvasElement for an icon's img ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4521](https://github.com/openlayers/openlayers/pull/4521) - Fix imagestyle docs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4508](https://github.com/openlayers/openlayers/pull/4508) - Remove unused files ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4487](https://github.com/openlayers/openlayers/pull/4487) - Remove fallback css color ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4502](https://github.com/openlayers/openlayers/pull/4502) - Improve ol.source.WMTS.optionsFromCapabilities jsdoc layout ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4511](https://github.com/openlayers/openlayers/pull/4511) - Minor code cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4510](https://github.com/openlayers/openlayers/pull/4510) - Adding a check just in case the projection is not defined/supported ([@GeoCat](https://github.com/GeoCat))
|
|
||||||
* [#4505](https://github.com/openlayers/openlayers/pull/4505) - Remove use of goog.object.getKeys ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4472](https://github.com/openlayers/openlayers/pull/4472) - Do not ignore layer filter for unmanaged layers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4476](https://github.com/openlayers/openlayers/pull/4476) - Remove use of goog.functions.constant ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4484](https://github.com/openlayers/openlayers/pull/4484) - Remove use of goog.dom.createDom ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4486](https://github.com/openlayers/openlayers/pull/4486) - Remove note about DragZoom and vector support ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4483](https://github.com/openlayers/openlayers/pull/4483) - Remove use of goog.object.containsKey ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4475](https://github.com/openlayers/openlayers/pull/4475) - Fix up failing tests in Internet Explorer ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4485](https://github.com/openlayers/openlayers/pull/4485) - Use appendChild instead of goog.dom.append ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4481](https://github.com/openlayers/openlayers/pull/4481) - Remove blur workaround in ol.control.Attribution ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4479](https://github.com/openlayers/openlayers/pull/4479) - Export ol.interaction.Interaction#getMap function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4478](https://github.com/openlayers/openlayers/pull/4478) - Fix olx.control.FullScreenOptions#label apidoc ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4477](https://github.com/openlayers/openlayers/pull/4477) - Replace goog.nullFunction with ol.nullFunction ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4474](https://github.com/openlayers/openlayers/pull/4474) - Remove use of goog.dom.createElement and goog.dom.createTextNode ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4469](https://github.com/openlayers/openlayers/pull/4469) - Upgrade to JSTS 0.17.0 in example ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#4465](https://github.com/openlayers/openlayers/pull/4465) - Update handlebars to version 4.0.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4464](https://github.com/openlayers/openlayers/pull/4464) - Merge in changes from the 3.11.2 release. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4463](https://github.com/openlayers/openlayers/pull/4463) - Remove use of goog.array.sort ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4450](https://github.com/openlayers/openlayers/pull/4450) - Fix select interaction regression caused by #4391 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4458](https://github.com/openlayers/openlayers/pull/4458) - Remove extra space in type annotation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4420](https://github.com/openlayers/openlayers/pull/4420) - Remove Bootstrap and jQuery from example snippets. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4442](https://github.com/openlayers/openlayers/pull/4442) - Use jsdoc@3.4.0. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4449](https://github.com/openlayers/openlayers/pull/4449) - Change the label of the full screen button to be more intuitive ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4448](https://github.com/openlayers/openlayers/pull/4448) - Check ol.source.UrlTile#urls property for null value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4440](https://github.com/openlayers/openlayers/pull/4440) - Raster reprojection tutorial ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4439](https://github.com/openlayers/openlayers/pull/4439) - Allow '' for crossOrigin (as Anonymous alias) ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4429](https://github.com/openlayers/openlayers/pull/4429) - Dispatch a change event only if the value changes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4435](https://github.com/openlayers/openlayers/pull/4435) - Remove unnecessary cast ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4434](https://github.com/openlayers/openlayers/pull/4434) - Remove unused local variables ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4433](https://github.com/openlayers/openlayers/pull/4433) - Remove unused local variables ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4140](https://github.com/openlayers/openlayers/pull/4140) - Add flight animation example ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#4428](https://github.com/openlayers/openlayers/pull/4428) - Add imageSize regression test for ol.source.ImageWMS ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4426](https://github.com/openlayers/openlayers/pull/4426) - Improve ol.source.StaticImage ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4425](https://github.com/openlayers/openlayers/pull/4425) - Test number property with !== undefined ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4423](https://github.com/openlayers/openlayers/pull/4423) - Update mocha to version 2.3.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4416](https://github.com/openlayers/openlayers/pull/4416) - Update clean-css to version 3.4.8 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4415](https://github.com/openlayers/openlayers/pull/4415) - Scale StaticImage image to imageExtent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4414](https://github.com/openlayers/openlayers/pull/4414) - Remove ol.ImageUrlFunction ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4389](https://github.com/openlayers/openlayers/pull/4389) - Smooth transitions on parameter changes ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4410](https://github.com/openlayers/openlayers/pull/4410) - Merge in changes from the 3.11.1 release. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4401](https://github.com/openlayers/openlayers/pull/4401) - Allow style function to return a style. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4404](https://github.com/openlayers/openlayers/pull/4404) - Set correctly the opt_this parameter when writing a KML document ([@oterral](https://github.com/oterral))
|
|
||||||
* [#4397](https://github.com/openlayers/openlayers/pull/4397) - Update glob to version 6.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4362](https://github.com/openlayers/openlayers/pull/4362) - Rotate control now takes optional resetNorth function. ([@tamarmot](https://github.com/tamarmot))
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# v3.12.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.12.1 release is a patch release that addresses a few regressions in the v3.12.0 release. See the [v3.12.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.12.0) for details on upgrading from v3.11.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#4578](https://github.com/openlayers/openlayers/pull/4578) - Fix apidoc landing page markup ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4570](https://github.com/openlayers/openlayers/pull/4570) - Rename defaultSort to numberSafeCompareFunction on ol.array ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4567](https://github.com/openlayers/openlayers/pull/4567) - Always pass on a compare function to sort ([@bartvde](https://github.com/bartvde))
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
# v3.13.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.13.0 release includes features and fixes from 68 pull requests since the v3.12.1 release. New features and improvements include:
|
|
||||||
|
|
||||||
* Improved tiles rendering for the canvas renderer
|
|
||||||
* Improved MapQuest rendering
|
|
||||||
* Add color option to ol.style.Icon
|
|
||||||
* Load TileJSON sources via XMLHttpRequest by default
|
|
||||||
* Add new ol.geom.LineString#getCoordinateAt function
|
|
||||||
* Simplify meters per unit handling
|
|
||||||
* Use ESLint as a replacement for gjslint.py and jshint
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `proj4js` integration
|
|
||||||
|
|
||||||
Before this release, OpenLayers depended on the global proj4 namespace. When using a module loader like Browserify, you might not want to depend on the global `proj4` namespace. You can use the `ol.proj.setProj4` function to set the proj4 function object. For example in a browserify ES6 environment:
|
|
||||||
|
|
||||||
```js
|
|
||||||
import ol from 'openlayers';
|
|
||||||
import proj4 from 'proj4';
|
|
||||||
ol.proj.setProj4(proj4);
|
|
||||||
```
|
|
||||||
|
|
||||||
#### `ol.source.TileJSON` changes
|
|
||||||
|
|
||||||
The `ol.source.TileJSON` now uses `XMLHttpRequest` to load the TileJSON instead of JSONP with callback.
|
|
||||||
When using server without proper CORS support, `jsonp: true` option can be passed to the constructor to get the same behavior as before:
|
|
||||||
```js
|
|
||||||
new ol.source.TileJSON({
|
|
||||||
url: 'http://serverwithoutcors.com/tilejson.json',
|
|
||||||
jsonp: true
|
|
||||||
})
|
|
||||||
```
|
|
||||||
Also for Mapbox v3, make sure you use urls ending with `.json` (which are able to handle both `XMLHttpRequest` and JSONP) instead of `.jsonp`.
|
|
||||||
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#4694](https://github.com/openlayers/openlayers/pull/4694) - Fix eslint errors in wms-time example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4527](https://github.com/openlayers/openlayers/pull/4527) - Add support for smooth TileWMS dimensions ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4691](https://github.com/openlayers/openlayers/pull/4691) - Updated Bing Maps key. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4673](https://github.com/openlayers/openlayers/pull/4673) - Respect fixed tile url functions when setting url(s) ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4689](https://github.com/openlayers/openlayers/pull/4689) - Revert "Do not render in handleDownEvent" ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4688](https://github.com/openlayers/openlayers/pull/4688) - Give map a focus-outline in accessible-example ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4642](https://github.com/openlayers/openlayers/pull/4642) - Move the icon style color to its own example ([@alexbrault](https://github.com/alexbrault))
|
|
||||||
* [#4685](https://github.com/openlayers/openlayers/pull/4685) - Remove bin/check-whitespace.py ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4684](https://github.com/openlayers/openlayers/pull/4684) - Update eslint-config-openlayers to version 3.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4677](https://github.com/openlayers/openlayers/pull/4677) - Make pixel projection handling work in compiled mode ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4639](https://github.com/openlayers/openlayers/pull/4639) - Remove use of goog.bind and use ES5 .bind. ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#4655](https://github.com/openlayers/openlayers/pull/4655) - Update browserify to version 13.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4666](https://github.com/openlayers/openlayers/pull/4666) - Add a 'boxdrag' event to ol.interaction.DragBox. Resolves #4563 . ([@WeaveTeam](https://github.com/WeaveTeam))
|
|
||||||
* [#4669](https://github.com/openlayers/openlayers/pull/4669) - Remove reference to Closure Linter in CONTRIBUTING.md ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4665](https://github.com/openlayers/openlayers/pull/4665) - Update istanbul to version 0.4.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4663](https://github.com/openlayers/openlayers/pull/4663) - Update glob to version 6.0.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4667](https://github.com/openlayers/openlayers/pull/4667) - Fix rendering of transparent MapQuest layer type ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4661](https://github.com/openlayers/openlayers/pull/4661) - Fixes #4654 Developer Documentation Updated ([@gaf-ag](https://github.com/gaf-ag))
|
|
||||||
* [#4658](https://github.com/openlayers/openlayers/pull/4658) - Update jquery to version 2.2.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4659](https://github.com/openlayers/openlayers/pull/4659) - Make sure icons show up in Safari ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4652](https://github.com/openlayers/openlayers/pull/4652) - Use map.getTargetElement instead of map.getTarget ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4649](https://github.com/openlayers/openlayers/pull/4649) - Missing parameter description for ol.source.Tile#getOpaque ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4602](https://github.com/openlayers/openlayers/pull/4602) - Use ESLint. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4628](https://github.com/openlayers/openlayers/pull/4628) - Fix for reprojecting opaque tile sources ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4618](https://github.com/openlayers/openlayers/pull/4618) - Update resemblejs to version 2.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4647](https://github.com/openlayers/openlayers/pull/4647) - Proper rounding for possibly negative numbers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4641](https://github.com/openlayers/openlayers/pull/4641) - Remove extra options from icon example. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4629](https://github.com/openlayers/openlayers/pull/4629) - Simplify scaleline calculation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4457](https://github.com/openlayers/openlayers/pull/4457) - Add color option to ol.style.Icon ([@alexbrault](https://github.com/alexbrault))
|
|
||||||
* [#4638](https://github.com/openlayers/openlayers/pull/4638) - Do not rely on projection extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4635](https://github.com/openlayers/openlayers/pull/4635) - Update async to version 1.5.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4581](https://github.com/openlayers/openlayers/pull/4581) - Do not render in handleDownEvent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4541](https://github.com/openlayers/openlayers/pull/4541) - Add new ol.geom.LineString#getCoordinateAt function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4489](https://github.com/openlayers/openlayers/pull/4489) - Update phantomjs to version 1.9.19 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4625](https://github.com/openlayers/openlayers/pull/4625) - Use XHR by default to load TileJSON in ol.source.TileJSON ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4622](https://github.com/openlayers/openlayers/pull/4622) - Update fs-extra to version 0.26.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4630](https://github.com/openlayers/openlayers/pull/4630) - Simplify meters per unit handling ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4490](https://github.com/openlayers/openlayers/pull/4490) - Update istanbul to version 0.4.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4574](https://github.com/openlayers/openlayers/pull/4574) - Added boxEndCondition to DragBoxOptions to replace the hardcoded chec… ([@WeaveTeam](https://github.com/WeaveTeam))
|
|
||||||
* [#4553](https://github.com/openlayers/openlayers/pull/4553) - Update mustache to version 2.2.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4626](https://github.com/openlayers/openlayers/pull/4626) - Fixed documentation error ([@simonseyock](https://github.com/simonseyock))
|
|
||||||
* [#4606](https://github.com/openlayers/openlayers/pull/4606) - Include originating MapBrowserEvent in ol.DragBoxEvent ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4614](https://github.com/openlayers/openlayers/pull/4614) - Remove checksum interface. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4613](https://github.com/openlayers/openlayers/pull/4613) - Include own layer in layerFilter and only select unselected features ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4612](https://github.com/openlayers/openlayers/pull/4612) - Set oli.source.VectorEvent#feature to ol.Feature|undefined ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4620](https://github.com/openlayers/openlayers/pull/4620) - Fix olx.format.PolylineOptions#factor type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4621](https://github.com/openlayers/openlayers/pull/4621) - Fix olx.format.GPXOptions#readExtensions type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4619](https://github.com/openlayers/openlayers/pull/4619) - Add option to load TileJSON via XHR ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4617](https://github.com/openlayers/openlayers/pull/4617) - Add missing return type to GeoJSON format ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4615](https://github.com/openlayers/openlayers/pull/4615) - Adjust copyright to include 2016 ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4616](https://github.com/openlayers/openlayers/pull/4616) - Update closure-util to version 1.10.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4596](https://github.com/openlayers/openlayers/pull/4596) - Use consistent tile coordinate keys ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4609](https://github.com/openlayers/openlayers/pull/4609) - Add ol.proj.setProj4 function ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4603](https://github.com/openlayers/openlayers/pull/4603) - Update async to version 1.5.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4604](https://github.com/openlayers/openlayers/pull/4604) - Update clean-css to version 3.4.9 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4600](https://github.com/openlayers/openlayers/pull/4600) - Update glob to version 6.0.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4595](https://github.com/openlayers/openlayers/pull/4595) - Pass 'opaque' option on to superclass ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4598](https://github.com/openlayers/openlayers/pull/4598) - Make ol.source.Tile#getTilePixelRatio work correctly for all sources ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4594](https://github.com/openlayers/openlayers/pull/4594) - Fix for TileQueue gradually choking up when using raster reprojection ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4557](https://github.com/openlayers/openlayers/pull/4557) - Conditionally render tiles to a separate tile canvas ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4580](https://github.com/openlayers/openlayers/pull/4580) - Update fs-extra to version 0.26.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4579](https://github.com/openlayers/openlayers/pull/4579) - Release v3.12.1 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4578](https://github.com/openlayers/openlayers/pull/4578) - Fix apidoc landing page markup ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4575](https://github.com/openlayers/openlayers/pull/4575) - Update rbush to version 1.4.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4571](https://github.com/openlayers/openlayers/pull/4571) - Correct typedef of selectinteraction options obj ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4570](https://github.com/openlayers/openlayers/pull/4570) - Rename defaultSort to numberSafeCompareFunction on ol.array ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4567](https://github.com/openlayers/openlayers/pull/4567) - Always pass on a compare function to sort ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4001](https://github.com/openlayers/openlayers/pull/4001) - Export PDF's using jsPDF ([@bartvde](https://github.com/bartvde))
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# v3.13.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.13.1 release is a patch release that addresses a few regressions in the v3.13.0 release. See the [v3.13.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.13.0) for details on upgrading from v3.12.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#4736](https://github.com/openlayers/openlayers/pull/4736) - Properly detect feature on unmanaged layer for toggle selection ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4777](https://github.com/openlayers/openlayers/pull/4777) - Fix source.UrlTile URL expansion ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
# v3.14.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.14.0 release includes features and fixes from 93 pull requests since the v3.13.1 release. New features and improvements include:
|
|
||||||
|
|
||||||
* New `source` option for the `ol.control.FullScreen`, to allow including other elements besides the map in a full screen view (#4679).
|
|
||||||
* New `target` property for the Drag&Drop interaction allows using a different drop target than the map viewport (#4876).
|
|
||||||
* `ol.style.RegularShape` has a new `rotateWithView` option, for controlling how regular shape symbols are rendered on rotated views (#4698).
|
|
||||||
* New `layers` option for `ol.format.WMSGetFeatureInfo` format, to selectively only read features from specific layers (#4700).
|
|
||||||
* New `precision` parameter for formatting coordinates with `ol.coordinate.toStringHDMS` (#4787).
|
|
||||||
* Smarter tile queue for improved tile loading user experience when more than one tile layer is used (#4794).
|
|
||||||
* Improved rendering performance for tile layers by rendering tiles directly to the map canvas (#4597).
|
|
||||||
* The `goog.events` event system was replaced with our own lightweight event system. This significally reduces the build size (#4711). Replacement of other `goog.*` components with ES5 features or custom code marks a huge step towards the complete removal of the Closure Library dependency.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### Internet Explorer 9 support
|
|
||||||
|
|
||||||
As of this release, OpenLayers requires a `requestAnimationFrame`/`cancelAnimationFrame` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features/#requestAnimationFrame.
|
|
||||||
|
|
||||||
#### Layer pre-/postcompose event changes
|
|
||||||
|
|
||||||
It is the responsibility of the application to undo any canvas transform changes at the end of a layer 'precompose' or 'postcompose' handler. Previously, it was ok to set a null transform. The API now guarantees a device pixel coordinate system on the canvas with its origin in the top left corner of the map. However, applications should not rely on the underlying canvas being the same size as the visible viewport.
|
|
||||||
|
|
||||||
Old code:
|
|
||||||
```js
|
|
||||||
layer.on('precompose', function(e) {
|
|
||||||
// rely on canvas dimensions to move coordinate origin to center
|
|
||||||
e.context.translate(e.context.canvas.width / 2, e.context.canvas.height / 2);
|
|
||||||
e.context.scale(3, 3);
|
|
||||||
// draw an x in the center of the viewport
|
|
||||||
e.context.moveTo(-20, -20);
|
|
||||||
e.context.lineTo(20, 20);
|
|
||||||
e.context.moveTo(-20, 20);
|
|
||||||
e.context.lineTo(20, -20);
|
|
||||||
// rely on the canvas having a null transform
|
|
||||||
e.context.setTransform(1, 0, 0, 1, 0, 0);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
New code:
|
|
||||||
```js
|
|
||||||
layer.on('precompose', function(e) {
|
|
||||||
// use map size and pixel ratio to move coordinate origin to center
|
|
||||||
var size = map.getSize();
|
|
||||||
var pixelRatio = e.frameState.pixelRatio;
|
|
||||||
e.context.translate(size[0] / 2 * pixelRatio, size[1] / 2 * pixelRatio);
|
|
||||||
e.context.scale(3, 3);
|
|
||||||
// draw an x in the center of the viewport
|
|
||||||
e.context.moveTo(-20, -20);
|
|
||||||
e.context.lineTo(20, 20);
|
|
||||||
e.context.moveTo(-20, 20);
|
|
||||||
e.context.lineTo(20, -20);
|
|
||||||
// undo all transforms
|
|
||||||
e.context.scale(1 / 3, 1 / 3);
|
|
||||||
e.context.translate(-size[0] / 2 * pixelRatio, -size[1] / 2 * pixelRatio);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#4896](https://github.com/openlayers/openlayers/pull/4896) - Ignore XML sequence when comparing GML ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4890](https://github.com/openlayers/openlayers/pull/4890) - ol.format.KML cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4894](https://github.com/openlayers/openlayers/pull/4894) - Only run raster operations after image sources have loaded. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4892](https://github.com/openlayers/openlayers/pull/4892) - Stricter check for ImageData constructor ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4891](https://github.com/openlayers/openlayers/pull/4891) - Fix tests so they all pass in IE9 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4889](https://github.com/openlayers/openlayers/pull/4889) - Use requestAnimation polyfill for examples and update release notes ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4887](https://github.com/openlayers/openlayers/pull/4887) - Use less aggressive DOM function overrides ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4885](https://github.com/openlayers/openlayers/pull/4885) - Mark overlayContainer and overlayContainerStopEvent as non-nullable ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4884](https://github.com/openlayers/openlayers/pull/4884) - Remove use of goog.math.isFiniteNumber() ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4881](https://github.com/openlayers/openlayers/pull/4881) - Update jquery to version 2.2.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4780](https://github.com/openlayers/openlayers/pull/4780) - Adapt the code for the new closure-compiler version ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3453](https://github.com/openlayers/openlayers/pull/3453) - Consider multi in add/remove/toggle select logic ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#4876](https://github.com/openlayers/openlayers/pull/4876) - Add `target` property to Drag&Drop interaction ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#4854](https://github.com/openlayers/openlayers/pull/4854) - Always report skipped feature hits for the original layer ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4877](https://github.com/openlayers/openlayers/pull/4877) - Update eslint to version 2.2.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4870](https://github.com/openlayers/openlayers/pull/4870) - Reuse dragListenerKeys_ local variable ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4721](https://github.com/openlayers/openlayers/pull/4721) - Fix reprojection of raster sources with gutter ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4874](https://github.com/openlayers/openlayers/pull/4874) - Assert we have a feature id ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4869](https://github.com/openlayers/openlayers/pull/4869) - Improve precision of ol.reproj.render ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4866](https://github.com/openlayers/openlayers/pull/4866) - Use requestAnimationFrame polyfill (for IE9) ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4863](https://github.com/openlayers/openlayers/pull/4863) - Remove use of goog.dom.createElement ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4864](https://github.com/openlayers/openlayers/pull/4864) - Use querySelectorAll instead of goog.dom.getElementsByClass ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4597](https://github.com/openlayers/openlayers/pull/4597) - Render tiles directly to the map canvas ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4862](https://github.com/openlayers/openlayers/pull/4862) - Add OSGeo badge ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4845](https://github.com/openlayers/openlayers/pull/4845) - Fix geolocation error cast ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4851](https://github.com/openlayers/openlayers/pull/4851) - Don't use goog.isBoolean() ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4852](https://github.com/openlayers/openlayers/pull/4852) - Don't use goog.isString() ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4849](https://github.com/openlayers/openlayers/pull/4849) - Fix docs of LogoOptions.prototype.src ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4794](https://github.com/openlayers/openlayers/pull/4794) - Make tile loading count no longer depend on source count ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4843](https://github.com/openlayers/openlayers/pull/4843) - Remove use of goog.dom.getParentElement ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4839](https://github.com/openlayers/openlayers/pull/4839) - Add template type to ol.Collection ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4847](https://github.com/openlayers/openlayers/pull/4847) - Update eslint to version 2.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4632](https://github.com/openlayers/openlayers/pull/4632) - Overloading fill color (polygon or text) with CanvasPattern and CanvasGradient ([@bjnsn](https://github.com/bjnsn))
|
|
||||||
* [#4842](https://github.com/openlayers/openlayers/pull/4842) - Remove use of goog.dom.createDom ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4808](https://github.com/openlayers/openlayers/pull/4808) - Type cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4737](https://github.com/openlayers/openlayers/pull/4737) - Use olx.format.ReadOptions in ol.interaction.DragAndDrop ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4830](https://github.com/openlayers/openlayers/pull/4830) - Make sure window.proj4 is always restored in tests ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4838](https://github.com/openlayers/openlayers/pull/4838) - Use regular expression instead of String#endsWith() check ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4837](https://github.com/openlayers/openlayers/pull/4837) - Update metalsmith-layouts to version 1.5.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4836](https://github.com/openlayers/openlayers/pull/4836) - Use lowercase for all user agent checks ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4833](https://github.com/openlayers/openlayers/pull/4833) - Upgrade linter and config. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4831](https://github.com/openlayers/openlayers/pull/4831) - Add navigation header to examples page ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4824](https://github.com/openlayers/openlayers/pull/4824) - Don't use goog.string.newlines.* ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4825](https://github.com/openlayers/openlayers/pull/4825) - Don't use goog.string.isEmpty ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4823](https://github.com/openlayers/openlayers/pull/4823) - Fix type for layers option on ol.interaction.Select ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4815](https://github.com/openlayers/openlayers/pull/4815) - wrapX false in synthetic examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4810](https://github.com/openlayers/openlayers/pull/4810) - Add checks for undefined in controls ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4787](https://github.com/openlayers/openlayers/pull/4787) - Add precision parameter for HDMS coordinate ([@pfanguin](https://github.com/pfanguin))
|
|
||||||
* [#4811](https://github.com/openlayers/openlayers/pull/4811) - Make ol.style.Style a @struct ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4800](https://github.com/openlayers/openlayers/pull/4800) - Update phantomjs-prebuilt to version 2.1.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4792](https://github.com/openlayers/openlayers/pull/4792) - Use ol.events.listen instead of ol.Observable#on ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4796](https://github.com/openlayers/openlayers/pull/4796) - Remove use of goog.isString() ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4795](https://github.com/openlayers/openlayers/pull/4795) - Cleanup after goog.array, goog.object and goog.isDef removal ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4791](https://github.com/openlayers/openlayers/pull/4791) - Remove unnecessary cast ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4778](https://github.com/openlayers/openlayers/pull/4778) - Remove use of goog.object. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4789](https://github.com/openlayers/openlayers/pull/4789) - Use ol.array instead of goog.array ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4788](https://github.com/openlayers/openlayers/pull/4788) - Remove unnecessary newlines ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4731](https://github.com/openlayers/openlayers/pull/4731) - Remove all remaining unnecessary casts ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4776](https://github.com/openlayers/openlayers/pull/4776) - Correct assertion message in ol.array.binarySearch-test ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4711](https://github.com/openlayers/openlayers/pull/4711) - Removal of goog.events.* ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4777](https://github.com/openlayers/openlayers/pull/4777) - Fix source.UrlTile URL expansion ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4730](https://github.com/openlayers/openlayers/pull/4730) - Document ol.Geolocation error event ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4772](https://github.com/openlayers/openlayers/pull/4772) - Use node.setAttribute to set namespaceURI of a node ([@adube](https://github.com/adube))
|
|
||||||
* [#4774](https://github.com/openlayers/openlayers/pull/4774) - Update graceful-fs to version 4.1.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4680](https://github.com/openlayers/openlayers/pull/4680) - Remove goog array. ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#4771](https://github.com/openlayers/openlayers/pull/4771) - Use innerHTML instead of innerText to populate the status element ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4769](https://github.com/openlayers/openlayers/pull/4769) - Add opaque option to olx.source.OSMOptions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4736](https://github.com/openlayers/openlayers/pull/4736) - Properly detect feature on unmanaged layer for toggle selection ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4756](https://github.com/openlayers/openlayers/pull/4756) - Remove VectorTile getSource re-definition of return value ([@adube](https://github.com/adube))
|
|
||||||
* [#4733](https://github.com/openlayers/openlayers/pull/4733) - Avoid rendering too big and too small images for vector tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4754](https://github.com/openlayers/openlayers/pull/4754) - Upgrade to mocha@2.4.5. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4750](https://github.com/openlayers/openlayers/pull/4750) - Update metalsmith-layouts to version 1.4.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4751](https://github.com/openlayers/openlayers/pull/4751) - Update phantomjs to version 2.1.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4741](https://github.com/openlayers/openlayers/pull/4741) - Report on installed versions in Travis. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4742](https://github.com/openlayers/openlayers/pull/4742) - Upgrade to eslint@2.0.0-beta.2. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4746](https://github.com/openlayers/openlayers/pull/4746) - Downgrade to mocha@2.3.4. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4740](https://github.com/openlayers/openlayers/pull/4740) - Update fs-extra to version 0.26.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4738](https://github.com/openlayers/openlayers/pull/4738) - Add unit tests for ol.control.Rotate and ol.control.Zoom ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4718](https://github.com/openlayers/openlayers/pull/4718) - Improve raster reprojection behavior when tiles fail to load ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#4734](https://github.com/openlayers/openlayers/pull/4734) - Update sinon to version 1.17.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4726](https://github.com/openlayers/openlayers/pull/4726) - Update mocha to version 2.4.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4725](https://github.com/openlayers/openlayers/pull/4725) - Untangle vector tile feature reprojection ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4735](https://github.com/openlayers/openlayers/pull/4735) - Add default value for defaultDataProjection ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4732](https://github.com/openlayers/openlayers/pull/4732) - Fix '@see' link in src/ol/deviceorientation.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4720](https://github.com/openlayers/openlayers/pull/4720) - Improve tileLoadFunction docs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4717](https://github.com/openlayers/openlayers/pull/4717) - Update phantomjs to version 2.1.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4679](https://github.com/openlayers/openlayers/pull/4679) - Add a source option for the full screen control ([@gaf-ag](https://github.com/gaf-ag))
|
|
||||||
* [#4712](https://github.com/openlayers/openlayers/pull/4712) - Add missing JSDoc tags ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4700](https://github.com/openlayers/openlayers/pull/4700) - Add 'layers' option for WMSGetFeatureInfo format ([@adube](https://github.com/adube))
|
|
||||||
* [#4705](https://github.com/openlayers/openlayers/pull/4705) - Remove remaining unnecessary ol.source.State casts ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4703](https://github.com/openlayers/openlayers/pull/4703) - Source options fixes. ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4698](https://github.com/openlayers/openlayers/pull/4698) - Add rotateWithView option to ol.style.RegularShape ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4697](https://github.com/openlayers/openlayers/pull/4697) - Bind tileUrlFunction to the source ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# v3.14.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.14.1 release is a patch release that addresses a few regressions in the v3.14.0 release. See the [v3.14.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.14.0) for details on upgrading from v3.13.x.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#4939](https://github.com/openlayers/openlayers/pull/4939) - Fix rendering of opaque layers with opacity != 1 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4921](https://github.com/openlayers/openlayers/pull/4921) - Unlisten before calling listener and bind to target by default ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# v3.14.2
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.14.2 release is a patch release that addresses a few regressions in the v3.14.1 release. See the [v3.14.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.14.0) for details on upgrading from v3.13.x.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#4963](https://github.com/openlayers/openlayers/pull/4963) - Handle more XHR errors in the TileJSON source ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4960](https://github.com/openlayers/openlayers/pull/4960) - Simplify clipping of lower resolution regions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4958](https://github.com/openlayers/openlayers/pull/4958) - Stop wheel events instead of DOMMouseScroll events ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4956](https://github.com/openlayers/openlayers/pull/4956) - Fix Examples layout page ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4809](https://github.com/openlayers/openlayers/pull/4809) - Fix multipolygon clone. ([@fperucic](https://github.com/fperucic))
|
|
||||||
@@ -1,204 +0,0 @@
|
|||||||
# v3.15.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.15.0 release includes features and fixes from 136 pull requests since the v3.14.2 release. New features and improvements include:
|
|
||||||
|
|
||||||
* Make ol.source.Cluster more flexible by adding a geometryFunction option (#4917).
|
|
||||||
* Add new CartoDB tile source (#4926).
|
|
||||||
* Improved rendering performance for vector layers by batching polygon fill and stroke instructions (#5149).
|
|
||||||
* Make the tile cache size configurable (#4805).
|
|
||||||
* Add new ol.geom.Geometry#rotate function (#4984).
|
|
||||||
* Accept simpler forms of specifying attribution(s) for sources (#5007).
|
|
||||||
* Support zooming out for ol.interaction.DragZoom (#5031).
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
### v3.15.0
|
|
||||||
|
|
||||||
#### Internet Explorer 9 support
|
|
||||||
|
|
||||||
As of this release, OpenLayers requires a `classList` polyfill for IE 9 support. See https://cdn.polyfill.io/v2/docs/features#Element_prototype_classList.
|
|
||||||
|
|
||||||
#### Immediate rendering API
|
|
||||||
|
|
||||||
Listeners for `precompose`, `render`, and `postcompose` receive an event with a `vectorContext` property with methods for immediate vector rendering. The previous geometry drawing methods have been replaced with a single `vectorContext.drawGeometry(geometry)` method. If you were using any of the following experimental methods on the vector context, replace them with `drawGeometry`:
|
|
||||||
|
|
||||||
* Removed experimental geometry drawing methods: `drawPointGeometry`, `drawLineStringGeometry`, `drawPolygonGeometry`, `drawMultiPointGeometry`, `drawMultiLineStringGeometry`, `drawMultiPolygonGeometry`, and `drawCircleGeometry` (all have been replaced with `drawGeometry`).
|
|
||||||
|
|
||||||
In addition, the previous methods for setting style parts have been replaced with a single `vectorContext.setStyle(style)` method. If you were using any of the following experimental methods on the vector context, replace them with `setStyle`:
|
|
||||||
|
|
||||||
* Removed experimental style setting methods: `setFillStrokeStyle`, `setImageStyle`, `setTextStyle` (all have been replaced with `setStyle`).
|
|
||||||
|
|
||||||
Below is an example of how the vector context might have been used in the past:
|
|
||||||
|
|
||||||
```js
|
|
||||||
// OLD WAY, NO LONGER SUPPORTED
|
|
||||||
map.on('postcompose', function(event) {
|
|
||||||
event.vectorContext.setFillStrokeStyle(style.getFill(), style.getStroke());
|
|
||||||
event.vectorContext.drawPointGeometry(geometry);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
Here is an example of how you could accomplish the same with the new methods:
|
|
||||||
```js
|
|
||||||
// NEW WAY, USE THIS INSTEAD OF THE CODE ABOVE
|
|
||||||
map.on('postcompose', function(event) {
|
|
||||||
event.vectorContext.setStyle(style);
|
|
||||||
event.vectorContext.drawGeometry(geometry);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
A final change to the immediate rendering API is that `vectorContext.drawFeature()` calls are now "immediate" as well. The drawing now occurs synchronously. This means that any `zIndex` in a style passed to `drawFeature()` will be ignored. To achieve `zIndex` ordering, order your calls to `drawFeature()` instead.
|
|
||||||
|
|
||||||
#### Removal of `ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK`
|
|
||||||
|
|
||||||
The `ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK` define has been removed. The size of the cache can now be defined on every tile based `ol.source`:
|
|
||||||
```js
|
|
||||||
new ol.layer.Tile({
|
|
||||||
source: new ol.source.OSM({
|
|
||||||
cacheSize: 128
|
|
||||||
})
|
|
||||||
})
|
|
||||||
```
|
|
||||||
The default cache size is `2048`.
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#4775](https://github.com/openlayers/openlayers/pull/4775) - Remove goog.math.modulo and goog.math.lerp ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#5152](https://github.com/openlayers/openlayers/pull/5152) - Cartodb cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4804](https://github.com/openlayers/openlayers/pull/4804) - Use Array.isArray instead of goog.isArray ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5149](https://github.com/openlayers/openlayers/pull/5149) - Batch polygon fill and stroke instructions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5159](https://github.com/openlayers/openlayers/pull/5159) - Update eslint to version 2.6.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5160](https://github.com/openlayers/openlayers/pull/5160) - Update clean-css to version 3.4.11 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5157](https://github.com/openlayers/openlayers/pull/5157) - Improve docs for measure example ([@probins](https://github.com/probins))
|
|
||||||
* [#5155](https://github.com/openlayers/openlayers/pull/5155) - Fix ol.source.Zoomify tests on firefox ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5086](https://github.com/openlayers/openlayers/pull/5086) - Get rid of goog.functions ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#5105](https://github.com/openlayers/openlayers/pull/5105) - Support minZoom in ol.source.Stamen ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4926](https://github.com/openlayers/openlayers/pull/4926) - Add CartoDB tile source. ([@aisaacs](https://github.com/aisaacs))
|
|
||||||
* [#5151](https://github.com/openlayers/openlayers/pull/5151) - Use fs-extra as fs, remove usage of graceful-fs ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5124](https://github.com/openlayers/openlayers/pull/5124) - Removed goog.dom.classlist ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#5150](https://github.com/openlayers/openlayers/pull/5150) - Use fs-extra instead of wrench ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5109](https://github.com/openlayers/openlayers/pull/5109) - Add some tests for ol.source.TileUTFGrid ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5139](https://github.com/openlayers/openlayers/pull/5139) - Update closure-util to version 1.13.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5141](https://github.com/openlayers/openlayers/pull/5141) - Reuse dragListenerKeys_ variable in ol.control.ZoomSlider ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5118](https://github.com/openlayers/openlayers/pull/5118) - Remove goog.dom.classlist usage ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5115](https://github.com/openlayers/openlayers/pull/5115) - Clarify that lineDash has no effect in IE 10 and below ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5136](https://github.com/openlayers/openlayers/pull/5136) - Update eslint to version 2.5.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5123](https://github.com/openlayers/openlayers/pull/5123) - Update coveralls to version 2.11.9 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5131](https://github.com/openlayers/openlayers/pull/5131) - Update phantomjs-prebuilt to version 2.1.7 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5122](https://github.com/openlayers/openlayers/pull/5122) - Update browser support info in intro tutorial ([@probins](https://github.com/probins))
|
|
||||||
* [#5112](https://github.com/openlayers/openlayers/pull/5112) - Add decimals option to format write ([@probins](https://github.com/probins))
|
|
||||||
* [#5120](https://github.com/openlayers/openlayers/pull/5120) - Add tileJSON option to ol.source.TileUTFGrid ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5119](https://github.com/openlayers/openlayers/pull/5119) - Add ol.source.Raster events on API docs page ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5116](https://github.com/openlayers/openlayers/pull/5116) - Improve examples pages on mobile devices a bit ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5113](https://github.com/openlayers/openlayers/pull/5113) - Memory leak in ol.control.FullScreen ([@AvatharDG](https://github.com/AvatharDG))
|
|
||||||
* [#5111](https://github.com/openlayers/openlayers/pull/5111) - Remove CSS filter in examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5108](https://github.com/openlayers/openlayers/pull/5108) - Remove unused ol.xml.getAttributeNodeNS function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5106](https://github.com/openlayers/openlayers/pull/5106) - Get rid of goog.math.Vec2 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5096](https://github.com/openlayers/openlayers/pull/5096) - Add tests for ol.source.Zoomify ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5102](https://github.com/openlayers/openlayers/pull/5102) - Fix typo in API docs ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5098](https://github.com/openlayers/openlayers/pull/5098) - Reintroduce log messages for relevant WebGL assertions ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#5094](https://github.com/openlayers/openlayers/pull/5094) - FAQ: answer question 4 ([@probins](https://github.com/probins))
|
|
||||||
* [#5092](https://github.com/openlayers/openlayers/pull/5092) - add raster.jsdoc ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5081](https://github.com/openlayers/openlayers/pull/5081) - Snap to vertices or edges ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5090](https://github.com/openlayers/openlayers/pull/5090) - Update custom-builds.md ([@probins](https://github.com/probins))
|
|
||||||
* [#5089](https://github.com/openlayers/openlayers/pull/5089) - Test for both transform coords should use roughlyEqual ([@probins](https://github.com/probins))
|
|
||||||
* [#5080](https://github.com/openlayers/openlayers/pull/5080) - Fix geojson write GeometryCollection ([@probins](https://github.com/probins))
|
|
||||||
* [#5088](https://github.com/openlayers/openlayers/pull/5088) - DEVELOPING.md: remove section on running Travis on fork ([@probins](https://github.com/probins))
|
|
||||||
* [#5087](https://github.com/openlayers/openlayers/pull/5087) - assertion to check that there's a DOM node for target element ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5069](https://github.com/openlayers/openlayers/pull/5069) - Update jquery to version 2.2.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5083](https://github.com/openlayers/openlayers/pull/5083) - Remove unnecessary lineTo calls in immediate polygon rendering ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5082](https://github.com/openlayers/openlayers/pull/5082) - Get rid of goog.log. ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#5079](https://github.com/openlayers/openlayers/pull/5079) - Correcting a typo in the upgrade notes ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5076](https://github.com/openlayers/openlayers/pull/5076) - Update phantomjs-prebuilt to version 2.1.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5077](https://github.com/openlayers/openlayers/pull/5077) - Make immediate API uniformly synchronous. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5072](https://github.com/openlayers/openlayers/pull/5072) - Add setStyle() and drawGeometry() to the immediate rendering API. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5074](https://github.com/openlayers/openlayers/pull/5074) - Do not rotate map canvas after composition ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5071](https://github.com/openlayers/openlayers/pull/5071) - correct way to determine freehand mode is enabled ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5066](https://github.com/openlayers/openlayers/pull/5066) - Add more getters to ol.source.Vector ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5064](https://github.com/openlayers/openlayers/pull/5064) - Fix inconsistency in geom docs ([@probins](https://github.com/probins))
|
|
||||||
* [#5063](https://github.com/openlayers/openlayers/pull/5063) - Remove inappropriate information from API docs ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5061](https://github.com/openlayers/openlayers/pull/5061) - Remove redundant required option ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5058](https://github.com/openlayers/openlayers/pull/5058) - Note in docs that DOM renderer can also render vectors ([@probins](https://github.com/probins))
|
|
||||||
* [#5056](https://github.com/openlayers/openlayers/pull/5056) - Note in docs that WebGL can render points ([@probins](https://github.com/probins))
|
|
||||||
* [#5055](https://github.com/openlayers/openlayers/pull/5055) - Fix cruft on kml scale output ([@probins](https://github.com/probins))
|
|
||||||
* [#5051](https://github.com/openlayers/openlayers/pull/5051) - Handle aborted tiles in ol.TileQueue ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5049](https://github.com/openlayers/openlayers/pull/5049) - Supported browsers all have getComputedStyle ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5048](https://github.com/openlayers/openlayers/pull/5048) - Add tests for ol.dom methods ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5031](https://github.com/openlayers/openlayers/pull/5031) - support zooming out for ol.interaction.DragZoom ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5036](https://github.com/openlayers/openlayers/pull/5036) - Use imgSize when provided ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5020](https://github.com/openlayers/openlayers/pull/5020) - Update gaze to version 1.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5039](https://github.com/openlayers/openlayers/pull/5039) - Update fs-extra to version 0.26.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5033](https://github.com/openlayers/openlayers/pull/5033) - Document GPX geometry output types ([@probins](https://github.com/probins))
|
|
||||||
* [#5024](https://github.com/openlayers/openlayers/pull/5024) - Resize the map canvas less aggressively ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5000](https://github.com/openlayers/openlayers/pull/5000) - Remove use of goog.math.Size and goog.style.setBorderBoxSize ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5027](https://github.com/openlayers/openlayers/pull/5027) - Clarify default value of featureProjection on geometry write ([@probins](https://github.com/probins))
|
|
||||||
* [#5019](https://github.com/openlayers/openlayers/pull/5019) - Update eslint to version 2.4.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5016](https://github.com/openlayers/openlayers/pull/5016) - Add basic tests for ol.geom.flat.center ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5015](https://github.com/openlayers/openlayers/pull/5015) - Update proj4 to version 2.3.14 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5013](https://github.com/openlayers/openlayers/pull/5013) - Fix typo in test description ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5007](https://github.com/openlayers/openlayers/pull/5007) - Accept simpler forms of specifying attribution(s) for sources. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5011](https://github.com/openlayers/openlayers/pull/5011) - Add missing setProjection function to ol.VectorTile API ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5010](https://github.com/openlayers/openlayers/pull/5010) - Add and fix API docs for ol.events.Event stack ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5009](https://github.com/openlayers/openlayers/pull/5009) - Update tutorials ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#5006](https://github.com/openlayers/openlayers/pull/5006) - Use the maintained slimerjs package ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5003](https://github.com/openlayers/openlayers/pull/5003) - Add 'function' jsdoc tag to ol.geom.Geometry#rotate ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5002](https://github.com/openlayers/openlayers/pull/5002) - Update eslint-config-openlayers to version 4.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4999](https://github.com/openlayers/openlayers/pull/4999) - Remove use of goog.dom.removeNode ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4990](https://github.com/openlayers/openlayers/pull/4990) - Add new ol.source.TileJSON#getTileJSON function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4998](https://github.com/openlayers/openlayers/pull/4998) - Remove unused ol.Map#isDef function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4995](https://github.com/openlayers/openlayers/pull/4995) - Remove unused ol.color functions. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4991](https://github.com/openlayers/openlayers/pull/4991) - Do not remove listeners while dispatching event ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4984](https://github.com/openlayers/openlayers/pull/4984) - Add new ol.geom.Geometry#rotate function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4994](https://github.com/openlayers/openlayers/pull/4994) - Add alpha default value to ol.Color array form ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4992](https://github.com/openlayers/openlayers/pull/4992) - Allow configuration of the test reporter ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4988](https://github.com/openlayers/openlayers/pull/4988) - Update phantomjs-prebuilt to version 2.1.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4983](https://github.com/openlayers/openlayers/pull/4983) - Update Bing Maps Portal url ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4981](https://github.com/openlayers/openlayers/pull/4981) - Remove the viewport on map dispose ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4980](https://github.com/openlayers/openlayers/pull/4980) - Remove unused goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4977](https://github.com/openlayers/openlayers/pull/4977) - Add basic tests for ol.geom.flat.length methods ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4973](https://github.com/openlayers/openlayers/pull/4973) - Update eslint to version 2.3.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4971](https://github.com/openlayers/openlayers/pull/4971) - Release v3.14.2 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4970](https://github.com/openlayers/openlayers/pull/4970) - Tests for ol.Disposable. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4967](https://github.com/openlayers/openlayers/pull/4967) - Add missing goog.inherits for ol.render.canvas.Immediate ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4955](https://github.com/openlayers/openlayers/pull/4955) - Remove IE workarounds in src/ol/xml.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4960](https://github.com/openlayers/openlayers/pull/4960) - Simplify clipping of lower resolution regions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4950](https://github.com/openlayers/openlayers/pull/4950) - Remove use of goog.Disposable(). ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4963](https://github.com/openlayers/openlayers/pull/4963) - Handle more XHR errors in the TileJSON source ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4962](https://github.com/openlayers/openlayers/pull/4962) - Skip tests where features are not available ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4956](https://github.com/openlayers/openlayers/pull/4956) - Fix Examples layout page ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#4958](https://github.com/openlayers/openlayers/pull/4958) - Stop wheel events instead of DOMMouseScroll events ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4947](https://github.com/openlayers/openlayers/pull/4947) - IE support for ol.source.Raster. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4944](https://github.com/openlayers/openlayers/pull/4944) - Update resemblejs to version 2.2.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4942](https://github.com/openlayers/openlayers/pull/4942) - Remove unused files in examples/data/ ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4805](https://github.com/openlayers/openlayers/pull/4805) - Add new cacheSize option to ol.source ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4940](https://github.com/openlayers/openlayers/pull/4940) - Release v3.14.1 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4939](https://github.com/openlayers/openlayers/pull/4939) - Fix rendering of opaque layers with opacity != 1 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4938](https://github.com/openlayers/openlayers/pull/4938) - Get rid of goog.dom.getFirstElementChild ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4937](https://github.com/openlayers/openlayers/pull/4937) - Get rid of goog.json ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4936](https://github.com/openlayers/openlayers/pull/4936) - Remove jquery from getfeatureinfo-layers example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4930](https://github.com/openlayers/openlayers/pull/4930) - Use ADVANCED instead of ADVANCED_OPTIMIZATIONS ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4917](https://github.com/openlayers/openlayers/pull/4917) - Make ol.source.Cluster more flexible by adding a geometryFunction option ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4918](https://github.com/openlayers/openlayers/pull/4918) - Don't change the canvas size to clear it ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4923](https://github.com/openlayers/openlayers/pull/4923) - Update custom-builds.md ([@xlhomme](https://github.com/xlhomme))
|
|
||||||
* [#4929](https://github.com/openlayers/openlayers/pull/4929) - Update clean-css to version 3.4.10 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4928](https://github.com/openlayers/openlayers/pull/4928) - Upgrade to JSTS 1.0.2 in example ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#4927](https://github.com/openlayers/openlayers/pull/4927) - Upgrade JSTS in example. ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#4809](https://github.com/openlayers/openlayers/pull/4809) - Fix multipolygon clone. ([@fperucic](https://github.com/fperucic))
|
|
||||||
* [#4924](https://github.com/openlayers/openlayers/pull/4924) - Update coveralls to version 2.11.8 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4921](https://github.com/openlayers/openlayers/pull/4921) - Unlisten before calling listener and bind to target by default ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4868](https://github.com/openlayers/openlayers/pull/4868) - Allow to refresh a source and reload its data. ([@sebasbaumh](https://github.com/sebasbaumh))
|
|
||||||
* [#4903](https://github.com/openlayers/openlayers/pull/4903) - Remove use of goog.style.getRelativePosition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4902](https://github.com/openlayers/openlayers/pull/4902) - Remove use of goog.style.getClientPosition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4916](https://github.com/openlayers/openlayers/pull/4916) - Fix ol.format.GeoJSON#writeFeatureObject return type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4909](https://github.com/openlayers/openlayers/pull/4909) - Add ol.renderer.dom.VectorLayer#clearFrame ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4915](https://github.com/openlayers/openlayers/pull/4915) - Use {} instead of Object ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4914](https://github.com/openlayers/openlayers/pull/4914) - Export ol.proj.equivalent ([@sebasbaumh](https://github.com/sebasbaumh))
|
|
||||||
* [#4908](https://github.com/openlayers/openlayers/pull/4908) - Remove use of goog.math.Rect ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4900](https://github.com/openlayers/openlayers/pull/4900) - Make ol.format.XML a @struct ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4880](https://github.com/openlayers/openlayers/pull/4880) - Update closure-util to version 1.11.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4905](https://github.com/openlayers/openlayers/pull/4905) - Remove use of goog.style.setPosition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4879](https://github.com/openlayers/openlayers/pull/4879) - Update metalsmith-layouts to version 1.6.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4901](https://github.com/openlayers/openlayers/pull/4901) - Release v3.14.0 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4899](https://github.com/openlayers/openlayers/pull/4899) - Use ol.format.GMLBase#srsName instead of undeclared srsName_ ([@fredj](https://github.com/fredj))
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# v3.15.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.15.1 release is a patch release that addresses a regression in the v3.15.0 release. See the [v3.15.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.15.0) for details on upgrading from v3.14.x.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#5190](https://github.com/openlayers/openlayers/pull/5190) - Revert "Batch polygon fill and stroke instructions" ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
# v3.16.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.16.0 release includes features and fixes from 95 pull requests since the v3.15.1 release. New features and improvements include:
|
|
||||||
|
|
||||||
* Add `ol.source.ImageArcGISRest` for ArcGIS REST image layer support (#3880)
|
|
||||||
* New `finishCondition` option for `ol.interaction.Draw` to control which action should finish a geometry when drawing (#5261)
|
|
||||||
* New filter API for `ol.format.WFS#writeGetFeature` for WFS queries with OGC filters (#5252)
|
|
||||||
* New `renderMode` option for `ol.layer.VectorTile` to balance between rendering performance and rendering quality (#5177)
|
|
||||||
* More flexibility for configuring attribution logos by allowing HTML elements (#5274)
|
|
||||||
* UTFGrid updates, now supporting Mapbox API v4 (#5329)
|
|
||||||
* New `condition` option for `ol.interaction.Modify` for better reliability when combining with other interactions (#5320)
|
|
||||||
|
|
||||||
In addition to these new features, the code base has been simplified and refactored in the process of removing the dependency on Closure Library and Compiler.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### Rendering change for tile sources
|
|
||||||
|
|
||||||
Previously, if you called `source.setUrl()` on a tile source, all currently rendered tiles would be cleared before new tiles were loaded and rendered. This clearing of the map is undesirable if you are trying to smoothly update the tiles used by a source. This behavior has now changed, and calling `source.setUrl()` (or `source.setUrls()`) will *not* clear currently rendered tiles before loading and rendering new tiles. Instead, previously rendered tiles remain rendered until new tiles have loaded and can replace them. If you want to achieve the old behavior (render a blank map before loading new tiles), you can call `source.refresh()` or you can replace the old source with a new one (using `layer.setSource()`).
|
|
||||||
|
|
||||||
#### Move of typedefs out of code and into separate file
|
|
||||||
|
|
||||||
This change should not affect the great majority of application developers, but it's possible there are edge cases when compiling application code together with the library which cause compiler errors or warnings. In this case, please raise a GitHub issue. `goog.require`s for typedefs should not be necessary.
|
|
||||||
Users compiling their code with the library should note that the following API `@typedef`s have been renamed; your code may need changing if you use these:
|
|
||||||
* `ol.format.WFS.FeatureCollectionMetadata` to `ol.WFSFeatureCollectionMetadata`
|
|
||||||
* `ol.format.WFS.TransactionResponse` to `ol.WFSTransactionResponse`
|
|
||||||
|
|
||||||
#### Removal of `opaque` option for `ol.source.VectorTile`
|
|
||||||
|
|
||||||
This option is no longer needed, so it was removed from the API.
|
|
||||||
|
|
||||||
#### XHR loading for `ol.source.TileUTFGrid`
|
|
||||||
|
|
||||||
The `ol.source.TileUTFGrid` now uses XMLHttpRequest to load UTFGrid tiles by default. This works out of the box with the v4 Mapbox API. To work with the v3 API, you must use the new `jsonp` option on the source. See the examples below for detail.
|
|
||||||
|
|
||||||
```js
|
|
||||||
// To work with the v4 API
|
|
||||||
var v4source = new ol.source.TileUTFGrid({
|
|
||||||
url: 'https://api.tiles.mapbox.com/v4/example.json?access_token=' + YOUR_KEY_HERE
|
|
||||||
});
|
|
||||||
|
|
||||||
// To work with the v3 API
|
|
||||||
var v3source = new ol.source.TileUTFGrid({
|
|
||||||
jsonp: true, // <--- this is required for v3
|
|
||||||
url: 'http://api.tiles.mapbox.com/v3/example.json'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#5377](https://github.com/openlayers/openlayers/pull/5377) - Fix link to jspdf.min.js in export-pdf example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5372](https://github.com/openlayers/openlayers/pull/5372) - Update jquery to version 2.2.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5364](https://github.com/openlayers/openlayers/pull/5364) - Make it so things don't flash so much when you change the tile source URL. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5368](https://github.com/openlayers/openlayers/pull/5368) - Move WFS typedefs to typedefs.js ([@probins](https://github.com/probins))
|
|
||||||
* [#5369](https://github.com/openlayers/openlayers/pull/5369) - format/igc: Remove duplicate regex exec() call ([@Turbo87](https://github.com/Turbo87))
|
|
||||||
* [#5363](https://github.com/openlayers/openlayers/pull/5363) - Convert all typedefs to CamelCase ([@probins](https://github.com/probins))
|
|
||||||
* [#5362](https://github.com/openlayers/openlayers/pull/5362) - Update vector-tile to version 1.2.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5352](https://github.com/openlayers/openlayers/pull/5352) - Add getResolutions() to ol.View ([@marlowp](https://github.com/marlowp))
|
|
||||||
* [#5359](https://github.com/openlayers/openlayers/pull/5359) - Move upgrade notes to correct place ([@probins](https://github.com/probins))
|
|
||||||
* [#5343](https://github.com/openlayers/openlayers/pull/5343) - Rename non-api sub-namespace typedefs ([@probins](https://github.com/probins))
|
|
||||||
* [#5361](https://github.com/openlayers/openlayers/pull/5361) - Fix url to maki icons ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5358](https://github.com/openlayers/openlayers/pull/5358) - Handle multiple featureMember elements for different types (WFS format) ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5355](https://github.com/openlayers/openlayers/pull/5355) - Fix navigation-controls example description ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5353](https://github.com/openlayers/openlayers/pull/5353) - Add API definition to docs landing page ([@probins](https://github.com/probins))
|
|
||||||
* [#5356](https://github.com/openlayers/openlayers/pull/5356) - Update rbush to version 1.4.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5354](https://github.com/openlayers/openlayers/pull/5354) - Update eslint to version 2.10.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5347](https://github.com/openlayers/openlayers/pull/5347) - Update eslint to version 2.10.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5344](https://github.com/openlayers/openlayers/pull/5344) - Remove raster enum from test ([@probins](https://github.com/probins))
|
|
||||||
* [#5329](https://github.com/openlayers/openlayers/pull/5329) - UTFGrid updates. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5335](https://github.com/openlayers/openlayers/pull/5335) - Move typedefs to separate file ([@probins](https://github.com/probins))
|
|
||||||
* [#5332](https://github.com/openlayers/openlayers/pull/5332) - Warn when viewing an outdated example, and offer a redirect to latest ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5342](https://github.com/openlayers/openlayers/pull/5342) - Fix incorrect source links ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5339](https://github.com/openlayers/openlayers/pull/5339) - Use a div instead of alert for version warning ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5320](https://github.com/openlayers/openlayers/pull/5320) - Add a 'condition' option to ol.interaction.Modify ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5333](https://github.com/openlayers/openlayers/pull/5333) - Improve code readability with better comments ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5330](https://github.com/openlayers/openlayers/pull/5330) - Fix source links, display version and warn about outdated docs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5324](https://github.com/openlayers/openlayers/pull/5324) - Remove unneeded goog.provides/requires for typedefs ([@probins](https://github.com/probins))
|
|
||||||
* [#5328](https://github.com/openlayers/openlayers/pull/5328) - Use Node 6 on Travis. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5313](https://github.com/openlayers/openlayers/pull/5313) - Rastersource framestate extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5326](https://github.com/openlayers/openlayers/pull/5326) - Fix wording in tile-load-event example ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5327](https://github.com/openlayers/openlayers/pull/5327) - Update closure-util to version 1.13.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5289](https://github.com/openlayers/openlayers/pull/5289) - Update fs-extra to version 0.30.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5319](https://github.com/openlayers/openlayers/pull/5319) - Remove outdated fixme from framestate.js. ([@probins](https://github.com/probins))
|
|
||||||
* [#5274](https://github.com/openlayers/openlayers/pull/5274) - Allow using elements in logo attribution options ([@samuellapointe](https://github.com/samuellapointe))
|
|
||||||
* [#5162](https://github.com/openlayers/openlayers/pull/5162) - Improve docs/examples for loadingstrategy ([@probins](https://github.com/probins))
|
|
||||||
* [#5314](https://github.com/openlayers/openlayers/pull/5314) - Update browserify to version 13.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5315](https://github.com/openlayers/openlayers/pull/5315) - Remove unused ol.TileCoordTransformType ([@probins](https://github.com/probins))
|
|
||||||
* [#5310](https://github.com/openlayers/openlayers/pull/5310) - Get raster sources working again. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5291](https://github.com/openlayers/openlayers/pull/5291) - Allow once listeners to dispatch events of same type ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5309](https://github.com/openlayers/openlayers/pull/5309) - Update metalsmith-layouts to version 1.6.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5052](https://github.com/openlayers/openlayers/pull/5052) - Update fs-extra to version 0.26.7 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5306](https://github.com/openlayers/openlayers/pull/5306) - Make olx.view.FitOptions.padding optional ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#5302](https://github.com/openlayers/openlayers/pull/5302) - Remove use of goog.partial ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5304](https://github.com/openlayers/openlayers/pull/5304) - Update sinon to version 1.17.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4644](https://github.com/openlayers/openlayers/pull/4644) - Remove check-requires script ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5298](https://github.com/openlayers/openlayers/pull/5298) - Update eslint to version 2.9.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5296](https://github.com/openlayers/openlayers/pull/5296) - Document handling of KML MultiGeometries ([@probins](https://github.com/probins))
|
|
||||||
* [#5293](https://github.com/openlayers/openlayers/pull/5293) - Block removePoint while dragging ([@giohappy](https://github.com/giohappy))
|
|
||||||
* [#5285](https://github.com/openlayers/openlayers/pull/5285) - Add more tests for the scaleline control ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5287](https://github.com/openlayers/openlayers/pull/5287) - Add and fix vectortile tests ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5288](https://github.com/openlayers/openlayers/pull/5288) - Expose removeVertex_ as removePoint ([@giohappy](https://github.com/giohappy))
|
|
||||||
* [#5286](https://github.com/openlayers/openlayers/pull/5286) - Skip unnecessary render functions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5177](https://github.com/openlayers/openlayers/pull/5177) - Add render options for vector tile layers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5278](https://github.com/openlayers/openlayers/pull/5278) - Fix invalid generics type instantiation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5044](https://github.com/openlayers/openlayers/pull/5044) - Snap interaction now handle feature without geometry properly ([@fblackburn](https://github.com/fblackburn))
|
|
||||||
* [#5277](https://github.com/openlayers/openlayers/pull/5277) - Type cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5275](https://github.com/openlayers/openlayers/pull/5275) - Fix feature-layer association on replaced selections ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5252](https://github.com/openlayers/openlayers/pull/5252) - Add filter option to ol.format.WFS#writeGetFeature ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5264](https://github.com/openlayers/openlayers/pull/5264) - Fix for close draw polygon error ([@matjos](https://github.com/matjos))
|
|
||||||
* [#5267](https://github.com/openlayers/openlayers/pull/5267) - Use ol.functions instead of goog.functions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5266](https://github.com/openlayers/openlayers/pull/5266) - Document ol.colorlike ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5261](https://github.com/openlayers/openlayers/pull/5261) - add finishCondition to ol.interaction.Draw ([@giohappy](https://github.com/giohappy))
|
|
||||||
* [#5259](https://github.com/openlayers/openlayers/pull/5259) - Include squash commit merges in changelog ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5257](https://github.com/openlayers/openlayers/pull/5257) - Add readFeatures and readProjection as MVT experimental API ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3880](https://github.com/openlayers/openlayers/pull/3880) - Add ol.source.ImageArcGISRest ([Anna Lambrechtsen](https://github.com/search?q=Anna Lambrechtsen&type=Users))
|
|
||||||
* [#5239](https://github.com/openlayers/openlayers/pull/5239) - Update eslint to version 2.8.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5230](https://github.com/openlayers/openlayers/pull/5230) - Reuse frame state arrays ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5213](https://github.com/openlayers/openlayers/pull/5213) - Remove unused ol.source.Source#setProjection function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5223](https://github.com/openlayers/openlayers/pull/5223) - Create tmpSize_ before calling calculateTileRanges_ ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5225](https://github.com/openlayers/openlayers/pull/5225) - Remove unused ol.extent.transform2D function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5212](https://github.com/openlayers/openlayers/pull/5212) - KML: fix GeometryCollection write ([@probins](https://github.com/probins))
|
|
||||||
* [#5228](https://github.com/openlayers/openlayers/pull/5228) - Add 'layers' option to Translate interaction ([@adube](https://github.com/adube))
|
|
||||||
* [#5221](https://github.com/openlayers/openlayers/pull/5221) - Update jquery, bootstrap and proj4js in examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5227](https://github.com/openlayers/openlayers/pull/5227) - Add a temporary ol.TileCoord in ol.renderer.canvas.TileLayer ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5222](https://github.com/openlayers/openlayers/pull/5222) - Remove unused private variables in ol.renderer.canvas.Map ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5220](https://github.com/openlayers/openlayers/pull/5220) - Externs cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5224](https://github.com/openlayers/openlayers/pull/5224) - Fix jsdoc tags indentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5218](https://github.com/openlayers/openlayers/pull/5218) - Add @api annotation to setConfig. ([@aisaacs](https://github.com/aisaacs))
|
|
||||||
* [#5215](https://github.com/openlayers/openlayers/pull/5215) - Add an optional feature filter to getClosestFeatureToCoordinate ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5132](https://github.com/openlayers/openlayers/pull/5132) - Remove goog.string ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#5206](https://github.com/openlayers/openlayers/pull/5206) - Minor correction of StyleFunction docs ([@probins](https://github.com/probins))
|
|
||||||
* [#4932](https://github.com/openlayers/openlayers/pull/4932) - Remove undefined parameters to ol.format.WMSGetFeatureInfo#readFeatures_ ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5207](https://github.com/openlayers/openlayers/pull/5207) - Update clean-css to version 3.4.12 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5201](https://github.com/openlayers/openlayers/pull/5201) - Small clarification for vector source loader docs ([@probins](https://github.com/probins))
|
|
||||||
* [#5200](https://github.com/openlayers/openlayers/pull/5200) - Fix typo in rotate control for css classList ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5178](https://github.com/openlayers/openlayers/pull/5178) - Remove goog.global ([Nicholas Latham](https://github.com/search?q=Nicholas Latham&type=Users))
|
|
||||||
* [#5189](https://github.com/openlayers/openlayers/pull/5189) - Add rendering tests to ensure correct circle and polygon rendering ([Andreas Hocevar](https://github.com/search?q=Andreas Hocevar&type=Users))
|
|
||||||
* [#5183](https://github.com/openlayers/openlayers/pull/5183) - Update istanbul to version 0.4.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5187](https://github.com/openlayers/openlayers/pull/5187) - Remove goog.functions.and from ol.interaction.Modify ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5176](https://github.com/openlayers/openlayers/pull/5176) - Update jquery to version 2.2.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5173](https://github.com/openlayers/openlayers/pull/5173) - Use ol.dom.createCanvasContext2D ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5171](https://github.com/openlayers/openlayers/pull/5171) - Move olx.source.AttributionOption out of externs/olx.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5170](https://github.com/openlayers/openlayers/pull/5170) - Update eslint to version 2.7.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5167](https://github.com/openlayers/openlayers/pull/5167) - Remove FastClick from mobile-full-screen example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5166](https://github.com/openlayers/openlayers/pull/5166) - Remove jquery dependency from measure example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5164](https://github.com/openlayers/openlayers/pull/5164) - Cartodb cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
# v3.17.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.17.0 release includes features and fixes from 60 pull requests since the v3.16.0 release. Most of the changes are bug fixes and continuing removal of the dependency on Closure Library.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.source.MapQuest` removal
|
|
||||||
|
|
||||||
Because of changes at MapQuest (see: https://lists.openstreetmap.org/pipermail/talk/2016-June/076106.html) we had to remove the MapQuest source for now (see https://github.com/openlayers/openlayers/issues/5484 for details).
|
|
||||||
|
|
||||||
#### `ol.interaction.ModifyEvent` changes
|
|
||||||
|
|
||||||
The event object previously had a `mapBrowserPointerEvent` property, which has been renamed to `mapBrowserEvent`.
|
|
||||||
|
|
||||||
#### Removal of ol.raster namespace
|
|
||||||
|
|
||||||
Users compiling their code with the library and using types in the `ol.raster` namespace should note that this has now been removed. `ol.raster.Pixel` has been deleted, and the other types have been renamed as follows, and your code may need changing if you use these:
|
|
||||||
* `ol.raster.Operation` to `ol.RasterOperation`
|
|
||||||
* `ol.raster.OperationType` to `ol.RasterOperationType`
|
|
||||||
|
|
||||||
#### All typedefs now in ol namespace
|
|
||||||
|
|
||||||
Users compiling their code with the library should note that the following typedefs have been renamed; your code may need changing if you use these:
|
|
||||||
* ol.events.ConditionType to ol.EventsConditionType
|
|
||||||
* ol.events.EventTargetLike to ol.EventTargetLike
|
|
||||||
* ol.events.Key to ol.EventsKey
|
|
||||||
* ol.events.ListenerFunctionType to ol.EventsListenerFunctionType
|
|
||||||
* ol.interaction.DragBoxEndConditionType to ol.DragBoxEndConditionType
|
|
||||||
* ol.interaction.DrawGeometryFunctionType to ol.DrawGeometryFunctionType
|
|
||||||
* ol.interaction.SegmentDataType to ol.ModifySegmentDataType
|
|
||||||
* ol.interaction.SelectFilterFunction to ol.SelectFilterFunction
|
|
||||||
* ol.interaction.SnapResultType to ol.SnapResultType
|
|
||||||
* ol.interaction.SnapSegmentDataType to ol.SnapSegmentDataType
|
|
||||||
* ol.proj.ProjectionLike to ol.ProjectionLike
|
|
||||||
* ol.style.AtlasBlock to ol.AtlasBlock
|
|
||||||
* ol.style.AtlasInfo to ol.AtlasInfo
|
|
||||||
* ol.style.AtlasManagerInfo to ol.AtlasManagerInfo
|
|
||||||
* ol.style.CircleRenderOptions to ol.CircleRenderOptions
|
|
||||||
* ol.style.ImageOptions to ol.StyleImageOptions
|
|
||||||
* ol.style.GeometryFunction to ol.StyleGeometryFunction
|
|
||||||
* ol.style.RegularShapeRenderOptions to ol.RegularShapeRenderOptions
|
|
||||||
* ol.style.StyleFunction to ol.StyleFunction
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#5539](https://github.com/openlayers/openlayers/pull/5539) - Remove outdated comments re goog.dom ([@probins](https://github.com/probins))
|
|
||||||
* [#5543](https://github.com/openlayers/openlayers/pull/5543) - Update rbush to 2.0.1 ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5540](https://github.com/openlayers/openlayers/pull/5540) - Remove MapQuest source ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5538](https://github.com/openlayers/openlayers/pull/5538) - Replace remaining goog.inherits ([@probins](https://github.com/probins))
|
|
||||||
* [#5536](https://github.com/openlayers/openlayers/pull/5536) - Update to layer-extent example ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5482](https://github.com/openlayers/openlayers/pull/5482) - Fix for regression in tile layer extent ([@ischneider](https://github.com/ischneider))
|
|
||||||
* [#5475](https://github.com/openlayers/openlayers/pull/5475) - Remove goog.provide from enums only used internally or in olx.js ([@probins](https://github.com/probins))
|
|
||||||
* [#5424](https://github.com/openlayers/openlayers/pull/5424) - Don't dispatch select event if no feature is selected or deselected ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5522](https://github.com/openlayers/openlayers/pull/5522) - Add 'condition' option to ol.interaction.DragPanOptions in olx.js ([@SamuelBerger](https://github.com/SamuelBerger))
|
|
||||||
* [#5443](https://github.com/openlayers/openlayers/pull/5443) - Remove olx.source.WMTSOptions#maxZoom option ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5497](https://github.com/openlayers/openlayers/pull/5497) - Update istanbul to version 0.4.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5523](https://github.com/openlayers/openlayers/pull/5523) - Update closure-util to version 1.15.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5508](https://github.com/openlayers/openlayers/pull/5508) - Fix problems with ol.format.WFS in compiled mode ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5512](https://github.com/openlayers/openlayers/pull/5512) - Use forEachTileCoord name instead of forEachTileCoordInExtentAndZ ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5513](https://github.com/openlayers/openlayers/pull/5513) - Add getters for min and max resolution of the view ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5471](https://github.com/openlayers/openlayers/pull/5471) - Fix GPX write of xsi ns ([@probins](https://github.com/probins))
|
|
||||||
* [#5134](https://github.com/openlayers/openlayers/pull/5134) - Remove goog.dom ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#5511](https://github.com/openlayers/openlayers/pull/5511) - Do not optimize lines away entirely ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5509](https://github.com/openlayers/openlayers/pull/5509) - Make it easier to work with tile ranges in custom source implementations ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5498](https://github.com/openlayers/openlayers/pull/5498) - Update eslint to version 2.13.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5495](https://github.com/openlayers/openlayers/pull/5495) - Get rid of goog.isFunction ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5499](https://github.com/openlayers/openlayers/pull/5499) - Update glob to version 7.0.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5125](https://github.com/openlayers/openlayers/pull/5125) - Remove goog style ([@nicholas-l](https://github.com/nicholas-l))
|
|
||||||
* [#5494](https://github.com/openlayers/openlayers/pull/5494) - Remove goog.global ([@probins](https://github.com/probins))
|
|
||||||
* [#5492](https://github.com/openlayers/openlayers/pull/5492) - Update eslint to version 2.13.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5490](https://github.com/openlayers/openlayers/pull/5490) - Update glob to version 7.0.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5460](https://github.com/openlayers/openlayers/pull/5460) - Update eslint to version 2.12.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5479](https://github.com/openlayers/openlayers/pull/5479) - Update slimerjs to version 0.906.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5474](https://github.com/openlayers/openlayers/pull/5474) - Update clean-css to version 3.4.18 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5450](https://github.com/openlayers/openlayers/pull/5450) - Remove sub-namespaces from all remaining typedefs ([@probins](https://github.com/probins))
|
|
||||||
* [#5465](https://github.com/openlayers/openlayers/pull/5465) - Fix custom icon positions and rotation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5469](https://github.com/openlayers/openlayers/pull/5469) - Fix typo ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#5453](https://github.com/openlayers/openlayers/pull/5453) - Reference ol.MapBrowserEvent instead of ol.MapBrowserPointerEvent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5208](https://github.com/openlayers/openlayers/pull/5208) - Stop GPX writing rtept properties ([@probins](https://github.com/probins))
|
|
||||||
* [#5452](https://github.com/openlayers/openlayers/pull/5452) - Update eslint-config-openlayers to version 5.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5432](https://github.com/openlayers/openlayers/pull/5432) - Remove use of goog.uri ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#5449](https://github.com/openlayers/openlayers/pull/5449) - Make example data/ paths absolute for source view and JSFiddle ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5399](https://github.com/openlayers/openlayers/pull/5399) - Remove ol.raster namespace ([@probins](https://github.com/probins))
|
|
||||||
* [#5270](https://github.com/openlayers/openlayers/pull/5270) - Load erroneous image in ol.Image#load and ol.ImageTile#load ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5194](https://github.com/openlayers/openlayers/pull/5194) - Get rid of goog.inherits and goog.base ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5427](https://github.com/openlayers/openlayers/pull/5427) - Document typedefs and enums used by API symbols ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5438](https://github.com/openlayers/openlayers/pull/5438) - Don't make ol.format.ogc.filter.Filter inherit from ol.Object ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5433](https://github.com/openlayers/openlayers/pull/5433) - Update clean-css to version 3.4.17 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5434](https://github.com/openlayers/openlayers/pull/5434) - Fix externs in closure compiler tutorial ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5426](https://github.com/openlayers/openlayers/pull/5426) - Fix icon example to anchor popup to feature location ([@frankrowe](https://github.com/frankrowe))
|
|
||||||
* [#5421](https://github.com/openlayers/openlayers/pull/5421) - Correct typo in config/jsdoc/api/readme.md ([@probins](https://github.com/probins))
|
|
||||||
* [#5417](https://github.com/openlayers/openlayers/pull/5417) - Update clean-css to version 3.4.16 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5413](https://github.com/openlayers/openlayers/pull/5413) - Update clean-css to version 3.4.15 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5410](https://github.com/openlayers/openlayers/pull/5410) - Update eslint to version 2.11.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5408](https://github.com/openlayers/openlayers/pull/5408) - Update pbf to version 2.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5404](https://github.com/openlayers/openlayers/pull/5404) - Update eslint to version 2.11.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5402](https://github.com/openlayers/openlayers/pull/5402) - Pass in srsName option to writeTransaction ([@anzhihun](https://github.com/anzhihun))
|
|
||||||
* [#5393](https://github.com/openlayers/openlayers/pull/5393) - Update mocha to version 2.5.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5394](https://github.com/openlayers/openlayers/pull/5394) - Update resemblejs to version 2.2.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5390](https://github.com/openlayers/openlayers/pull/5390) - Fix the requestEncoding automatic selection ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5392](https://github.com/openlayers/openlayers/pull/5392) - Update closure-util to version 1.14.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5388](https://github.com/openlayers/openlayers/pull/5388) - Update mocha to version 2.5.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5382](https://github.com/openlayers/openlayers/pull/5382) - Handle UTC midnight wrap around, fixes #5371 ([@twpayne](https://github.com/twpayne))
|
|
||||||
* [#5381](https://github.com/openlayers/openlayers/pull/5381) - Update mocha to version 2.5.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5383](https://github.com/openlayers/openlayers/pull/5383) - Update clean-css to version 3.4.13 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# v3.17.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.17.1 release is a patch release that addresses a regression in the v3.17.0 release. See the [v3.17.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.17.0) for details on upgrading from v3.16.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#5548](https://github.com/openlayers/openlayers/pull/5548) - Fix CHANGETYPE in ol.control.FullScreen ([@GaborFarkas](https://github.com/GaborFarkas))
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
# v3.18.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.18.0 release includes features and fixes from almost 120 pull requests since the v3.17.1 release. Most of the changes are bug fixes and continuing removal of the dependency on Closure Library. New features include:
|
|
||||||
|
|
||||||
* Addition of `Intersects` and `Within` filters to `ol.format.ogc.filter` [#5668](https://github.com/openlayers/openlayers/pull/5668)
|
|
||||||
* New `overlaps` option for `ol.source.Vector` and `ol.source.VectorTile` to improve rendering performance for polygon topologies [#5196](https://github.com/openlayers/openlayers/pull/5196)
|
|
||||||
* New `rotateWithView` option for `ol.style.Text` to control appearance of text on rotated views [#5050](https://github.com/openlayers/openlayers/pull/5050)
|
|
||||||
* Add a `#scale()` method to `ol.geom.Geometry` and subclasses [#5685](https://github.com/openlayers/openlayers/pull/5685)
|
|
||||||
* Parse `id` of features in `ol.format.MVT` [#5613](https://github.com/openlayers/openlayers/pull/5613)
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### Changes in the way assertions are handled
|
|
||||||
|
|
||||||
Previously, minified builds of the library did not have any assertions. This caused applications to fail silently or with cryptic stack traces. Starting with this release, developers get notified of many runtime errors through the new `ol.AssertionError`. This error has a `code` property. The meaning of the code can be found on https://openlayers.org/en/latest/doc/errors/. There are additional console assertion checks in debug mode when the `goog.DEBUG` compiler flag is `true`. As this is `true` by default, it is recommended that those creating custom builds set this to `false` so these assertions are stripped.'
|
|
||||||
|
|
||||||
#### Removal of `ol.ENABLE_NAMED_COLORS`
|
|
||||||
|
|
||||||
This option was previously needed to use named colors with the WebGL renderer but is no longer needed.
|
|
||||||
|
|
||||||
#### KML format now uses URL()
|
|
||||||
|
|
||||||
The URL constructor is supported by all modern browsers, but not by older ones, such as IE. To use the KML format in such older browsers, a URL polyfill will have to be loaded before use.
|
|
||||||
|
|
||||||
#### Changes only relevant to those who compile their applications together with the Closure Compiler
|
|
||||||
|
|
||||||
A number of internal types have been renamed. This will not affect those who use the API provided by the library, but if you are compiling your application together with OpenLayers and using type names, you'll need to do the following:
|
|
||||||
|
|
||||||
* rename `ol.CollectionEventType` to `ol.Collection.EventType`
|
|
||||||
* rename `ol.CollectionEvent` to `ol.Collection.Event`
|
|
||||||
* rename `ol.ViewHint` to `ol.View.Hint`
|
|
||||||
* rename `ol.ViewProperty` to `ol.View.Property`
|
|
||||||
* rename `ol.render.webgl.imagereplay.shader.Default.Locations` to `ol.render.webgl.imagereplay.defaultshader.Locations`
|
|
||||||
* rename `ol.render.webgl.imagereplay.shader.DefaultFragment` to `ol.render.webgl.imagereplay.defaultshader.Fragment`
|
|
||||||
* rename `ol.render.webgl.imagereplay.shader.DefaultVertex` to `ol.render.webgl.imagereplay.defaultshader.Vertex`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.Default.Locations` to `ol.renderer.webgl.defaultmapshader.Locations`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.Default.Locations` to `ol.renderer.webgl.defaultmapshader.Locations`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.DefaultFragment` to `ol.renderer.webgl.defaultmapshader.Fragment`
|
|
||||||
* rename `ol.renderer.webgl.map.shader.DefaultVertex` to `ol.renderer.webgl.defaultmapshader.Vertex`
|
|
||||||
* rename `ol.renderer.webgl.tilelayer.shader.Fragment` to `ol.renderer.webgl.tilelayershader.Fragment`
|
|
||||||
* rename `ol.renderer.webgl.tilelayer.shader.Locations` to `ol.renderer.webgl.tilelayershader.Locations`
|
|
||||||
* rename `ol.renderer.webgl.tilelayer.shader.Vertex` to `ol.renderer.webgl.tilelayershader.Vertex`
|
|
||||||
* rename `ol.webgl.WebGLContextEventType` to `ol.webgl.ContextEventType`
|
|
||||||
* rename `ol.webgl.shader.Fragment` to `ol.webgl.Fragment`
|
|
||||||
* rename `ol.webgl.shader.Vertex` to `ol.webgl.Vertex`
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#5782](https://github.com/openlayers/openlayers/pull/5782) - Compare URLs in an IE compatible way ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5778](https://github.com/openlayers/openlayers/pull/5778) - Use Mapzen instead of openstreetmap.us tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5774](https://github.com/openlayers/openlayers/pull/5774) - Update glob to version 7.0.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5708](https://github.com/openlayers/openlayers/pull/5708) - Remove unnecessary closePath() instructions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5196](https://github.com/openlayers/openlayers/pull/5196) - Batch polygon and circle fills and strokes ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5768](https://github.com/openlayers/openlayers/pull/5768) - Enable extent clipping for vector layers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4753](https://github.com/openlayers/openlayers/pull/4753) - Export ol.geom.Geometry#containsCoordinate function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5050](https://github.com/openlayers/openlayers/pull/5050) - Add rotateWithView option to ol.style.Text ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5767](https://github.com/openlayers/openlayers/pull/5767) - Accept feature without geometry in ol.interaction.Modify ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5334](https://github.com/openlayers/openlayers/pull/5334) - Load the examples resources with HTTPS ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5766](https://github.com/openlayers/openlayers/pull/5766) - Use HTTPS to access tiles at tileserver.maptiler.com in examples ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#5765](https://github.com/openlayers/openlayers/pull/5765) - Force a map render when the view is not updated ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5724](https://github.com/openlayers/openlayers/pull/5724) - Fix clipping of the tile layer extent on HiDPI devices ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5764](https://github.com/openlayers/openlayers/pull/5764) - Remove unnecessary map.render() calls ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5763](https://github.com/openlayers/openlayers/pull/5763) - Fix assert namespace ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5616](https://github.com/openlayers/openlayers/pull/5616) - Fix event type and documentation of ol.events.condition.mouseOnly ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5755](https://github.com/openlayers/openlayers/pull/5755) - Increase the size of the map in ol.layer.Tile rendering tests ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5757](https://github.com/openlayers/openlayers/pull/5757) - Add ol.source.Cluster#setDistance function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5752](https://github.com/openlayers/openlayers/pull/5752) - Set proper replay canvas size and offset for rotated view ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5754](https://github.com/openlayers/openlayers/pull/5754) - Update istanbul to version 0.4.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5727](https://github.com/openlayers/openlayers/pull/5727) - Add missing goog require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5273](https://github.com/openlayers/openlayers/pull/5273) - Take the pixelRatio into account when computing the gutter ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5753](https://github.com/openlayers/openlayers/pull/5753) - Update proj4 to version 2.3.15 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5741](https://github.com/openlayers/openlayers/pull/5741) - Point to the English workshop ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5721](https://github.com/openlayers/openlayers/pull/5721) - Update metalsmith to version 2.2.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5733](https://github.com/openlayers/openlayers/pull/5733) - Fix #5730 - Ignore null/undef. values in uri.appendParams ([@adube](https://github.com/adube))
|
|
||||||
* [#5736](https://github.com/openlayers/openlayers/pull/5736) - Show `resultType` attribute in docs ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5735](https://github.com/openlayers/openlayers/pull/5735) - Update eslint to version 3.3.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5731](https://github.com/openlayers/openlayers/pull/5731) - Added a pixelRatio adjust to the canvasTileLayer 'forEachLayerAtPixel… ([@Benjaki2](https://github.com/Benjaki2))
|
|
||||||
* [#5732](https://github.com/openlayers/openlayers/pull/5732) - Add missing curly braces in type annotations ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5728](https://github.com/openlayers/openlayers/pull/5728) - Update closure-util to version 1.15.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5717](https://github.com/openlayers/openlayers/pull/5717) - Update phantomjs-prebuilt to version 2.1.12 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5725](https://github.com/openlayers/openlayers/pull/5725) - Remove tilerange assert from tilegrid/wmts ([@probins](https://github.com/probins))
|
|
||||||
* [#5723](https://github.com/openlayers/openlayers/pull/5723) - Update eslint to version 3.3.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5702](https://github.com/openlayers/openlayers/pull/5702) - Add rule to identify missing requires ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5670](https://github.com/openlayers/openlayers/pull/5670) - Added image data value to 'forEachLayerAtPixel' method callback ([@Benjaki2](https://github.com/Benjaki2))
|
|
||||||
* [#5720](https://github.com/openlayers/openlayers/pull/5720) - Fix typo in tilegrid/wmts ([@probins](https://github.com/probins))
|
|
||||||
* [#5715](https://github.com/openlayers/openlayers/pull/5715) - Create a check-example task for smarter example checking with PhantomJS ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5714](https://github.com/openlayers/openlayers/pull/5714) - Add FAQ entry about renderBuffer ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5713](https://github.com/openlayers/openlayers/pull/5713) - Check examples with http protocol instead of file ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5689](https://github.com/openlayers/openlayers/pull/5689) - Fix cursor change in translate interaction ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#5165](https://github.com/openlayers/openlayers/pull/5165) - Remove goog.addSingletonGetter function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5701](https://github.com/openlayers/openlayers/pull/5701) - Update phantomjs-prebuilt to version 2.1.11 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5698](https://github.com/openlayers/openlayers/pull/5698) - Custom rule to identify unused goog.require() calls ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5699](https://github.com/openlayers/openlayers/pull/5699) - Update mocha to version 3.0.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5697](https://github.com/openlayers/openlayers/pull/5697) - Re-enable ESLint config ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5693](https://github.com/openlayers/openlayers/pull/5693) - Reorganize files so they are named like their default export ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5694](https://github.com/openlayers/openlayers/pull/5694) - layer.Base in Map not required ([@probins](https://github.com/probins))
|
|
||||||
* [#5695](https://github.com/openlayers/openlayers/pull/5695) - Remove unneeded requires in renderers ([@probins](https://github.com/probins))
|
|
||||||
* [#5692](https://github.com/openlayers/openlayers/pull/5692) - Small text fix ([@bngsudheer](https://github.com/bngsudheer))
|
|
||||||
* [#5682](https://github.com/openlayers/openlayers/pull/5682) - Update mocha to version 3.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5619](https://github.com/openlayers/openlayers/pull/5619) - Remove goog.asserts.* ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5685](https://github.com/openlayers/openlayers/pull/5685) - Add a method to scale geometries ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5674](https://github.com/openlayers/openlayers/pull/5674) - Support fractional zoom levels in ol.View#getZoom and #setZoom ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5681](https://github.com/openlayers/openlayers/pull/5681) - Remove extra goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5680](https://github.com/openlayers/openlayers/pull/5680) - Update phantomjs-prebuilt to version 2.1.10 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5668](https://github.com/openlayers/openlayers/pull/5668) - Added Intersects and Within filters into ol.format.wfs ([@cpsTinK](https://github.com/cpsTinK))
|
|
||||||
* [#5675](https://github.com/openlayers/openlayers/pull/5675) - Remove unused goog.provide ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5673](https://github.com/openlayers/openlayers/pull/5673) - Add missing semicolon ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5587](https://github.com/openlayers/openlayers/pull/5587) - Lazily create KML style defaults ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5599](https://github.com/openlayers/openlayers/pull/5599) - Allow subpixel center on view ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5630](https://github.com/openlayers/openlayers/pull/5630) - chore(build): guard against unterminated scripts ([@tlvince](https://github.com/tlvince))
|
|
||||||
* [#5669](https://github.com/openlayers/openlayers/pull/5669) - Fix Github links to specific lines on jsdoc pages ([@dtreiter](https://github.com/dtreiter))
|
|
||||||
* [#5667](https://github.com/openlayers/openlayers/pull/5667) - Do not return undefined from ol.proj.get ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5665](https://github.com/openlayers/openlayers/pull/5665) - Update eslint to version 3.2.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5632](https://github.com/openlayers/openlayers/pull/5632) - Improve docs for the ol.LoadingStrategy type ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5641](https://github.com/openlayers/openlayers/pull/5641) - De-randomize the listener map property ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5664](https://github.com/openlayers/openlayers/pull/5664) - Update eslint to version 3.2.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5658](https://github.com/openlayers/openlayers/pull/5658) - Update marked to version 0.3.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5657](https://github.com/openlayers/openlayers/pull/5657) - Update phantomjs-prebuilt to version 2.1.9 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5652](https://github.com/openlayers/openlayers/pull/5652) - Make XHR work for file:// urls ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5653](https://github.com/openlayers/openlayers/pull/5653) - Fix namespace in filter docs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5651](https://github.com/openlayers/openlayers/pull/5651) - Update coveralls to version 2.11.12 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5649](https://github.com/openlayers/openlayers/pull/5649) - Fix DateTime parsing with non-Zulu times ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5648](https://github.com/openlayers/openlayers/pull/5648) - Update sinon to version 1.17.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5646](https://github.com/openlayers/openlayers/pull/5646) - Update phantomjs-prebuilt to version 2.1.8 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5644](https://github.com/openlayers/openlayers/pull/5644) - Update browserify to version 13.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5640](https://github.com/openlayers/openlayers/pull/5640) - Add example for usage of HERE Map Tile API ([@chrismayer](https://github.com/chrismayer))
|
|
||||||
* [#5579](https://github.com/openlayers/openlayers/pull/5579) - Update jquery to version 3.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5636](https://github.com/openlayers/openlayers/pull/5636) - Update clean-css to version 3.4.19 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5634](https://github.com/openlayers/openlayers/pull/5634) - Update async to version 2.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5622](https://github.com/openlayers/openlayers/pull/5622) - Update TileWMS.coordKeyPrefix_ on setUrls ([@rrutkows](https://github.com/rrutkows))
|
|
||||||
* [#5611](https://github.com/openlayers/openlayers/pull/5611) - Fix broken link to Google JavaScript Style Guide ([@ischas](https://github.com/ischas))
|
|
||||||
* [#5620](https://github.com/openlayers/openlayers/pull/5620) - Replace goog.getUid with ol.getUid ([@probins](https://github.com/probins))
|
|
||||||
* [#5614](https://github.com/openlayers/openlayers/pull/5614) - Replace goog.abstractMethod ([@probins](https://github.com/probins))
|
|
||||||
* [#5613](https://github.com/openlayers/openlayers/pull/5613) - Parse MVT id property ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#5612](https://github.com/openlayers/openlayers/pull/5612) - Update vector-tile to version 1.3.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5609](https://github.com/openlayers/openlayers/pull/5609) - Update eslint to version 3.1.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5605](https://github.com/openlayers/openlayers/pull/5605) - Remove goog.isObject not in assertions ([@probins](https://github.com/probins))
|
|
||||||
* [#5603](https://github.com/openlayers/openlayers/pull/5603) - Update eslint to version 3.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5597](https://github.com/openlayers/openlayers/pull/5597) - Avoid unnecessary getImageData calls in hit detection ([@schmidtk](https://github.com/schmidtk))
|
|
||||||
* [#5429](https://github.com/openlayers/openlayers/pull/5429) - Remove enums from tests ([@probins](https://github.com/probins))
|
|
||||||
* [#5516](https://github.com/openlayers/openlayers/pull/5516) - Remove goog.Uri from KML format ([@probins](https://github.com/probins))
|
|
||||||
* [#5598](https://github.com/openlayers/openlayers/pull/5598) - Clarify that default source.Vector loader only handles features ([@probins](https://github.com/probins))
|
|
||||||
* [#5595](https://github.com/openlayers/openlayers/pull/5595) - Use tile keys instead of coord keys ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5594](https://github.com/openlayers/openlayers/pull/5594) - Add renderBuffer option for ol.source.ImageVector ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5592](https://github.com/openlayers/openlayers/pull/5592) - Update coveralls to version 2.11.11 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5593](https://github.com/openlayers/openlayers/pull/5593) - Update async to version 2.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#4194](https://github.com/openlayers/openlayers/pull/4194) - Remove usage of goog.color and closure named colors ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#5583](https://github.com/openlayers/openlayers/pull/5583) - Fix dead link for change event in API docs ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5560](https://github.com/openlayers/openlayers/pull/5560) - Get rid of goog.isArrayLike ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5573](https://github.com/openlayers/openlayers/pull/5573) - Determine ol.global in a way that works in more environments ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5558](https://github.com/openlayers/openlayers/pull/5558) - Remove goog.Uri from tests ([@probins](https://github.com/probins))
|
|
||||||
* [#5578](https://github.com/openlayers/openlayers/pull/5578) - Add polyfills to copy/paste code ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5577](https://github.com/openlayers/openlayers/pull/5577) - Fix olx.source.OSMOptions#url default value documentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5576](https://github.com/openlayers/openlayers/pull/5576) - Use the word "documentation" ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5575](https://github.com/openlayers/openlayers/pull/5575) - Add a bit more info about the library to the README ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5574](https://github.com/openlayers/openlayers/pull/5574) - Add paragraph about supported browsers and polyfills ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5570](https://github.com/openlayers/openlayers/pull/5570) - Upgrade JSTS in example to 1.2.0 ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#5566](https://github.com/openlayers/openlayers/pull/5566) - Fix ol.style.Image#getAnchor documentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5546](https://github.com/openlayers/openlayers/pull/5546) - Remove useless target argument from ol.Event and subclass constructors ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5565](https://github.com/openlayers/openlayers/pull/5565) - Reinsert goog.provide for enums in olx.js ([@probins](https://github.com/probins))
|
|
||||||
* [#5561](https://github.com/openlayers/openlayers/pull/5561) - Add unit tests for ol.View.createCenterConstraint ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5563](https://github.com/openlayers/openlayers/pull/5563) - Return if a vertex was removed in ol.interaction.Modify#removeVertex_ ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5533](https://github.com/openlayers/openlayers/pull/5533) - Make sure reprojected tiles are recreated on updateParams ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5534](https://github.com/openlayers/openlayers/pull/5534) - Fix ScaleLine control documentation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5541](https://github.com/openlayers/openlayers/pull/5541) - Replace goog.isNumber ([@probins](https://github.com/probins))
|
|
||||||
* [#5552](https://github.com/openlayers/openlayers/pull/5552) - Replace goog.webgl. ([@probins](https://github.com/probins))
|
|
||||||
* [#5550](https://github.com/openlayers/openlayers/pull/5550) - Remove use of ol.vec.Mat4 calls remaining after #5482 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5507](https://github.com/openlayers/openlayers/pull/5507) - Remove use of goog.vec.* ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# v3.18.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.18.1 release is a patch release that addresses two regressions in the v3.18.0 release. See the [v3.18.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.18.0) for details on upgrading from v3.17.x.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#5798](https://github.com/openlayers/openlayers/pull/5798) - Move to 90° along the circle, not 0° ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5790](https://github.com/openlayers/openlayers/pull/5790) - Fix vector tile rotation on HiDPI devices ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# v3.18.2
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.18.2 release is a patch release that addresses a regression in the v3.18.1 release. See the [v3.18.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.18.0) for details on upgrading from v3.17.x.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#5828](https://github.com/openlayers/openlayers/pull/5828) - Always close polygon rings ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,203 +0,0 @@
|
|||||||
# v3.19.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.19.0 release includes features and fixes from a little more than 120 pull requests with more than 380 commits. Most of the changes are bug fixes, documentation enhancements or target the continuing removal of the dependency on Closure Library. Some notable new or enhanced features are:
|
|
||||||
|
|
||||||
* Vector fills with `CanvasGradient` or `CanvasPattern` now move and rotate with the map which is far more intuitive ([#5950](https://github.com/openlayers/openlayers/pull/5950))
|
|
||||||
* Drawing in `freehand`-mode also became more intuitive ([#5970](https://github.com/openlayers/openlayers/pull/5970), [#5973](https://github.com/openlayers/openlayers/pull/5973), [#5975](https://github.com/openlayers/openlayers/pull/5975))
|
|
||||||
* When tiles of different resolutions are combined for a layer (which is the case before all tiles of the best resolution have been loaded), lower resolution tiles now align with higher resolution tiles resulting in a map without gaps ([#5890](https://github.com/openlayers/openlayers/pull/5890))
|
|
||||||
* Styles can now easily be cloned ([#5832](https://github.com/openlayers/openlayers/pull/5832))
|
|
||||||
|
|
||||||
Additionally the [openlayers.org](https://openlayers.org) homepage is now available via the `https`-protocol.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.style.Fill` with `CanvasGradient` or `CanvasPattern`
|
|
||||||
|
|
||||||
Previously, gradients and patterns were aligned with the canvas, so they did not
|
|
||||||
move and rotate with the map. This was changed to a more expected behavior by anchoring the fill to the map origin (usually at map coordinate `[0, 0]`).
|
|
||||||
|
|
||||||
#### `goog.DEBUG` define was renamed to `ol.DEBUG`
|
|
||||||
|
|
||||||
As last step in the removal of the dependency on Google Closure Library, the `goog.DEBUG` compiler define was renamed to `ol.DEBUG`. Please change accordingly in your custom build configuration json files.
|
|
||||||
|
|
||||||
#### `ol.format.ogc.filter` namespace was renamed to `ol.format.filter`
|
|
||||||
|
|
||||||
`ol.format.ogc.filter` was simplified to `ol.format.filter`; to upgrade your code, simply remove the `ogc` string from the name.
|
|
||||||
For example: `ol.format.ogc.filter.and` to `ol.format.filter.and`.
|
|
||||||
|
|
||||||
#### Changes only relevant to those who compile their applications together with the Closure Compiler
|
|
||||||
|
|
||||||
A number of internal types have been renamed. This will not affect those who use the API provided by the library, but if you are compiling your application together with OpenLayers and using type names, you'll need to do the following:
|
|
||||||
|
|
||||||
* rename `ol.CollectionProperty` to `ol.Collection.Property`
|
|
||||||
* rename `ol.DeviceOrientationProperty` to `ol.DeviceOrientation.Property`
|
|
||||||
* rename `ol.DragBoxEvent` to `ol.interaction.DragBox.Event`
|
|
||||||
* rename `ol.DragBoxEventType` to `ol.interaction.DragBox.EventType`
|
|
||||||
* rename `ol.GeolocationProperty` to `ol.Geolocation.Property`
|
|
||||||
* rename `ol.OverlayPositioning` to `ol.Overlay.Positioning`
|
|
||||||
* rename `ol.OverlayProperty` to `ol.Overlay.Property`
|
|
||||||
* rename `ol.control.MousePositionProperty` to `ol.control.MousePosition.Property`
|
|
||||||
* rename `ol.format.IGCZ` to `ol.format.IGC.Z`
|
|
||||||
* rename `ol.interaction.InteractionProperty` to `ol.interaction.Interaction.Property`
|
|
||||||
* rename `ol.interaction.DrawMode` to `ol.interaction.Draw.Mode`
|
|
||||||
* rename `ol.interaction.DrawEvent` to `ol.interaction.Draw.Event`
|
|
||||||
* rename `ol.interaction.DrawEventType` to `ol.interaction.Draw.EventType`
|
|
||||||
* rename `ol.interaction.ExtentEvent` to `ol.interaction.Extent.Event`
|
|
||||||
* rename `ol.interaction.ExtentEventType` to `ol.interaction.Extent.EventType`
|
|
||||||
* rename `ol.interaction.DragAndDropEvent` to `ol.interaction.DragAndDrop.Event`
|
|
||||||
* rename `ol.interaction.DragAndDropEventType` to `ol.interaction.DragAndDrop.EventType`
|
|
||||||
* rename `ol.interaction.ModifyEvent` to `ol.interaction.Modify.Event`
|
|
||||||
* rename `ol.interaction.SelectEvent` to `ol.interaction.Select.Event`
|
|
||||||
* rename `ol.interaction.SelectEventType` to `ol.interaction.Select.EventType`
|
|
||||||
* rename `ol.interaction.TranslateEvent` to `ol.interaction.Translate.Event`
|
|
||||||
* rename `ol.interaction.TranslateEventType` to `ol.interaction.Translate.EventType`
|
|
||||||
* rename `ol.layer.GroupProperty` to `ol.layer.Group.Property`
|
|
||||||
* rename `ol.layer.HeatmapLayerProperty` to `ol.layer.Heatmap.Property`
|
|
||||||
* rename `ol.layer.TileProperty` to `ol.layer.Tile.Property`
|
|
||||||
* rename `ol.layer.VectorTileRenderType` to `ol.layer.VectorTile.RenderType`
|
|
||||||
* rename `ol.MapEventType` to `ol.MapEvent.Type`
|
|
||||||
* rename `ol.MapProperty` to `ol.Map.Property`
|
|
||||||
* rename `ol.ModifyEventType` to `ol.interaction.Modify.EventType`
|
|
||||||
* rename `ol.RendererType` to `ol.renderer.Type`
|
|
||||||
* rename `ol.render.EventType` to `ol.render.Event.Type`
|
|
||||||
* rename `ol.source.ImageEvent` to `ol.source.Image.Event`
|
|
||||||
* rename `ol.source.ImageEventType` to `ol.source.Image.EventType`
|
|
||||||
* rename `ol.source.RasterEvent` to `ol.source.Raster.Event`
|
|
||||||
* rename `ol.source.RasterEventType` to `ol.source.Raster.EventType`
|
|
||||||
* rename `ol.source.TileEvent` to `ol.source.Tile.Event`
|
|
||||||
* rename `ol.source.TileEventType` to `ol.source.Tile.EventType`
|
|
||||||
* rename `ol.source.VectorEvent` to `ol.source.Vector.Event`
|
|
||||||
* rename `ol.source.VectorEventType` to `ol.source.Vector.EventType`
|
|
||||||
* rename `ol.source.wms.ServerType` to `ol.source.WMSServerType`
|
|
||||||
* rename `ol.source.WMTSRequestEncoding` to `ol.source.WMTS.RequestEncoding`
|
|
||||||
* rename `ol.style.IconAnchorUnits` to `ol.style.Icon.AnchorUnits`
|
|
||||||
* rename `ol.style.IconOrigin` to `ol.style.Icon.Origin`
|
|
||||||
|
|
||||||
## Full list of changes
|
|
||||||
|
|
||||||
* [#6007](https://github.com/openlayers/openlayers/pull/6007) - Add note to example that canvas.toBlob() is required ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5979](https://github.com/openlayers/openlayers/pull/5979) - Use FileSaver.js in export-map example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6004](https://github.com/openlayers/openlayers/pull/6004) - Bring back the vector-osm example, using a different service ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6002](https://github.com/openlayers/openlayers/pull/6002) - Use tile pixel ratio for gutter calculation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5991](https://github.com/openlayers/openlayers/pull/5991) - Only test ol.format.MVT if ArrayBuffer.isView is supported ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6000](https://github.com/openlayers/openlayers/pull/6000) - Fix mockup of tile layer to keep drawImage arguments in range ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5997](https://github.com/openlayers/openlayers/pull/5997) - Always load a gated URL polyfill when testing ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5963](https://github.com/openlayers/openlayers/pull/5963) - Remove the vertex on ol.interaction.Modify deactivation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5994](https://github.com/openlayers/openlayers/pull/5994) - Setup a loaded image with src for TileLayer test ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5989](https://github.com/openlayers/openlayers/pull/5989) - Remove vector-osm example ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5985](https://github.com/openlayers/openlayers/pull/5985) - Update Mapzen urls to new scheme ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5984](https://github.com/openlayers/openlayers/pull/5984) - Less examples with mixed content ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5986](https://github.com/openlayers/openlayers/pull/5986) - Update eslint to version 3.8.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5982](https://github.com/openlayers/openlayers/pull/5982) - Use a https enabled GeoServer ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5977](https://github.com/openlayers/openlayers/pull/5977) - Convenience function for drawing boxes ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5978](https://github.com/openlayers/openlayers/pull/5978) - Update async to version 2.1.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5975](https://github.com/openlayers/openlayers/pull/5975) - Finish drawing on pointerup when in freehand mode ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5976](https://github.com/openlayers/openlayers/pull/5976) - Use https where available ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5973](https://github.com/openlayers/openlayers/pull/5973) - Add a freehand option to the draw interaction ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5964](https://github.com/openlayers/openlayers/pull/5964) - Set one-off transform instead of transforming back and forth ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5970](https://github.com/openlayers/openlayers/pull/5970) - Allow circles, squares, and boxes to be drawn in freehand mode ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5972](https://github.com/openlayers/openlayers/pull/5972) - Update eslint to version 3.8.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5969](https://github.com/openlayers/openlayers/pull/5969) - Test all, not just one ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5967](https://github.com/openlayers/openlayers/pull/5967) - Add missing jsdoc to ol.render.canvas.Replay#fill_ function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5962](https://github.com/openlayers/openlayers/pull/5962) - Use same proj4js version in examples and tests ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5961](https://github.com/openlayers/openlayers/pull/5961) - Remove unused error codes ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5960](https://github.com/openlayers/openlayers/pull/5960) - More renaming to have one provide per file ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5959](https://github.com/openlayers/openlayers/pull/5959) - Remove unnecessary and misleading assertion ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5950](https://github.com/openlayers/openlayers/pull/5950) - Move gradient and pattern fills with the view ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5957](https://github.com/openlayers/openlayers/pull/5957) - Update async to version 2.1.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5956](https://github.com/openlayers/openlayers/pull/5956) - Update async to version 2.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5955](https://github.com/openlayers/openlayers/pull/5955) - Add getters to BingMaps source for api key and imagerySet ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5944](https://github.com/openlayers/openlayers/pull/5944) - Allow readFeature and readFeatures to be called with GeoJSON geometries ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5949](https://github.com/openlayers/openlayers/pull/5949) - Add prose documentation for ol.AttributionLike ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5948](https://github.com/openlayers/openlayers/pull/5948) - Fix API docs of ol.Feature#getStyle ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5946](https://github.com/openlayers/openlayers/pull/5946) - Update mocha to version 3.1.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5941](https://github.com/openlayers/openlayers/pull/5941) - Update mocha to version 3.1.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5890](https://github.com/openlayers/openlayers/pull/5890) - No gaps between tiles of different resolutions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5935](https://github.com/openlayers/openlayers/pull/5935) - Keep transformed coordinates within valid y range ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5937](https://github.com/openlayers/openlayers/pull/5937) - One provide per file for vector tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5933](https://github.com/openlayers/openlayers/pull/5933) - Update phantomjs-prebuilt to version 2.1.13 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5932](https://github.com/openlayers/openlayers/pull/5932) - Update eslint to version 3.7.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5931](https://github.com/openlayers/openlayers/pull/5931) - Update jsdoc to version 3.4.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5923](https://github.com/openlayers/openlayers/pull/5923) - Update pbf to version 3.0.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5926](https://github.com/openlayers/openlayers/pull/5926) - Ensure correct type of event.element ([@adube](https://github.com/adube))
|
|
||||||
* [#5928](https://github.com/openlayers/openlayers/pull/5928) - Update eslint to version 3.7.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5919](https://github.com/openlayers/openlayers/pull/5919) - Update resemblejs to version 2.2.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5909](https://github.com/openlayers/openlayers/pull/5909) - Update jquery to version 3.1.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5917](https://github.com/openlayers/openlayers/pull/5917) - Accept feature projection in GeoJSON constructor ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5918](https://github.com/openlayers/openlayers/pull/5918) - Update mocha to version 3.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5916](https://github.com/openlayers/openlayers/pull/5916) - Update eslint to version 3.6.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5914](https://github.com/openlayers/openlayers/pull/5914) - Allow clipping by MultiPolygon ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5894](https://github.com/openlayers/openlayers/pull/5894) - Reuse arrays for rendered tiles and extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5895](https://github.com/openlayers/openlayers/pull/5895) - Always use the frameState's extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5911](https://github.com/openlayers/openlayers/pull/5911) - Update eslint to version 3.6.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5903](https://github.com/openlayers/openlayers/pull/5903) - Rename ol.format.ogc.filter namespace to ol.format.filter ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5913](https://github.com/openlayers/openlayers/pull/5913) - Update clean-css to version 3.4.20 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5776](https://github.com/openlayers/openlayers/pull/5776) - Add ol.style.Circle#setRadius ([@jonataswalker](https://github.com/jonataswalker))
|
|
||||||
* [#5905](https://github.com/openlayers/openlayers/pull/5905) - Update pbf to version 3.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5904](https://github.com/openlayers/openlayers/pull/5904) - Fix changelog/upgrade-notes.md formating ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5906](https://github.com/openlayers/openlayers/pull/5906) - Update glob to version 7.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5898](https://github.com/openlayers/openlayers/pull/5898) - Update sinon to version 1.17.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5888](https://github.com/openlayers/openlayers/pull/5888) - Remove unused functions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5900](https://github.com/openlayers/openlayers/pull/5900) - Update coveralls to version 2.11.14 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5897](https://github.com/openlayers/openlayers/pull/5897) - Show NEXRAD data in WMS Time example ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5896](https://github.com/openlayers/openlayers/pull/5896) - Remove plain string from Map renderer option ([@probins](https://github.com/probins))
|
|
||||||
* [#5893](https://github.com/openlayers/openlayers/pull/5893) - Fix fillStyle or strokeStyle defined assertion ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5892](https://github.com/openlayers/openlayers/pull/5892) - Remove getRendererFromQueryString from examples ([@probins](https://github.com/probins))
|
|
||||||
* [#5889](https://github.com/openlayers/openlayers/pull/5889) - Update coveralls to version 2.11.13 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5886](https://github.com/openlayers/openlayers/pull/5886) - Remove unused functions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5885](https://github.com/openlayers/openlayers/pull/5885) - Remove unused pruneTileRange function ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5853](https://github.com/openlayers/openlayers/pull/5853) - Allow more than one digit range in ol.TileUrlFunction.expandUrl ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5445](https://github.com/openlayers/openlayers/pull/5445) - Select interaction default styling function can now handle geometry less features ([@fblackburn](https://github.com/fblackburn))
|
|
||||||
* [#5884](https://github.com/openlayers/openlayers/pull/5884) - Fix jsdoc tag indentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5863](https://github.com/openlayers/openlayers/pull/5863) - Allow CanvasPattern or CanvasGradient as stroke style ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5838](https://github.com/openlayers/openlayers/pull/5838) - Require ol where ol.DEBUG is being used ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5878](https://github.com/openlayers/openlayers/pull/5878) - Smarter handling of closed rings and closePath() instructions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5880](https://github.com/openlayers/openlayers/pull/5880) - More work towards one provide per file ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5857](https://github.com/openlayers/openlayers/pull/5857) - Fixed issue with multi option of ol.interaction.Select ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#5876](https://github.com/openlayers/openlayers/pull/5876) - Use clone method in kml format ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#5832](https://github.com/openlayers/openlayers/pull/5832) - Add clone methods to styles ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#5869](https://github.com/openlayers/openlayers/pull/5869) - Update jsdoc to version 3.4.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5872](https://github.com/openlayers/openlayers/pull/5872) - Keep ol.Color as Array<number> ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5870](https://github.com/openlayers/openlayers/pull/5870) - Update eslint to version 3.5.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5867](https://github.com/openlayers/openlayers/pull/5867) - Add dedicated example using CanvasPattern and CanvasGradient for styling vectors ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5864](https://github.com/openlayers/openlayers/pull/5864) - More renaming ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5861](https://github.com/openlayers/openlayers/pull/5861) - More renaming to have one provide per file ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5860](https://github.com/openlayers/openlayers/pull/5860) - Rename ol.MapProperty and ol.interaction.DragAndDropEvent* ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5855](https://github.com/openlayers/openlayers/pull/5855) - Rename ol.DragBoxEvent* to ol.interaction.DragBox.Event* ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5859](https://github.com/openlayers/openlayers/pull/5859) - Rename ol.RendererType to ol.renderer.Type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5846](https://github.com/openlayers/openlayers/pull/5846) - Remove unused goog.require('ol') ([@probins](https://github.com/probins))
|
|
||||||
* [#5854](https://github.com/openlayers/openlayers/pull/5854) - Use a canvas pattern in the vector-layer example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5852](https://github.com/openlayers/openlayers/pull/5852) - ol.interaction.extent cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5851](https://github.com/openlayers/openlayers/pull/5851) - Remove unused imageByContext_ in ol.ImageTile ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5849](https://github.com/openlayers/openlayers/pull/5849) - Remove 'global' from externs/closure-compiler.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5837](https://github.com/openlayers/openlayers/pull/5837) - Remove ol.global ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5842](https://github.com/openlayers/openlayers/pull/5842) - Remove extra provide causing a circular dependency ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5795](https://github.com/openlayers/openlayers/pull/5795) - Render older loaded tiles while waiting for new tiles ([@thomasmoelhave](https://github.com/thomasmoelhave))
|
|
||||||
* [#5840](https://github.com/openlayers/openlayers/pull/5840) - Rename source.wms.ServerType ➛ source.WMSServerType ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5839](https://github.com/openlayers/openlayers/pull/5839) - Rename source.VectorEvent(*) to source.Vector.Event(*) ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#5835](https://github.com/openlayers/openlayers/pull/5835) - document and test ol.getUid sequence behavior ([@thomasmoelhave](https://github.com/thomasmoelhave))
|
|
||||||
* [#5834](https://github.com/openlayers/openlayers/pull/5834) - Rename goog.DEBUG to ol.DEBUG ([@thomasmoelhave](https://github.com/thomasmoelhave))
|
|
||||||
* [#5815](https://github.com/openlayers/openlayers/pull/5815) - Remove the DOM renderer ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#5828](https://github.com/openlayers/openlayers/pull/5828) - Always close polygon rings ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5794](https://github.com/openlayers/openlayers/pull/5794) - Fix more missing requires ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5820](https://github.com/openlayers/openlayers/pull/5820) - Change ol.format.Format to ol.format.Feature in format/readme.md ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5819](https://github.com/openlayers/openlayers/pull/5819) - Add ArrayBuffer.isView method in externs/closure-compiler.js ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5793](https://github.com/openlayers/openlayers/pull/5793) - Closure bye bye ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5809](https://github.com/openlayers/openlayers/pull/5809) - Reuse ol.LayerState object ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5811](https://github.com/openlayers/openlayers/pull/5811) - Use ol.global.getComputedStyle instead of window.getComputedStyle ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5810](https://github.com/openlayers/openlayers/pull/5810) - ESLint rule typo ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#5807](https://github.com/openlayers/openlayers/pull/5807) - Update pbf to version 3.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5806](https://github.com/openlayers/openlayers/pull/5806) - Fix olx.style.TextOptions.rotateWithView option in externs ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5770](https://github.com/openlayers/openlayers/pull/5770) - Update ol.source.Vector comments ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5803](https://github.com/openlayers/openlayers/pull/5803) - V3.18.1 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5801](https://github.com/openlayers/openlayers/pull/5801) - Remove ol.style.ImageState and use ol.ImageState instead ([@fredj](https://github.com/fredj))
|
|
||||||
* [#5790](https://github.com/openlayers/openlayers/pull/5790) - Fix vector tile rotation on HiDPI devices ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5798](https://github.com/openlayers/openlayers/pull/5798) - Move to 90° along the circle, not 0° ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#5800](https://github.com/openlayers/openlayers/pull/5800) - Wrap values in <Literal> for InBetween filter ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#5769](https://github.com/openlayers/openlayers/pull/5769) - Only call addToDrawing if sketchFeature ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#5745](https://github.com/openlayers/openlayers/pull/5745) - removed dependencies on goog.object.clone and fixed placemark rendering ([@tamarmot](https://github.com/tamarmot))
|
|
||||||
* [#5290](https://github.com/openlayers/openlayers/pull/5290) - Add extent interaction ([@tbarsballe](https://github.com/tbarsballe))
|
|
||||||
* [#5786](https://github.com/openlayers/openlayers/pull/5786) - Update eslint to version 3.4.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5785](https://github.com/openlayers/openlayers/pull/5785) - Release v3.18.0 ([@openlayers](https://github.com/openlayers))
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# v3.19.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.19.1 release is a patch release that addresses four regressions in the
|
|
||||||
v3.19.0 release. See the
|
|
||||||
[v3.19.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.19.0)
|
|
||||||
for details on upgrading from v3.18.x.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.style.Fill` with `CanvasGradient` or `CanvasPattern`
|
|
||||||
|
|
||||||
The origin for gradients and patterns has changed from `[0, 0]` to the top-left
|
|
||||||
corner of the extent of the geometry being filled.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#6039](https://github.com/openlayers/openlayers/pull/6039) - Do not fill when there is no fillStyle ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6034](https://github.com/openlayers/openlayers/pull/6034) - Use geometry extent's top left corner as pattern/gradient origin ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6027](https://github.com/openlayers/openlayers/pull/6027) - Close polygon sketch at all times ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#6022](https://github.com/openlayers/openlayers/pull/6022) - Revert "Merge pull request #5890 from ahocevar/no-white-lines" ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
# 3.2.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The 3.1.0 release includes 70 merged pull requests since 3.1.0. Of note, the KML format [now parses `NetworkingLink` tags](https://github.com/openlayers/openlayers/pull/3171). The [measure example](https://openlayers.org/en/v3.2.0/examples/measure.html) was [reworked](https://github.com/openlayers/openlayers/pull/3206) to display measurements and help messages while drawing. A WMTS GetCapabilities format was [added](https://github.com/openlayers/openlayers/pull/3026). The WebGL renderer [now supports feature hit detection](https://github.com/openlayers/openlayers/pull/3065) (on point features). And you can now [detect](https://github.com/openlayers/openlayers/pull/3172) features/colored pixels on image and tile layers! See the full list of [changes](#changes) below.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
The 3.2.0 release maintains a backwards-compatible API with the 3.1.0 release, so upgrades should be painless. Some special considerations below.
|
|
||||||
|
|
||||||
* You should not call `view.setRotation` with `undefined`, to reset the view rotation to `0` then use `view.setRotation(0)` (see [#3176](https://github.com/openlayers/openlayers/pull/3176)).
|
|
||||||
|
|
||||||
* If you use `$(map.getViewport()).on('mousemove')` to detect features when the mouse is hovered on the map, you should now rely on the `pointermove` map event type and check in the `pointermove` listener that the `dragging` event property is `false` (see [#3190](https://github.com/openlayers/openlayers/pull/3190)).
|
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
* [#3171](https://github.com/openlayers/openlayers/pull/3171) - KML: Parsing of NetworkLink tag ([@oterral](https://github.com/oterral))
|
|
||||||
* [#3209](https://github.com/openlayers/openlayers/pull/3209) - Coding style fixes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3208](https://github.com/openlayers/openlayers/pull/3208) - Add setters and getters for imageLoadFunction ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3019](https://github.com/openlayers/openlayers/pull/3019) - Add option to allow Select interaction logic to select overlapping features ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3206](https://github.com/openlayers/openlayers/pull/3206) - Add tooltip to show measure + help message while drawing ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3205](https://github.com/openlayers/openlayers/pull/3205) - Use ol.extent.createOrUpdateFromCoordinate ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3026](https://github.com/openlayers/openlayers/pull/3026) - Add support of reading WMTS Get Cap document ([@htulipe](https://github.com/htulipe))
|
|
||||||
* [#3201](https://github.com/openlayers/openlayers/pull/3201) - Pass on opt_fast to parent clear function in ol.source.ServerVector (r=@elemoine,@gberaudo) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3199](https://github.com/openlayers/openlayers/pull/3199) - Minor jsdoc fixes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3059](https://github.com/openlayers/openlayers/pull/3059) - Cache the buffered extent value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3196](https://github.com/openlayers/openlayers/pull/3196) - Remove unnecessary newlines ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3099](https://github.com/openlayers/openlayers/pull/3099) - Fix up parsing of OGR GML with ol.format.GML ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3195](https://github.com/openlayers/openlayers/pull/3195) - Coding style ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3192](https://github.com/openlayers/openlayers/pull/3192) - Add "url" option to ol.source.MapQuest ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3172](https://github.com/openlayers/openlayers/pull/3172) - Introduce forEachLayerAtPixel ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3178](https://github.com/openlayers/openlayers/pull/3178) - GeoJSON externs fixes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3179](https://github.com/openlayers/openlayers/pull/3179) - Disallow undefined values for ol.layer.Base ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3161](https://github.com/openlayers/openlayers/pull/3161) - Doc fix. writeFeaturesNode receives an array of Feature ([@3x0dv5](https://github.com/3x0dv5))
|
|
||||||
* [#3169](https://github.com/openlayers/openlayers/pull/3169) - Fix default icon style in kml format ([@oterral](https://github.com/oterral))
|
|
||||||
* [#3190](https://github.com/openlayers/openlayers/pull/3190) - Introduce `dragging` flag for MapBrowserEvent ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3135](https://github.com/openlayers/openlayers/pull/3135) - Make changing the label of ZoomToExtent/FullScreen control consistent ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3186](https://github.com/openlayers/openlayers/pull/3186) - Take the pixel ratio into account when clipping the layer ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3183](https://github.com/openlayers/openlayers/pull/3183) - Allow other params than 'mode' in example page query string. ([@htulipe](https://github.com/htulipe))
|
|
||||||
* [#2791](https://github.com/openlayers/openlayers/pull/2791) - Re enable rotation button transition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3180](https://github.com/openlayers/openlayers/pull/3180) - Add a getMap function to ol.FeatureOverlay (r=@ahocevar) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3176](https://github.com/openlayers/openlayers/pull/3176) - Disallowed undefined rotation value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3177](https://github.com/openlayers/openlayers/pull/3177) - Add example showing how to style polygon vertices ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3174](https://github.com/openlayers/openlayers/pull/3174) - Use view.getRotation or view.getResolution instead of view.getState ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3170](https://github.com/openlayers/openlayers/pull/3170) - Coding style ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3108](https://github.com/openlayers/openlayers/pull/3108) - Support skipping features in the WebGL renderer ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3163](https://github.com/openlayers/openlayers/pull/3163) - Use the layerStatesArray property from the frameState ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3159](https://github.com/openlayers/openlayers/pull/3159) - Don't pass specific options to the parent constructor ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3066](https://github.com/openlayers/openlayers/pull/3066) - Introduce hasFeatureAtPixel ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3065](https://github.com/openlayers/openlayers/pull/3065) - Add hit-detection support for WebGL ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3128](https://github.com/openlayers/openlayers/pull/3128) - Allow rendering of feature when download of icon failed ([@oterral](https://github.com/oterral))
|
|
||||||
* [#3156](https://github.com/openlayers/openlayers/pull/3156) - Move readProjectionFrom* functions to the base classes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3107](https://github.com/openlayers/openlayers/pull/3107) - Also listen on loading images ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3153](https://github.com/openlayers/openlayers/pull/3153) - Add missing GeoJSONFeature#bbox property ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3154](https://github.com/openlayers/openlayers/pull/3154) - Remove unnecessary newlines ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3146](https://github.com/openlayers/openlayers/pull/3146) - Enable tests for ol.geom.flat.reverse ([@icholy](https://github.com/icholy))
|
|
||||||
* [#3152](https://github.com/openlayers/openlayers/pull/3152) - Update closure-library and closure-util version ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3145](https://github.com/openlayers/openlayers/pull/3145) - Add wrapX option to source.OSM and source.BingMaps ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3139](https://github.com/openlayers/openlayers/pull/3139) - Add ol.control.Control#setTarget ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3144](https://github.com/openlayers/openlayers/pull/3144) - Update CONTRIBUTING style guide with recent guidelines ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3136](https://github.com/openlayers/openlayers/pull/3136) - Use array.length = 0 instead of goog.array.clear ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3140](https://github.com/openlayers/openlayers/pull/3140) - Avoid use of goog.array.clone with arrays. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3122](https://github.com/openlayers/openlayers/pull/3122) - Revert "Use offsetX and offsetY if available" ([@fredj](https://github.com/fredj))
|
|
||||||
* [#2385](https://github.com/openlayers/openlayers/pull/2385) - Option to update vector layers while animating ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3129](https://github.com/openlayers/openlayers/pull/3129) - Only update the rbush item if the extent has changed ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3117](https://github.com/openlayers/openlayers/pull/3117) - Add pixelRatio support for DOM vector renderer ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3124](https://github.com/openlayers/openlayers/pull/3124) - Add a space between scale -value and -unit ([@sirtet](https://github.com/sirtet))
|
|
||||||
* [#3130](https://github.com/openlayers/openlayers/pull/3130) - Document default value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3105](https://github.com/openlayers/openlayers/pull/3105) - ol.geom.Geometry#getExtent re-factoring ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3118](https://github.com/openlayers/openlayers/pull/3118) - Bugfix: "Cannot read property 'firstElementChild' of null" (WFS) ([@naturalatlas](https://github.com/naturalatlas))
|
|
||||||
* [#3114](https://github.com/openlayers/openlayers/pull/3114) - Specify node version in CONTRIBUTING.md ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3106](https://github.com/openlayers/openlayers/pull/3106) - Don't pass specific options to the parent constructor ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3110](https://github.com/openlayers/openlayers/pull/3110) - Use svg instead of png to get better image quality ([@PeterDaveHello](https://github.com/PeterDaveHello))
|
|
||||||
* [#2707](https://github.com/openlayers/openlayers/pull/2707) - Generate source map of minified ol.js ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3104](https://github.com/openlayers/openlayers/pull/3104) - Don't pass renderBuffer option to the parent constructor ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3096](https://github.com/openlayers/openlayers/pull/3096) - popup example cleanup / simplification ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3072](https://github.com/openlayers/openlayers/pull/3072) - Optimize canvas hit detection by rendering features in a limited extent. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3101](https://github.com/openlayers/openlayers/pull/3101) - Use bracket notation instead of goog.object functions. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3079](https://github.com/openlayers/openlayers/pull/3079) - Exclude source files from docs. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3100](https://github.com/openlayers/openlayers/pull/3100) - Assert that ol.layer.Tile#getPreload is always set ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3084](https://github.com/openlayers/openlayers/pull/3084) - Changes from the v3.1.x branch. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#3094](https://github.com/openlayers/openlayers/pull/3094) - Remove AUTHORS.md. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3089](https://github.com/openlayers/openlayers/pull/3089) - Fixed URL link for test README ([@mike-mcgann](https://github.com/mike-mcgann))
|
|
||||||
* [#2894](https://github.com/openlayers/openlayers/pull/2894) - Simplify CSS code in custom-controls example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3085](https://github.com/openlayers/openlayers/pull/3085) - Fixed documentation typo for return value of ol.proj.Projection.isGlobal(). ([@mike-mcgann](https://github.com/mike-mcgann))
|
|
||||||
* [#3073](https://github.com/openlayers/openlayers/pull/3073) - Make map's deviceOptions map options ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# 3.2.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
This is a patch release that fixes a regression with the select interaction in the [3.2.0 release](https://github.com/openlayers/openlayers/releases/tag/v3.2.0).
|
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
* [#3236](https://github.com/openlayers/openlayers/pull/3236) - Select the uppermost feature. ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,195 +0,0 @@
|
|||||||
# v3.20.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.20.0 release includes enhancements and fixes from 89 pull requests since the previous release.
|
|
||||||
|
|
||||||
Among the changes, take a look at the new `view.animate()` function. This replaces the previous `map.beforeRender()` and `ol.animation` functions with more intuitive view animations that allow for chaining together multiple transitions and support a callback on animation end. In addition, two or more maps that share a view will be animated together. See the upgrade notes and the animation example for more detail.
|
|
||||||
|
|
||||||
On the subject of view transitions, scrolling with a trackpad or magic mouse now transitions the view resolution smoothly. Instead of jumping to the next integer zoom level, trackpad or magic mouse scrolling can leave the view at a fractional zoom level. In line with this trackpad behavior, pinch zooming on touch devices also now leaves the view at a fractional zoom level (see the upgrade notes for an option to restore the old behavior).
|
|
||||||
|
|
||||||
On the rendering front, the Canvas renderer got another overhaul. This release brings back the strategy of rendering to a dedicated Canvas element per layer. If you were experiencing issues with gaps between tiles on rotated views or when zooming, this change should bring rendering improvements.
|
|
||||||
|
|
||||||
Also on the rendering front, @GaborFarkas completed a nearly 5 month effort to bring line and polygon support to the WebGL renderer. If you're interested in experimenting with WebGL for vector rendering, use `renderer: 'webgl'` in your map constructor.
|
|
||||||
|
|
||||||
See the full list of changes below. There are some other gems down there.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### Use `view.animate()` instead of `map.beforeRender()` and `ol.animation` functions
|
|
||||||
|
|
||||||
The `map.beforeRender()` and `ol.animation` functions have been deprecated in favor of a new `view.animate()` function. Use of the deprecated functions will result in a warning during development. These functions are subject to removal in an upcoming release.
|
|
||||||
|
|
||||||
For details on the `view.animate()` method, see the API docs and the view animation example. Upgrading should be relatively straightforward. For example, if you wanted to have an animated pan, zoom, and rotation previously, you might have done this:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var zoom = ol.animation.zoom({
|
|
||||||
resolution: view.getResolution()
|
|
||||||
});
|
|
||||||
var pan = ol.animation.pan({
|
|
||||||
source: view.getCenter()
|
|
||||||
});
|
|
||||||
var rotate = ol.animation.rotate({
|
|
||||||
rotation: view.getRotation()
|
|
||||||
});
|
|
||||||
|
|
||||||
map.beforeRender(zoom, pan, rotate);
|
|
||||||
|
|
||||||
map.setZoom(1);
|
|
||||||
map.setCenter([0, 0]);
|
|
||||||
map.setRotation(Math.PI);
|
|
||||||
```
|
|
||||||
|
|
||||||
Now, the same can be accomplished with this:
|
|
||||||
```js
|
|
||||||
view.animate({
|
|
||||||
zoom: 1,
|
|
||||||
center: [0, 0],
|
|
||||||
rotation: Math.PI
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### `ol.Map#forEachFeatureAtPixel` and `ol.Map#hasFeatureAtPixel` parameters have changed
|
|
||||||
|
|
||||||
If you are using the layer filter of one of these methods, please note that you now have to pass in the layer filter via an `ol.AtPixelOptions` object. If you are not using the layer filter the usage has not changed.
|
|
||||||
|
|
||||||
Old syntax:
|
|
||||||
```js
|
|
||||||
map.forEachFeatureAtPixel(pixel, callback, callbackThis, layerFilterFn, layerFilterThis);
|
|
||||||
|
|
||||||
map.hasFeatureAtPixel(pixel, layerFilterFn, layerFilterThis);
|
|
||||||
```
|
|
||||||
|
|
||||||
New syntax:
|
|
||||||
```js
|
|
||||||
map.forEachFeatureAtPixel(pixel, callback.bind(callbackThis), {
|
|
||||||
layerFilter: layerFilterFn.bind(layerFilterThis)
|
|
||||||
});
|
|
||||||
|
|
||||||
map.hasFeatureAtPixel(pixel, {
|
|
||||||
layerFilter: layerFilterFn.bind(layerFilterThis)
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
This change is due to the introduction of the `hitTolerance` parameter which can be passed in via this `ol.AtPixelOptions` object, too.
|
|
||||||
|
|
||||||
#### Use `ol.proj.getPointResolution()` instead of `projection.getPointResolution()`
|
|
||||||
|
|
||||||
The experimental `getPointResolution` method has been removed from `ol.Projection` instances. Since the implementation of this method required an inverse transform (function for transforming projected coordinates to geographic coordinates) and `ol.Projection` instances are not constructed with forward or inverse transforms, it does not make sense that a projection instance can always calculate the point resolution.
|
|
||||||
|
|
||||||
As a substitute for the `projection.getPointResolution()` function, a `ol.proj.getPointResolution()` function has been added. To upgrade, you will need to change things like this:
|
|
||||||
```js
|
|
||||||
projection.getPointResolution(resolution, point);
|
|
||||||
```
|
|
||||||
|
|
||||||
into this:
|
|
||||||
```js
|
|
||||||
ol.proj.getPointResolution(projection, resolution, point);
|
|
||||||
```
|
|
||||||
|
|
||||||
Note that if you were previously creating a projection with a `getPointResolution` function in the constructor (or calling `projection.setGetPointResolution()` after construction), this function will be used by `ol.proj.getPointResolution()`.
|
|
||||||
|
|
||||||
#### `ol.interaction.PinchZoom` no longer zooms to a whole-number zoom level after the gesture ends
|
|
||||||
|
|
||||||
The old behavior of `ol.interaction.PinchZoom` was to zoom to the next integer zoom level after the user ends the gesture.
|
|
||||||
|
|
||||||
Now the pinch zoom keeps the user selected zoom level even if it is a fractional zoom.
|
|
||||||
|
|
||||||
To get the old behavior set the new `constrainResolution` parameter to `true` like this:
|
|
||||||
```js
|
|
||||||
new ol.interaction.PinchZoom({constrainResolution: true})
|
|
||||||
```
|
|
||||||
|
|
||||||
See the new `pinch-zoom` example for a complete implementation.
|
|
||||||
|
|
||||||
## Detailed changes
|
|
||||||
|
|
||||||
* [#6230](https://github.com/openlayers/openlayers/pull/6230) - Ignore duplicated attributions ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6192](https://github.com/openlayers/openlayers/pull/6192) - Modify interaction: always stop event propagation when removing vertex ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6228](https://github.com/openlayers/openlayers/pull/6228) - Rename the pinch zoom example ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6229](https://github.com/openlayers/openlayers/pull/6229) - Update phantomjs-prebuilt to version 2.1.14 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6196](https://github.com/openlayers/openlayers/pull/6196) - KML ExtendedData Export ([@raiyni](https://github.com/raiyni))
|
|
||||||
* [#6227](https://github.com/openlayers/openlayers/pull/6227) - Update eslint to version 3.12.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6224](https://github.com/openlayers/openlayers/pull/6224) - Pinch zoom: allow fractional zoom ([@aAXEe](https://github.com/aAXEe))
|
|
||||||
* [#6226](https://github.com/openlayers/openlayers/pull/6226) - Improve the headers styles in the api doc ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#5995](https://github.com/openlayers/openlayers/pull/5995) - Add hit tolerance parameter to ol.Map#forEachFeatureAtPixel ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#6220](https://github.com/openlayers/openlayers/pull/6220) - Fix ol.Collection#push return value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6213](https://github.com/openlayers/openlayers/pull/6213) - Add preload option to olx.layer.VectorTileOptions ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#6222](https://github.com/openlayers/openlayers/pull/6222) - Fix forEachLayerAtPixel and improve class hierarchy ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6075](https://github.com/openlayers/openlayers/pull/6075) - Keep the other dim from the original segment when modifying vertex ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6218](https://github.com/openlayers/openlayers/pull/6218) - Make modify interaction more robust ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#6205](https://github.com/openlayers/openlayers/pull/6205) - Rework remaining modules with multiple provides ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6207](https://github.com/openlayers/openlayers/pull/6207) - Require all when generating exports ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6204](https://github.com/openlayers/openlayers/pull/6204) - Refactored proj modules ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6209](https://github.com/openlayers/openlayers/pull/6209) - Test array with to.eql(), not to.be.eql() ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6091](https://github.com/openlayers/openlayers/pull/6091) - Apply pixelRatio to line dash ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6082](https://github.com/openlayers/openlayers/pull/6082) - Unified canvas rendering ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6173](https://github.com/openlayers/openlayers/pull/6173) - Topolis example ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#6206](https://github.com/openlayers/openlayers/pull/6206) - Stop asserting that zero duration animations take time ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6203](https://github.com/openlayers/openlayers/pull/6203) - Address a few missing requires ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6201](https://github.com/openlayers/openlayers/pull/6201) - Remove assertion in TileArcGISRest source ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6202](https://github.com/openlayers/openlayers/pull/6202) - Allow animation duration to be zero ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6198](https://github.com/openlayers/openlayers/pull/6198) - Fix sourceResolution value in view.animate ([@oterral](https://github.com/oterral))
|
|
||||||
* [#6177](https://github.com/openlayers/openlayers/pull/6177) - Add duration and easing options to view.fit() for animations ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6078](https://github.com/openlayers/openlayers/pull/6078) - Use winding number algorithm for linearRingContainsXY ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#6187](https://github.com/openlayers/openlayers/pull/6187) - Update pbf to version 3.0.5 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6175](https://github.com/openlayers/openlayers/pull/6175) - Generate projection transform function only when requested ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6181](https://github.com/openlayers/openlayers/pull/6181) - Replace expired Bing key with a new one ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6164](https://github.com/openlayers/openlayers/pull/6164) - Simplify color parsing and allow more decimals ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#6178](https://github.com/openlayers/openlayers/pull/6178) - Add missing goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6176](https://github.com/openlayers/openlayers/pull/6176) - Doc: easing option is optional ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6180](https://github.com/openlayers/openlayers/pull/6180) - Update eslint to version 3.11.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6179](https://github.com/openlayers/openlayers/pull/6179) - Remove unused ol.Map.removePreRenderFunction function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6052](https://github.com/openlayers/openlayers/pull/6052) - Remove the use of ol.format.KML.DEFAULT_IMAGE_SCALE_MULTIPLIER_ when … ([@oterral](https://github.com/oterral))
|
|
||||||
* [#6159](https://github.com/openlayers/openlayers/pull/6159) - Remove carriage return after goog.require in examples ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6169](https://github.com/openlayers/openlayers/pull/6169) - Image rotation in WebGL was anti-clockwise ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#5590](https://github.com/openlayers/openlayers/pull/5590) - Kml format: improved support for region and extendeddata ([@thhomas](https://github.com/thhomas))
|
|
||||||
* [#5462](https://github.com/openlayers/openlayers/pull/5462) - WebGL vector support ([@GaborFarkas](https://github.com/GaborFarkas))
|
|
||||||
* [#6168](https://github.com/openlayers/openlayers/pull/6168) - Update mocha to version 3.2.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#5589](https://github.com/openlayers/openlayers/pull/5589) - Wmts tilematrixlimits ([@thhomas](https://github.com/thhomas))
|
|
||||||
* [#6155](https://github.com/openlayers/openlayers/pull/6155) - Set GeometryLayout correctly when reading GPX ([@romanzoller](https://github.com/romanzoller))
|
|
||||||
* [#6161](https://github.com/openlayers/openlayers/pull/6161) - Update async to version 2.1.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6153](https://github.com/openlayers/openlayers/pull/6153) - Remove legacy licenses folder ([@romanzoller](https://github.com/romanzoller))
|
|
||||||
* [#6154](https://github.com/openlayers/openlayers/pull/6154) - Update mocha-phantomjs-core to version 2.1.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6146](https://github.com/openlayers/openlayers/pull/6146) - Merge ol.style.Circle and RegularShape together ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6139](https://github.com/openlayers/openlayers/pull/6139) - Match equivalent projections from WMTS caps ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#6138](https://github.com/openlayers/openlayers/pull/6138) - Update clean-css to version 3.4.21 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6132](https://github.com/openlayers/openlayers/pull/6132) - Add getter for color property to ol.style.Icon ([@tohu12](https://github.com/tohu12))
|
|
||||||
* [#6127](https://github.com/openlayers/openlayers/pull/6127) - Format WKT Z, M and ZM ([@omarkljung](https://github.com/omarkljung))
|
|
||||||
* [#6136](https://github.com/openlayers/openlayers/pull/6136) - Update eslint to version 3.10.2 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6133](https://github.com/openlayers/openlayers/pull/6133) - Doc clarification ol.MapBrowserEvent#pixel, ol.MapBrowserEvent#coordinate, ol.Map#getEventCoordinate ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#6134](https://github.com/openlayers/openlayers/pull/6134) - Add setter methods for fill, image, stroke and text styles ([@dnlkoch](https://github.com/dnlkoch))
|
|
||||||
* [#6129](https://github.com/openlayers/openlayers/pull/6129) - Update pbf to version 3.0.4 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6121](https://github.com/openlayers/openlayers/pull/6121) - Hint change means view change ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6120](https://github.com/openlayers/openlayers/pull/6120) - Set interacting hint during trackpad scroll ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6128](https://github.com/openlayers/openlayers/pull/6128) - Update pbf to version 3.0.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6124](https://github.com/openlayers/openlayers/pull/6124) - Allow up to 16 decimals for alpha channel when parsing rgba strings to colors ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#6117](https://github.com/openlayers/openlayers/pull/6117) - Update handlebars to version 4.0.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6113](https://github.com/openlayers/openlayers/pull/6113) - Smooth trackpad zooming ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6105](https://github.com/openlayers/openlayers/pull/6105) - Move vector tile loader functions into vector tile module ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6114](https://github.com/openlayers/openlayers/pull/6114) - Updated linter config and curly conditional blocks ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6106](https://github.com/openlayers/openlayers/pull/6106) - Add type annotations for vector tiles ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6107](https://github.com/openlayers/openlayers/pull/6107) - Reset hint first and notify of change when cancelling animations ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6112](https://github.com/openlayers/openlayers/pull/6112) - Update eslint to version 3.10.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6110](https://github.com/openlayers/openlayers/pull/6110) - Update coveralls to version 2.11.15 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6077](https://github.com/openlayers/openlayers/pull/6077) - Optionally enable hidpi support for Bing ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#6103](https://github.com/openlayers/openlayers/pull/6103) - Properly complete multiple parallel animations ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6101](https://github.com/openlayers/openlayers/pull/6101) - Avoid starting new zoom animation while already animating ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6099](https://github.com/openlayers/openlayers/pull/6099) - Modify interaction tests : check for change events ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6069](https://github.com/openlayers/openlayers/pull/6069) - If there is no features option, all features will be translated. ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6097](https://github.com/openlayers/openlayers/pull/6097) - API index page : Fix link anchor to static members ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6095](https://github.com/openlayers/openlayers/pull/6095) - LineString Arrows example: rotate with the view ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6093](https://github.com/openlayers/openlayers/pull/6093) - Update mustache to version 2.3.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6079](https://github.com/openlayers/openlayers/pull/6079) - Add view animation ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6081](https://github.com/openlayers/openlayers/pull/6081) - Update metalsmith-layouts to version 1.7.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6074](https://github.com/openlayers/openlayers/pull/6074) - Fix typo on style name on Modify Features Test example ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6073](https://github.com/openlayers/openlayers/pull/6073) - Fix link to errors doc ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6072](https://github.com/openlayers/openlayers/pull/6072) - Update metalsmith to version 2.3.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6068](https://github.com/openlayers/openlayers/pull/6068) - Fix GeoJSON writeGeometry tests ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6067](https://github.com/openlayers/openlayers/pull/6067) - Do not draw circle when pointer not moved ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6064](https://github.com/openlayers/openlayers/pull/6064) - Make vertex candidate selection work better on rotated views ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6054](https://github.com/openlayers/openlayers/pull/6054) - Update eslint to version 3.9.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6058](https://github.com/openlayers/openlayers/pull/6058) - Update fs-extra to version 1.0.0 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6053](https://github.com/openlayers/openlayers/pull/6053) - Update glob to version 7.1.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6045](https://github.com/openlayers/openlayers/pull/6045) - Add an example using Mapbox Terrain-RGB tiles ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6042](https://github.com/openlayers/openlayers/pull/6042) - Set constants of KML format even if a default style is provided ([@oterral](https://github.com/oterral))
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# v3.20.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.19.1 release is a patch release that addresses two regressions in the v3.19.0 release. See the [v3.20.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v3.20.0) for details on upgrading from v3.19.x.
|
|
||||||
|
|
||||||
## Fixes
|
|
||||||
|
|
||||||
* [#6280](https://github.com/openlayers/openlayers/pull/6280) - Continue loading tiles when image is not ready yet ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6283](https://github.com/openlayers/openlayers/pull/6283) - Avoid modifying coordinate in forEachLayerAtCoordinate ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
## Upgrade notes
|
|
||||||
|
|
||||||
* The `ol.events.condition.mouseMove` function was replaced by `ol.events.condition.pointerMove` (see [#3281](https://github.com/openlayers/openlayers/pull/3281)). For example, if you use `ol.events.condition.mouseMove` as the condition in a `Select` interaction then you now need to use `ol.events.condition.pointerMove`:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var selectInteraction = new ol.interaction.Select({
|
|
||||||
condition: ol.events.condition.pointerMove
|
|
||||||
// …
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
## Overview of all changes
|
|
||||||
|
|
||||||
* [#3263](https://github.com/openlayers/openlayers/pull/3263) - Support ArcGIS Rest Services ([@cwgrant](https://github.com/cwgrant))
|
|
||||||
* [#3295](https://github.com/openlayers/openlayers/pull/3295) - Add RESTful to WMTS GetCapabilities optionsFromCapabilities ([@sarametz](https://github.com/sarametz))
|
|
||||||
* [#3304](https://github.com/openlayers/openlayers/pull/3304) - Remove scale line inner padding ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3296](https://github.com/openlayers/openlayers/pull/3296) - Add upgrade-notes.md file ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3303](https://github.com/openlayers/openlayers/pull/3303) - Add constant for us-ft units ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3018](https://github.com/openlayers/openlayers/pull/3018) - Add SelectEvent to interaction ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3301](https://github.com/openlayers/openlayers/pull/3301) - Select interaction unit tests ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3298](https://github.com/openlayers/openlayers/pull/3298) - Make ol.source.Source inherit from ol.Object ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3297](https://github.com/openlayers/openlayers/pull/3297) - Add getters to ol.source.WMTS ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3281](https://github.com/openlayers/openlayers/pull/3281) - Fix mouseMove event type comparison for IE10-11, pointermove ([@adube](https://github.com/adube))
|
|
||||||
* [#3293](https://github.com/openlayers/openlayers/pull/3293) - Add missing opacity option for ol.style.IconOptions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3284](https://github.com/openlayers/openlayers/pull/3284) - Fix jsdoc type for arrays of listening keys ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3278](https://github.com/openlayers/openlayers/pull/3278) - Add goog.provide for ol.DrawEventType ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3272](https://github.com/openlayers/openlayers/pull/3272) - Added getter function to return the wrapped source within the cluster ([@acanimal](https://github.com/acanimal))
|
|
||||||
* [#3275](https://github.com/openlayers/openlayers/pull/3275) - Add ol.layer.Heatmap#blur getter and setter ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3142](https://github.com/openlayers/openlayers/pull/3142) - WMTS Get Cap document with updated WMTS.optionsFromCapabilities function ([@sarametz](https://github.com/sarametz))
|
|
||||||
* [#3271](https://github.com/openlayers/openlayers/pull/3271) - [wip] Fix misplaced comment blocks ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3273](https://github.com/openlayers/openlayers/pull/3273) - Remove unused createGetTileIfLoadedFunction function. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3270](https://github.com/openlayers/openlayers/pull/3270) - Make ol.Overlay autoPan default to false ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3268](https://github.com/openlayers/openlayers/pull/3268) - Fix autoPan in examples with ol.Overlay on hover ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3256](https://github.com/openlayers/openlayers/pull/3256) - Add autoPan option to ol.Overlay ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3261](https://github.com/openlayers/openlayers/pull/3261) - Fix forEachCorner extent, add TopLeft ([@adube](https://github.com/adube))
|
|
||||||
* [#3260](https://github.com/openlayers/openlayers/pull/3260) - Remove unused goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3246](https://github.com/openlayers/openlayers/pull/3246) - Avoid creating unnecessary images in tile layers. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3254](https://github.com/openlayers/openlayers/pull/3254) - Use lineCap, lineJoin and miterLimit stroke properties in RegularShape ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3252](https://github.com/openlayers/openlayers/pull/3252) - Avoid leaking global listenerSpy. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3248](https://github.com/openlayers/openlayers/pull/3248) - Add tile loading events to image tile sources. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3240](https://github.com/openlayers/openlayers/pull/3240) - Changes from the v3.2.x branch. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#3233](https://github.com/openlayers/openlayers/pull/3233) - Four small fixes. ([@stweil](https://github.com/stweil))
|
|
||||||
* [#3232](https://github.com/openlayers/openlayers/pull/3232) - Fix typos found by codespell. ([@stweil](https://github.com/stweil))
|
|
||||||
* [#3231](https://github.com/openlayers/openlayers/pull/3231) - Make ol.layer.Heatmap#radius configurable ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3225](https://github.com/openlayers/openlayers/pull/3225) - Respect attributions passed to TileJSON source. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3223](https://github.com/openlayers/openlayers/pull/3223) - Resize the canvas when the tile size changes. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3224](https://github.com/openlayers/openlayers/pull/3224) - Provide the ability to get the layer name from a MapQuest source ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3222](https://github.com/openlayers/openlayers/pull/3222) - Add geodesic option for measure ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3221](https://github.com/openlayers/openlayers/pull/3221) - Select the uppermost feature ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3211](https://github.com/openlayers/openlayers/pull/3211) - Bing https logo fix. ([@photostu](https://github.com/photostu))
|
|
||||||
* [#3215](https://github.com/openlayers/openlayers/pull/3215) - Allow reuse of layer rendering code without creating a map. ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
## Overview of all changes
|
|
||||||
|
|
||||||
* [#3383](https://github.com/openlayers/openlayers/pull/3383) - GML3 tests time out in unit tests ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3401](https://github.com/openlayers/openlayers/pull/3401) - Allow GeoJSON to be serialized according to the right-hand rule. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3403](https://github.com/openlayers/openlayers/pull/3403) - Remove unused goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3362](https://github.com/openlayers/openlayers/pull/3362) - Configure proj4 options and transforms upon construction ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3394](https://github.com/openlayers/openlayers/pull/3394) - Fix fullscreen pseudo CSS class name ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3399](https://github.com/openlayers/openlayers/pull/3399) - Clarify when widths need to be configured on a tile grid ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3398](https://github.com/openlayers/openlayers/pull/3398) - Make sure that the return value of wrapX() is stable ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3396](https://github.com/openlayers/openlayers/pull/3396) - Move the compare function out of ol.interaction.Modify.handleDownEvent_ ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3395](https://github.com/openlayers/openlayers/pull/3395) - ol.Interaction.Modify fixes ([@fperucic](https://github.com/fperucic))
|
|
||||||
* [#3387](https://github.com/openlayers/openlayers/pull/3387) - Add wrapX option for ol.source.WMTS ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3393](https://github.com/openlayers/openlayers/pull/3393) - Remove unused define ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3392](https://github.com/openlayers/openlayers/pull/3392) - Fix switching class name of full-screen control ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3391](https://github.com/openlayers/openlayers/pull/3391) - Minor code cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3388](https://github.com/openlayers/openlayers/pull/3388) - Add new geometry layout option for polyline format ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3385](https://github.com/openlayers/openlayers/pull/3385) - Fix ol.tilegrid.TileGrid#getZForResolution ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3377](https://github.com/openlayers/openlayers/pull/3377) - Support wrapX for attributions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3382](https://github.com/openlayers/openlayers/pull/3382) - Create github source links ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3376](https://github.com/openlayers/openlayers/pull/3376) - Add ol.source.Tile support for wrapping around the x-axis ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3378](https://github.com/openlayers/openlayers/pull/3378) - Clarify where to ask questions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3380](https://github.com/openlayers/openlayers/pull/3380) - Test the GeoJSON layout ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3360](https://github.com/openlayers/openlayers/pull/3360) - Don't unlisten image twice when disposing an ol.ImageTile ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3361](https://github.com/openlayers/openlayers/pull/3361) - Listen on localhost to avoid phantomjs browsing 0.0.0.0 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3365](https://github.com/openlayers/openlayers/pull/3365) - Better docs for #getPointResolution ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3363](https://github.com/openlayers/openlayers/pull/3363) - New ol.proj features ([@bill-chadwick](https://github.com/bill-chadwick))
|
|
||||||
* [#3305](https://github.com/openlayers/openlayers/pull/3305) - Add image loading events to image sources (r=@ahocevar,@elemoine) ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3343](https://github.com/openlayers/openlayers/pull/3343) - Line arrows example ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3354](https://github.com/openlayers/openlayers/pull/3354) - Mark ol.format.GeoJSON#writeFeature(s) option param optional ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3346](https://github.com/openlayers/openlayers/pull/3346) - Set the 'properties' member to null if the feature has not properties ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3344](https://github.com/openlayers/openlayers/pull/3344) - Minor code cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3237](https://github.com/openlayers/openlayers/pull/3237) - Add circles to Draw interaction. ([@Morgul](https://github.com/Morgul))
|
|
||||||
* [#2691](https://github.com/openlayers/openlayers/pull/2691) - Add will-change CSS properties ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3336](https://github.com/openlayers/openlayers/pull/3336) - Use ol.Map#getTargetElement function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3335](https://github.com/openlayers/openlayers/pull/3335) - Update rbush to version 1.3.5 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3322](https://github.com/openlayers/openlayers/pull/3322) - Remove unneeded map.isDef call ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3327](https://github.com/openlayers/openlayers/pull/3327) - Add css to dist directory ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3324](https://github.com/openlayers/openlayers/pull/3324) - Add interface definition for ol.SelectEvent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3315](https://github.com/openlayers/openlayers/pull/3315) - Fix Tissot indicatrix example description ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3312](https://github.com/openlayers/openlayers/pull/3312) - Fix HiDPI support for ArcGIS REST ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#2910](https://github.com/openlayers/openlayers/pull/2910) - Support multiple featureTpes in GML parser ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3309](https://github.com/openlayers/openlayers/pull/3309) - Fix select event always reporting as multi select ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3307](https://github.com/openlayers/openlayers/pull/3307) - Handle all non-degree units in ol.control.ScaleLine ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,289 +0,0 @@
|
|||||||
# v3.5.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The 3.5.0 release includes features and fixes from a whopping 129 pull requests since 3.4.0. This release removes a number of "experimental" features from the API, so take a close look at the notes below when upgrading.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
### `ol.Object` and `bindTo`
|
|
||||||
|
|
||||||
* The following experimental methods have been removed from `ol.Object`: `bindTo`, `unbind`, and `unbindAll`. If you want to get notification about `ol.Object` property changes, you can listen for the `'propertychange'` event (e.g. `object.on('propertychange', listener)`). Two-way binding can be set up at the application level using property change listeners. See [#3472](https://github.com/openlayers/openlayers/pull/3472) for details on the change.
|
|
||||||
|
|
||||||
* The experimental `ol.dom.Input` component has been removed. If you need to synchronize the state of a dom Input element with an `ol.Object`, this can be accomplished using listeners for change events. For example, you might bind the state of a checkbox type input with a layer's visibility like this:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var layer = new ol.layer.Tile();
|
|
||||||
var checkbox = document.querySelector('#checkbox');
|
|
||||||
|
|
||||||
checkbox.addEventListener('change', function() {
|
|
||||||
var checked = this.checked;
|
|
||||||
if (checked !== layer.getVisible()) {
|
|
||||||
layer.setVisible(checked);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
layer.on('change:visible', function() {
|
|
||||||
var visible = this.getVisible();
|
|
||||||
if (visible !== checkbox.checked) {
|
|
||||||
checkbox.checked = visible;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### New Vector API
|
|
||||||
|
|
||||||
* The following experimental vector classes have been removed: `ol.source.GeoJSON`, `ol.source.GML`, `ol.source.GPX`, `ol.source.IGC`, `ol.source.KML`, `ol.source.OSMXML`, and `ol.source.TopoJSON`. You now will use `ol.source.Vector` instead.
|
|
||||||
|
|
||||||
For example, if you used `ol.source.GeoJSON` as follows:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.GeoJSON({
|
|
||||||
url: 'features.json',
|
|
||||||
projection: 'EPSG:3857'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
you will need to change your code to:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector({
|
|
||||||
url: 'features.json',
|
|
||||||
format: new ol.format.GeoJSON()
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
See https://openlayers.org/en/master/examples/vector-layer.html for a real example.
|
|
||||||
|
|
||||||
Note that you no longer need to set a `projection` on the source!
|
|
||||||
|
|
||||||
Previously the vector data was loaded at source construction time, and, if the data projection and the source projection were not the same, the vector data was transformed to the source projection before being inserted (as features) into the source.
|
|
||||||
|
|
||||||
The vector data is now loaded at render time, when the view projection is known. And the vector data is transformed to the view projection if the data projection and the source projection are not the same.
|
|
||||||
|
|
||||||
If you still want to "eagerly" load the source you will use something like this:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector();
|
|
||||||
$.ajax('features.json').then(function(response) {
|
|
||||||
var geojsonFormat = new ol.format.GeoJSON();
|
|
||||||
var features = geojsonFormat.readFeatures(response,
|
|
||||||
{featureProjection: 'EPSG:3857'});
|
|
||||||
source.addFeatures(features);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
The above code uses jQuery to send an Ajax request, but you can obviously use any Ajax library.
|
|
||||||
|
|
||||||
See https://openlayers.org/en/master/examples/igc.html for a real example.
|
|
||||||
|
|
||||||
* Note about KML
|
|
||||||
|
|
||||||
If you used `ol.source.KML`'s `extractStyles` or `defaultStyle` options, you will now have to set these options on `ol.format.KML` instead. For example, if you used:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.KML({
|
|
||||||
url: 'features.kml',
|
|
||||||
extractStyles: false,
|
|
||||||
projection: 'EPSG:3857'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
you will now use:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector({
|
|
||||||
url: 'features.kml',
|
|
||||||
format: new ol.format.KML({
|
|
||||||
extractStyles: false
|
|
||||||
})
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
* The `ol.source.ServerVector` class has been removed. If you used it, for example as follows:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.ServerVector({
|
|
||||||
format: new ol.format.GeoJSON(),
|
|
||||||
loader: function(extent, resolution, projection) {
|
|
||||||
var url = …;
|
|
||||||
$.ajax(url).then(function(response) {
|
|
||||||
source.addFeatures(source.readFeatures(response));
|
|
||||||
});
|
|
||||||
},
|
|
||||||
strategy: ol.loadingstrategy.bbox,
|
|
||||||
projection: 'EPSG:3857'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
you will need to change your code to:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var source = new ol.source.Vector({
|
|
||||||
loader: function(extent, resolution, projection) {
|
|
||||||
var url = …;
|
|
||||||
$.ajax(url).then(function(response) {
|
|
||||||
var format = new ol.format.GeoJSON();
|
|
||||||
var features = format.readFeatures(response,
|
|
||||||
{featureProjection: projection});
|
|
||||||
source.addFeatures(features);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
strategy: ol.loadingstrategy.bbox
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
See https://openlayers.org/en/master/examples/vector-osm.html for a real example.
|
|
||||||
|
|
||||||
* The experimental `ol.loadingstrategy.createTile` function has been renamed to `ol.loadingstrategy.tile`. The signature of the function hasn't changed. See https://openlayers.org/en/master/examples/vector-osm.html for an example.
|
|
||||||
|
|
||||||
### Change to `ol.style.Icon`
|
|
||||||
|
|
||||||
* When manually loading an image for `ol.style.Icon`, the image size should now be set
|
|
||||||
with the `imgSize` option and not with `size`. `size` is supposed to be used for the
|
|
||||||
size of a sub-rectangle in an image sprite.
|
|
||||||
|
|
||||||
### Support for non-square tiles
|
|
||||||
|
|
||||||
The return value of `ol.tilegrid.TileGrid#getTileSize()` will now be an `ol.Size` array instead of a number if non-square tiles (i.e. an `ol.Size` array instead of a number as `tilsSize`) are used. To always get an `ol.Size`, the new `ol.size.toSize()` was added.
|
|
||||||
|
|
||||||
### Change to `ol.interaction.Draw`
|
|
||||||
|
|
||||||
When finishing a draw, the `drawend` event is now dispatched before the feature is inserted to either the source or the collection. This change allows application code to finish setting up the feature.
|
|
||||||
|
|
||||||
### Misc.
|
|
||||||
|
|
||||||
If you compile your application together with the library and use the `ol.feature.FeatureStyleFunction` type annotation (this should be extremely rare), the type is now named `ol.FeatureStyleFunction`.
|
|
||||||
|
|
||||||
## New features and fixes
|
|
||||||
|
|
||||||
* [#3646](https://github.com/openlayers/openlayers/pull/3646) - Use graceful-fs in place of fs ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3645](https://github.com/openlayers/openlayers/pull/3645) - Fix test-coverage.js script ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3640](https://github.com/openlayers/openlayers/pull/3640) - Make make fail on requires and whitespace errors ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3644](https://github.com/openlayers/openlayers/pull/3644) - added altclick select to selectfeatures example ([@t27](https://github.com/t27))
|
|
||||||
* [#3612](https://github.com/openlayers/openlayers/pull/3612) - Add ol.source.WMTS#getUrls and getRequestEncoding ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3616](https://github.com/openlayers/openlayers/pull/3616) - Add support for freehand drawing to the Draw interaction ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3634](https://github.com/openlayers/openlayers/pull/3634) - Remove unused local variable ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3629](https://github.com/openlayers/openlayers/pull/3629) - Problems with XYZ coordinates in snap interaction ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3633](https://github.com/openlayers/openlayers/pull/3633) - Add a Makefile section to .editorconfig ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3632](https://github.com/openlayers/openlayers/pull/3632) - Make host-examples target copy index.js ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3631](https://github.com/openlayers/openlayers/pull/3631) - Restore Modify interaction constructor test ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3630](https://github.com/openlayers/openlayers/pull/3630) - Initial tests for Modify interaction vertex creation ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3527](https://github.com/openlayers/openlayers/pull/3527) - Replace pake with make? ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3624](https://github.com/openlayers/openlayers/pull/3624) - Add a one sentence summary for several exportable symbols ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3623](https://github.com/openlayers/openlayers/pull/3623) - OpenLayers overwrites WMS format_options instead of extending them. ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3621](https://github.com/openlayers/openlayers/pull/3621) - Fix typo in documentation comment ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#3614](https://github.com/openlayers/openlayers/pull/3614) - GML2 parser does not parse all features ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3619](https://github.com/openlayers/openlayers/pull/3619) - Add a one sentence summary for ol.geom.* exportable symbols ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3618](https://github.com/openlayers/openlayers/pull/3618) - Replace non-breaking space (U+00A0) with regular space (U+0020). ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3617](https://github.com/openlayers/openlayers/pull/3617) - Add ol.size.hasArea. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3597](https://github.com/openlayers/openlayers/pull/3597) - Remove dead link in api doc ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3613](https://github.com/openlayers/openlayers/pull/3613) - Add a one sentence summary for ol.interaction* exportable symbols ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3611](https://github.com/openlayers/openlayers/pull/3611) - Improve error handling in Esri JSON format ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3560](https://github.com/openlayers/openlayers/pull/3560) - Add an example showing how to create a permalink ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3571](https://github.com/openlayers/openlayers/pull/3571) - Add wrapX support for vector layers (canvas renderer only) ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3605](https://github.com/openlayers/openlayers/pull/3605) - vector-esri-edit.html uses non api method ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3602](https://github.com/openlayers/openlayers/pull/3602) - Rename ol.feature.FeatureStyleFunction to ol.FeatureStyleFunction. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3604](https://github.com/openlayers/openlayers/pull/3604) - Add charset so that zoom out button shows correctly ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3603](https://github.com/openlayers/openlayers/pull/3603) - Reformat upgrade-notes.md ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3599](https://github.com/openlayers/openlayers/pull/3599) - Improve docs for source.Vector options ([@probins](https://github.com/probins))
|
|
||||||
* [#3598](https://github.com/openlayers/openlayers/pull/3598) - Remove unnecessary entry in `.gitignore`. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3595](https://github.com/openlayers/openlayers/pull/3595) - Add featureloader.jsdoc ([@probins](https://github.com/probins))
|
|
||||||
* [#3593](https://github.com/openlayers/openlayers/pull/3593) - Add /examples/index.js to .gitignore ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3592](https://github.com/openlayers/openlayers/pull/3592) - Remove reference to binding in Collection docs ([@probins](https://github.com/probins))
|
|
||||||
* [#3591](https://github.com/openlayers/openlayers/pull/3591) - Only draw the layer if visible and inside the resolution range ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3528](https://github.com/openlayers/openlayers/pull/3528) - Fix memory leak when removing layers from ol.layer.Group ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3549](https://github.com/openlayers/openlayers/pull/3549) - Move ol.*_DURATION const to a constructor option ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3587](https://github.com/openlayers/openlayers/pull/3587) - Handle left/right segment intersections for top/bottom spans. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3516](https://github.com/openlayers/openlayers/pull/3516) - Remove ol.format.BinaryFeature. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3586](https://github.com/openlayers/openlayers/pull/3586) - Simplify dragAndDropInteraction in examples. ([@probins](https://github.com/probins))
|
|
||||||
* [#3555](https://github.com/openlayers/openlayers/pull/3555) - Esri JSON support ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3583](https://github.com/openlayers/openlayers/pull/3583) - Add a one sentence summary for ol.proj.* and ol.layer.* exportable symbols ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3581](https://github.com/openlayers/openlayers/pull/3581) - Always show links to related API documentation. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3582](https://github.com/openlayers/openlayers/pull/3582) - Index what the examples require. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3580](https://github.com/openlayers/openlayers/pull/3580) - Add a one sentence summary for ol.source.* exportable symbols ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3551](https://github.com/openlayers/openlayers/pull/3551) - Automatically add links to API-docs in examples ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3575](https://github.com/openlayers/openlayers/pull/3575) - Check proj equivalence by code. ([@nd0ut](https://github.com/nd0ut))
|
|
||||||
* [#3579](https://github.com/openlayers/openlayers/pull/3579) - Use HTTPS were available. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3558](https://github.com/openlayers/openlayers/pull/3558) - Example sources in examples dir and built examples in build/examples. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3550](https://github.com/openlayers/openlayers/pull/3550) - Reduce differences between the rendering test runner and the standard test runner. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3576](https://github.com/openlayers/openlayers/pull/3576) - Add KML options related note the upgrade notes ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3573](https://github.com/openlayers/openlayers/pull/3573) - Modify draw interaction dispatch order ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3572](https://github.com/openlayers/openlayers/pull/3572) - Do not return a null tileSize ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3570](https://github.com/openlayers/openlayers/pull/3570) - Add missing @api ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3569](https://github.com/openlayers/openlayers/pull/3569) - Fix link to Bootstrap documentation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3559](https://github.com/openlayers/openlayers/pull/3559) - Add support for non-square tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3568](https://github.com/openlayers/openlayers/pull/3568) - Move extractStyles option to ol.format.KML ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3562](https://github.com/openlayers/openlayers/pull/3562) - Simplify .ol-zoomslider and .ol-overviewmap CSS ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3565](https://github.com/openlayers/openlayers/pull/3565) - Move extractStyles option to ol.format.KML ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3523](https://github.com/openlayers/openlayers/pull/3523) - Update proj4 version to 2.3.6 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3556](https://github.com/openlayers/openlayers/pull/3556) - Minor TileUTFGrid error fix ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#3557](https://github.com/openlayers/openlayers/pull/3557) - Update FastClick externs to version 1.0.6 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3517](https://github.com/openlayers/openlayers/pull/3517) - Add tests for previously untested classes ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3548](https://github.com/openlayers/openlayers/pull/3548) - Write the error stack instead of the error itself. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3542](https://github.com/openlayers/openlayers/pull/3542) - Generate example index and rebuild examples on source changes. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3530](https://github.com/openlayers/openlayers/pull/3530) - external resources not correctly in inline source of example ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3448](https://github.com/openlayers/openlayers/pull/3448) - Fix WebGL image layer rendering on retina displays ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3544](https://github.com/openlayers/openlayers/pull/3544) - Update comments about remaining GeoJSON work. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3531](https://github.com/openlayers/openlayers/pull/3531) - Fix PointerEventHandler exception with Overlay containing SVG and IE9 ([@mantonovic](https://github.com/mantonovic))
|
|
||||||
* [#3521](https://github.com/openlayers/openlayers/pull/3521) - Remove goog.isDefAndNotNull test on ol.layer.Group#getLayers result ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3481](https://github.com/openlayers/openlayers/pull/3481) - Proposal for a simpler vector API ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3472](https://github.com/openlayers/openlayers/pull/3472) - Remove the experimental bindTo method from ol.Object. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3505](https://github.com/openlayers/openlayers/pull/3505) - Add a Create Custom Builds tutorial ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3513](https://github.com/openlayers/openlayers/pull/3513) - Remove layerGroup.setLayers(null) test ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3511](https://github.com/openlayers/openlayers/pull/3511) - Add goog.provide's ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3509](https://github.com/openlayers/openlayers/pull/3509) - Dispatch change event even when geometry is set to null ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3510](https://github.com/openlayers/openlayers/pull/3510) - Use sinon.spy to ensure change event is dispatched ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3504](https://github.com/openlayers/openlayers/pull/3504) - Rework build-examples.js task. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3470](https://github.com/openlayers/openlayers/pull/3470) - Add rendering tests ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3413](https://github.com/openlayers/openlayers/pull/3413) - Add support for generic external modules with Browserify ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3503](https://github.com/openlayers/openlayers/pull/3503) - Use vector source instead of feature overlay in snap example. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3495](https://github.com/openlayers/openlayers/pull/3495) - Initial basic project setup tutorial ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3488](https://github.com/openlayers/openlayers/pull/3488) - Add docs for exportable symbols. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3441](https://github.com/openlayers/openlayers/pull/3441) - Add a "Compile Application and OpenLayers Together" tutorial ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3499](https://github.com/openlayers/openlayers/pull/3499) - Update to closure-util 1.4.0 ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3494](https://github.com/openlayers/openlayers/pull/3494) - Mark VectorContext @api ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3409](https://github.com/openlayers/openlayers/pull/3409) - AssertionError in WMTS.optionsFromCapabilities. ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3493](https://github.com/openlayers/openlayers/pull/3493) - Add image loading events to ol.source.ImageStatic ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3490](https://github.com/openlayers/openlayers/pull/3490) - Add .editorconfig and instructions on its use. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3489](https://github.com/openlayers/openlayers/pull/3489) - Use an abstract base class instead of IVectorContext. ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3483](https://github.com/openlayers/openlayers/pull/3483) - Clarify view.setRotation docs ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3485](https://github.com/openlayers/openlayers/pull/3485) - build.py graceful interrupt ([@malaretv](https://github.com/malaretv))
|
|
||||||
* [#3484](https://github.com/openlayers/openlayers/pull/3484) - Make sure we copy the example css if it exists ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3462](https://github.com/openlayers/openlayers/pull/3462) - Remove ol.format.GMLBase from the API ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3445](https://github.com/openlayers/openlayers/pull/3445) - Start a FAQ document. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3468](https://github.com/openlayers/openlayers/pull/3468) - Use the coveralls executable. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3415](https://github.com/openlayers/openlayers/pull/3415) - Stable Only unchecked by default. ([@malaretv](https://github.com/malaretv))
|
|
||||||
* [#3420](https://github.com/openlayers/openlayers/pull/3420) - Unregister viewport size listener on setTarget(null) ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3456](https://github.com/openlayers/openlayers/pull/3456) - Updated menu on the JSDOC template (non-responsive) ([@klokan](https://github.com/klokan))
|
|
||||||
* [#3475](https://github.com/openlayers/openlayers/pull/3475) - Template examples ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#3455](https://github.com/openlayers/openlayers/pull/3455) - Fix pre-loaded icons images for WebGL ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3473](https://github.com/openlayers/openlayers/pull/3473) - Add more tests for ol.coordinate. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3464](https://github.com/openlayers/openlayers/pull/3464) - Mark more of the API stable. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3469](https://github.com/openlayers/openlayers/pull/3469) - Update README. ([@malaretv](https://github.com/malaretv))
|
|
||||||
* [#3467](https://github.com/openlayers/openlayers/pull/3467) - Update the coveralls badge. ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#3466](https://github.com/openlayers/openlayers/pull/3466) - Include coveralls code-coverage badge in README. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3457](https://github.com/openlayers/openlayers/pull/3457) - Integrate istanbul for test coverage ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3446](https://github.com/openlayers/openlayers/pull/3446) - Add updateWhileInteracting to olx.layer.VectorOptions ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3438](https://github.com/openlayers/openlayers/pull/3438) - Parser documentation and XML readme ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3449](https://github.com/openlayers/openlayers/pull/3449) - Fix assertion message ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3440](https://github.com/openlayers/openlayers/pull/3440) - Add fromLonLat and toLonLat convenience functions ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3423](https://github.com/openlayers/openlayers/pull/3423) - Parse extrude and altitude mode ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3431](https://github.com/openlayers/openlayers/pull/3431) - Better typing ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3436](https://github.com/openlayers/openlayers/pull/3436) - Mention readme.md files as help for contributors ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3433](https://github.com/openlayers/openlayers/pull/3433) - Add missing goog.provide/goog.require ol.source.TileEvent ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3422](https://github.com/openlayers/openlayers/pull/3422) - Fix Select behavior when multi is false ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3428](https://github.com/openlayers/openlayers/pull/3428) - Reorder assertions and variable declarations. ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3414](https://github.com/openlayers/openlayers/pull/3414) - Add missing ol.style.AtlasManager goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3429](https://github.com/openlayers/openlayers/pull/3429) - Adding missing provide for SelectFilterFunction ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3426](https://github.com/openlayers/openlayers/pull/3426) - Add assertion messages for all assertion statements ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3425](https://github.com/openlayers/openlayers/pull/3425) - Fix typo in ol.js ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3424](https://github.com/openlayers/openlayers/pull/3424) - Remove `@api` annotation from `ol.WEBGL_MAX_TEXTURE_SIZE`. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3419](https://github.com/openlayers/openlayers/pull/3419) - Remove describe.only ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3417](https://github.com/openlayers/openlayers/pull/3417) - ol.interaction.Snap extent fix ([@fperucic](https://github.com/fperucic))
|
|
||||||
* [#3410](https://github.com/openlayers/openlayers/pull/3410) - Add ol.Object.unset() method ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3402](https://github.com/openlayers/openlayers/pull/3402) - Add "filter" option to Select interaction ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3416](https://github.com/openlayers/openlayers/pull/3416) - Remove unnecessary typecasts in examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3411](https://github.com/openlayers/openlayers/pull/3411) - Listen for a 'change:geometry' event ([@fperucic](https://github.com/fperucic))
|
|
||||||
* [#3109](https://github.com/openlayers/openlayers/pull/3109) - Snap feature ([@fperucic](https://github.com/fperucic))
|
|
||||||
* [#3407](https://github.com/openlayers/openlayers/pull/3407) - Add v3.4.0 empty section to upgrade notes ([@bartvde](https://github.com/bartvde))
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# v3.6.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.6.0 release includes features and fixes from 40 pull requests since v3.5.0. To simplify the code base, there were some changes to "experimental" features. Please follow the upgrade notes to make your applications work with the latest release.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
### `ol.interaction.Draw` changes
|
|
||||||
|
|
||||||
* The `minPointsPerRing` config option has been renamed to `minPoints`. It is now also available for linestring drawing, not only for polygons.
|
|
||||||
* The `ol.DrawEvent` and `ol.DrawEventType` types were renamed to `ol.interaction.DrawEvent` and `ol.interaction.DrawEventType`. This has an impact on your code only if your code is compiled together with OpenLayers.
|
|
||||||
|
|
||||||
### `ol.tilegrid` changes
|
|
||||||
|
|
||||||
* The `ol.tilegrid.XYZ` constructor has been replaced by a static `ol.tilegrid.createXYZ()` function. The `ol.tilegrid.createXYZ()` function takes the same arguments as the previous `ol.tilegrid.XYZ` constructor, but returns an `ol.tilegrid.TileGrid` instance.
|
|
||||||
* The internal tile coordinate scheme for XYZ sources has been changed. Previously, the `y` of tile coordinates was transformed to the coordinates used by sources by calculating `-y-1`. Now, it is transformed by calculating `height-y-1`, where height is the number of rows of the tile grid at the zoom level of the tile coordinate.
|
|
||||||
* The `widths` constructor option of `ol.tilegrid.TileGrid` and subclasses is no longer available, and it is no longer necessary to get proper wrapping at the 180° meridian. However, for `ol.tilegrid.WMTS`, there is a new option `sizes`, where each entry is an `ol.Size` with the `width` ('TileMatrixWidth' in WMTS capabilities) as first and the `height` ('TileMatrixHeight') as second entry of the array. For other tile grids, users can
|
|
||||||
now specify an `extent` instead of `widths`. These settings are used to restrict the range of tiles that sources will request.
|
|
||||||
* For `ol.source.TileWMS`, the default value of `warpX` used to be `undefined`, meaning that WMS requests with out-of-extent tile BBOXes would be sent. Now `wrapX` can only be `true` or `false`, and the new default is `true`. No application code changes should be required, but the resulting WMS requests for out-of-extent tiles will no longer use out-of-extent BBOXes, but ones that are shifted to real-world coordinates.
|
|
||||||
|
|
||||||
## New features and fixes
|
|
||||||
|
|
||||||
* [#3764](https://github.com/openlayers/openlayers/pull/3764) - Add tests and implementation for intersectsExtent (ol.geom.Geometry) ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#3757](https://github.com/openlayers/openlayers/pull/3757) - Add mapBrowserEvent as a member of ol.SelectEvent ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3759](https://github.com/openlayers/openlayers/pull/3759) - Mark tilegrid.createTileCoordTransform() @api ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3747](https://github.com/openlayers/openlayers/pull/3747) - Make tileCoordTransform a member again ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3751](https://github.com/openlayers/openlayers/pull/3751) - Do not rely on remote services for tests ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3749](https://github.com/openlayers/openlayers/pull/3749) - Fix typo in API docs ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3739](https://github.com/openlayers/openlayers/pull/3739) - Simplify detection of scientific notation in WKT format ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3741](https://github.com/openlayers/openlayers/pull/3741) - Enhance docs of arguments and return values of callbacks / filters ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3740](https://github.com/openlayers/openlayers/pull/3740) - Add @fires to select interaction ([@probins](https://github.com/probins))
|
|
||||||
* [#3738](https://github.com/openlayers/openlayers/pull/3738) - Improve doucmentation for ol.TileUrlFunctionType ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3736](https://github.com/openlayers/openlayers/pull/3736) - Fix invalid example HTML markup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3735](https://github.com/openlayers/openlayers/pull/3735) - Snap example: remove featureoverlay from tags ([@probins](https://github.com/probins))
|
|
||||||
* [#3732](https://github.com/openlayers/openlayers/pull/3732) - Add a method to bind button bluring on mouseout/focusout ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3659](https://github.com/openlayers/openlayers/pull/3659) - Revert "Implement ol.renderer.Layer#forEachFeatureAtCoordinate" ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3683](https://github.com/openlayers/openlayers/pull/3683) - Improve Map docs for layers and layergroups ([@probins](https://github.com/probins))
|
|
||||||
* [#3720](https://github.com/openlayers/openlayers/pull/3720) - Add missing goog.provides in drawinteraction.js ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3725](https://github.com/openlayers/openlayers/pull/3725) - Document default value for olx.interaction.ModifyOptions#pixelTolerance ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3722](https://github.com/openlayers/openlayers/pull/3722) - Use the correct TileCoord transform function ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3692](https://github.com/openlayers/openlayers/pull/3692) - Updates for building on Windows using Cygwin. ([@bill-chadwick](https://github.com/bill-chadwick))
|
|
||||||
* [#3718](https://github.com/openlayers/openlayers/pull/3718) - Add a assertion for renderOrder ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3711](https://github.com/openlayers/openlayers/pull/3711) - Fix and test ol.color.blend ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3673](https://github.com/openlayers/openlayers/pull/3673) - More control over ol.interaction.Draw, to allow e.g. square drawing ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3710](https://github.com/openlayers/openlayers/pull/3710) - Add more tests for ol.extent ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3709](https://github.com/openlayers/openlayers/pull/3709) - vector-wfs example does not work in JSFiddle ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3699](https://github.com/openlayers/openlayers/pull/3699) - Add support for scientific notation to WKT format ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3696](https://github.com/openlayers/openlayers/pull/3696) - Add an example for various blend modes ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3697](https://github.com/openlayers/openlayers/pull/3697) - Use a valid SPDX license expression ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3694](https://github.com/openlayers/openlayers/pull/3694) - Correct typo in upgrade-notes ([@probins](https://github.com/probins))
|
|
||||||
* [#3693](https://github.com/openlayers/openlayers/pull/3693) - Fix ol.extent.containsExtent documentation ([@tremby](https://github.com/tremby))
|
|
||||||
* [#3689](https://github.com/openlayers/openlayers/pull/3689) - Fix WMTS.optionsFromCapabilities if no OperationsMetadata section ([@probins](https://github.com/probins))
|
|
||||||
* [#3688](https://github.com/openlayers/openlayers/pull/3688) - Add two missing properties to extern of WebGLContextAttributes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3682](https://github.com/openlayers/openlayers/pull/3682) - Add a note about using the collection in addLayer ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3649](https://github.com/openlayers/openlayers/pull/3649) - More specific regex in serve.js ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3677](https://github.com/openlayers/openlayers/pull/3677) - Add metadata to examples, ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3672](https://github.com/openlayers/openlayers/pull/3672) - Add link to FAQ-document and fix internal links ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3665](https://github.com/openlayers/openlayers/pull/3665) - Add proj4js and projection definition files to example resources ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3662](https://github.com/openlayers/openlayers/pull/3662) - Clarify docs for renderBuffer option ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#3664](https://github.com/openlayers/openlayers/pull/3664) - Link to download page. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3639](https://github.com/openlayers/openlayers/pull/3639) - Add extent support to ol.tilegrid.TileGrid ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3663](https://github.com/openlayers/openlayers/pull/3663) - Readme should not include the version number. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3637](https://github.com/openlayers/openlayers/pull/3637) - Implement ol.renderer.Layer#forEachFeatureAtCoordinate ([@fredj](https://github.com/fredj))
|
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
# v3.7.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.7.0 release includes features and fixes from 43 pull requests since v3.6.0. To simplify the code base, there were some changes to "experimental" features. Please follow the upgrade notes to make your applications work with the latest release.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### Removal of `ol.FeatureOverlay`
|
|
||||||
|
|
||||||
Instead of an `ol.FeatureOverlay`, we now use an `ol.layer.Vector` with an
|
|
||||||
`ol.source.Vector`. If you previously had:
|
|
||||||
```js
|
|
||||||
var featureOverlay = new ol.FeatureOverlay({
|
|
||||||
map: map,
|
|
||||||
style: overlayStyle
|
|
||||||
});
|
|
||||||
featureOverlay.addFeature(feature);
|
|
||||||
featureOverlay.removeFeature(feature);
|
|
||||||
var collection = featureOverlay.getFeatures();
|
|
||||||
```
|
|
||||||
you will have to change this to:
|
|
||||||
```js
|
|
||||||
var collection = new ol.Collection();
|
|
||||||
var featureOverlay = new ol.layer.Vector({
|
|
||||||
map: map,
|
|
||||||
source: new ol.source.Vector({
|
|
||||||
features: collection,
|
|
||||||
useSpatialIndex: false // optional, might improve performance
|
|
||||||
}),
|
|
||||||
style: overlayStyle,
|
|
||||||
updateWhileAnimating: true, // optional, for instant visual feedback
|
|
||||||
updateWhileInteracting: true // optional, for instant visual feedback
|
|
||||||
});
|
|
||||||
featureOverlay.getSource().addFeature(feature);
|
|
||||||
featureOverlay.getSource().removeFeature(feature);
|
|
||||||
```
|
|
||||||
|
|
||||||
With the removal of `ol.FeatureOverlay`, `zIndex` symbolizer properties of overlays are no longer stacked per map, but per layer/overlay. If you previously had multiple feature overlays where you controlled the rendering order of features by using `zIndex` symbolizer properties, you can now achieve the same rendering order only if all overlay features are on the same layer.
|
|
||||||
|
|
||||||
Note that `ol.FeatureOverlay#getFeatures()` returned an `{ol.Collection.<ol.Feature>}`, whereas `ol.source.Vector#getFeatures()` returns an `{Array.<ol.Feature>}`.
|
|
||||||
|
|
||||||
#### `ol.TileCoord` changes
|
|
||||||
|
|
||||||
Until now, the API exposed two different types of `ol.TileCoord` tile coordinates: internal ones that increase left to right and upward, and transformed ones that may increase downward, as defined by a transform function on the tile grid. With this change, the API now only exposes tile coordinates that increase left to right and upward.
|
|
||||||
|
|
||||||
Previously, tile grids created by OpenLayers either had their origin at the top-left or at the bottom-left corner of the extent. To make it easier for application developers to transform tile coordinates to the common XYZ tiling scheme, all tile grids that OpenLayers creates internally have their origin now at the top-left corner of the extent.
|
|
||||||
|
|
||||||
This change affects applications that configure a custom `tileUrlFunction` for an `ol.source.Tile`. Previously, the `tileUrlFunction` was called with rather unpredictable tile coordinates, depending on whether a tile coordinate transform took place before calling the `tileUrlFunction`. Now it is always called with OpenLayers tile coordinates. To transform these into the common XYZ tiling scheme, a custom `tileUrlFunction` has to change the `y` value (tile row) of the `ol.TileCoord`:
|
|
||||||
```js
|
|
||||||
function tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
var urlTemplate = '{z}/{x}/{y}';
|
|
||||||
return urlTemplate
|
|
||||||
.replace('{z}', tileCoord[0].toString())
|
|
||||||
.replace('{x}', tileCoord[1].toString())
|
|
||||||
.replace('{y}', (-tileCoord[2] - 1).toString());
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
The `ol.tilegrid.TileGrid#createTileCoordTransform()` function which could be used to get the tile grid's tile coordinate transform function has been removed. This function was confusing and should no longer be needed now that application developers get tile coordinates in a known layout.
|
|
||||||
|
|
||||||
The code snippets below show how your application code needs to be changed:
|
|
||||||
|
|
||||||
Old application code (with `ol.tilegrid.TileGrid#createTileCoordTransform()`):
|
|
||||||
```js
|
|
||||||
var transform = source.getTileGrid().createTileCoordTransform();
|
|
||||||
var tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
tileCoord = transform(tileCoord, projection);
|
|
||||||
return 'http://mytiles.com/' +
|
|
||||||
tileCoord[0] + '/' + tileCoord[1] + '/' + tileCoord[2] + '.png';
|
|
||||||
};
|
|
||||||
```
|
|
||||||
Old application code (with custom `y` transform):
|
|
||||||
```js
|
|
||||||
var tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
var z = tileCoord[0];
|
|
||||||
var yFromBottom = tileCoord[2];
|
|
||||||
var resolution = tileGrid.getResolution(z);
|
|
||||||
var tileHeight = ol.size.toSize(tileSize)[1];
|
|
||||||
var matrixHeight =
|
|
||||||
Math.floor(ol.extent.getHeight(extent) / tileHeight / resolution);
|
|
||||||
return 'http://mytiles.com/' +
|
|
||||||
tileCoord[0] + '/' + tileCoord[1] + '/' +
|
|
||||||
(matrixHeight - yFromBottom - 1) + '.png';
|
|
||||||
|
|
||||||
};
|
|
||||||
```
|
|
||||||
New application code (simple -y - 1 transform):
|
|
||||||
```js
|
|
||||||
var tileUrlFunction = function(tileCoord, pixelRatio, projection) {
|
|
||||||
return 'http://mytiles.com/' +
|
|
||||||
tileCoord[0] + '/' + tileCoord[1] + '/' + (-tileCoord[2] - 1) + '.png';
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removal of `ol.tilegrid.Zoomify`
|
|
||||||
|
|
||||||
The replacement of `ol.tilegrid.Zoomify` is a plain `ol.tilegrid.TileGrid`, configured with `extent`, `origin` and `resolutions`. If the `size` passed to the `ol.source.Zoomify` source is `[width, height]`, then the extent for the tile grid will be `[0, -height, width, 0]`, and the origin will be `[0, 0]`.
|
|
||||||
|
|
||||||
#### Replace `ol.View.fitExtent()` and `ol.View.fitGeometry()` with `ol.View.fit()`
|
|
||||||
* This combines two previously distinct functions into one more flexible call which takes either a geometry or an extent.
|
|
||||||
* Rename all calls to `fitExtent` and `fitGeometry` to `fit`.
|
|
||||||
|
|
||||||
#### Change to `ol.interaction.Modify`
|
|
||||||
|
|
||||||
When single clicking a line or boundary within the `pixelTolerance`, a vertex is now created.
|
|
||||||
|
|
||||||
## New features and fixes
|
|
||||||
|
|
||||||
* [#3867](https://github.com/openlayers/openlayers/pull/3867) - Do not require projection extent for x-wrapping tile sources ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3635](https://github.com/openlayers/openlayers/pull/3635) - Create vertex on boundary single click ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3806](https://github.com/openlayers/openlayers/pull/3806) - Do not clip canvas for vector layers when wrapping the world ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3461](https://github.com/openlayers/openlayers/pull/3461) - High level Modify interaction events ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3865](https://github.com/openlayers/openlayers/pull/3865) - ol.View#fit() ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3864](https://github.com/openlayers/openlayers/pull/3864) - Check projection.canWrapX() before wrapping tiles ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#3863](https://github.com/openlayers/openlayers/pull/3863) - Handle CDATA in attribute parsing for GML format ([@nhambletCCRI](https://github.com/nhambletCCRI))
|
|
||||||
* [#3860](https://github.com/openlayers/openlayers/pull/3860) - Update example layout. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3861](https://github.com/openlayers/openlayers/pull/3861) - Don't force 'dom' renderer ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#3855](https://github.com/openlayers/openlayers/pull/3855) - Adding an example with WMTS tiles from IGN Geoportail ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3856](https://github.com/openlayers/openlayers/pull/3856) - ol.source.TileVector(): bind success function of tileLoadFunction to source ([@plepe](https://github.com/plepe))
|
|
||||||
* [#3848](https://github.com/openlayers/openlayers/pull/3848) - Check for exports before define. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3845](https://github.com/openlayers/openlayers/pull/3845) - Prevent null array to be passed to an ol.Collection ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3849](https://github.com/openlayers/openlayers/pull/3849) - Pad min. and sec. with leading zeros in DMS notation ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3842](https://github.com/openlayers/openlayers/pull/3842) - Adding a feature-animation example ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3833](https://github.com/openlayers/openlayers/pull/3833) - Enable use of custom XHR loader for TileVector sources ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3834](https://github.com/openlayers/openlayers/pull/3834) - ArcGIS tiled example broken in Chrome ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3829](https://github.com/openlayers/openlayers/pull/3829) - incorrect assert message ([@kzr-pzr](https://github.com/kzr-pzr))
|
|
||||||
* [#3828](https://github.com/openlayers/openlayers/pull/3828) - Fix typo in upgrade notes ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3826](https://github.com/openlayers/openlayers/pull/3826) - Allow custom tileGrid in ol.source.XYZ ([@klokantech](https://github.com/klokantech))
|
|
||||||
* [#3815](https://github.com/openlayers/openlayers/pull/3815) - Simplify tilegrid API and internals ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3820](https://github.com/openlayers/openlayers/pull/3820) - Make unmanaged vector layers behave more like ol.FeatureOverlay ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3822](https://github.com/openlayers/openlayers/pull/3822) - Correct docs for updateWhileInteracting ([@probins](https://github.com/probins))
|
|
||||||
* [#3818](https://github.com/openlayers/openlayers/pull/3818) - Make geometry.transform api stable again. ([@probins](https://github.com/probins))
|
|
||||||
* [#3801](https://github.com/openlayers/openlayers/pull/3801) - Respect the tile grid's extent in ol.source.TileVector ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3810](https://github.com/openlayers/openlayers/pull/3810) - Improve TileGrid documentation and examples ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3808](https://github.com/openlayers/openlayers/pull/3808) - Correct typo in OverlayOptions ([@probins](https://github.com/probins))
|
|
||||||
* [#3766](https://github.com/openlayers/openlayers/pull/3766) - Add a clickTolerance option to the Draw interaction ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3804](https://github.com/openlayers/openlayers/pull/3804) - Remove sentence that was only meant for WMTS tile grids ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3800](https://github.com/openlayers/openlayers/pull/3800) - Remove further references to FeatureOverlay ([@probins](https://github.com/probins))
|
|
||||||
* [#3780](https://github.com/openlayers/openlayers/pull/3780) - Only expose transformed tile coordinates to the API ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3793](https://github.com/openlayers/openlayers/pull/3793) - Use 'managed' instead of 'unmanaged' in LayerState ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3792](https://github.com/openlayers/openlayers/pull/3792) - Link to correct layer base class ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3791](https://github.com/openlayers/openlayers/pull/3791) - Remove docs referring to removed feature overlay ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#3790](https://github.com/openlayers/openlayers/pull/3790) - Remove unnecessary quotes around object keys ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3787](https://github.com/openlayers/openlayers/pull/3787) - Add 'unmanaged' to ol.layer.LayerState ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3784](https://github.com/openlayers/openlayers/pull/3784) - Always write the GeoJSONFeature geometry property ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3783](https://github.com/openlayers/openlayers/pull/3783) - Fix broken wmts-hidpi example ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3782](https://github.com/openlayers/openlayers/pull/3782) - Fix assert documentation typo ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#3758](https://github.com/openlayers/openlayers/pull/3758) - Removal of ol.FeatureOverlay ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3775](https://github.com/openlayers/openlayers/pull/3775) - Add ol-touch but keep ol-viewport className. ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3713](https://github.com/openlayers/openlayers/pull/3713) - Add missing propertyNames member for olx.format.WFSWriteGetFeatureOptions ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#3763](https://github.com/openlayers/openlayers/pull/3763) - Standardise draw/modify descriptions ([@probins](https://github.com/probins))
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# v3.8.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.8.0 release includes features and fixes from 33 pull requests since v3.7.0. While summer vacations have slowed the pace of development a bit this month, there are some nice improvements in this release. See the complete list below for details.
|
|
||||||
|
|
||||||
## New features and fixes
|
|
||||||
|
|
||||||
* [#3957](https://github.com/openlayers/openlayers/pull/3957) - Properly handle vertex deletion with multiple features. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3954](https://github.com/openlayers/openlayers/pull/3954) - Remove ol.control.Control.bindMouseOutFocusOutBlur function. ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3214](https://github.com/openlayers/openlayers/pull/3214) - Pixel manipulation with raster sources. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3946](https://github.com/openlayers/openlayers/pull/3946) - Fix vertex deletion for Modify interaction on mobile devices. ([@Turbo87](https://github.com/Turbo87))
|
|
||||||
* [#3910](https://github.com/openlayers/openlayers/pull/3910) - Do not provide an AMD environment to ol.ext modules. ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3934](https://github.com/openlayers/openlayers/pull/3934) - Fix `drawstart` and `drawend` events when drawing a point ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3774](https://github.com/openlayers/openlayers/pull/3774) - Measure tooltips touchdevice ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#3949](https://github.com/openlayers/openlayers/pull/3949) - Remove count argument from `called` function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3950](https://github.com/openlayers/openlayers/pull/3950) - Remove reference to vbarray.js ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3947](https://github.com/openlayers/openlayers/pull/3947) - Clarify documentation of Image source ratio option. ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#3920](https://github.com/openlayers/openlayers/pull/3920) - Remove use_types_for_optimization from custom build tutorial. ([@probins](https://github.com/probins))
|
|
||||||
* [#3922](https://github.com/openlayers/openlayers/pull/3922) - Document {?-?} pattern in expandUrl ([@probins](https://github.com/probins))
|
|
||||||
* [#3921](https://github.com/openlayers/openlayers/pull/3921) - Cache node_modules on Travis. ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#3942](https://github.com/openlayers/openlayers/pull/3942) - Fix WMTS TileMatrixSet lookup by SRS identifier ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3945](https://github.com/openlayers/openlayers/pull/3945) - Simplify icon example and show popup at clicked position ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3930](https://github.com/openlayers/openlayers/pull/3930) - Use goog.functions.identity instead of goog.identityFunction ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3929](https://github.com/openlayers/openlayers/pull/3929) - Expand description for XYZ source ([@probins](https://github.com/probins))
|
|
||||||
* [#3933](https://github.com/openlayers/openlayers/pull/3933) - Snap center to pixel to avoid floating point issues ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3932](https://github.com/openlayers/openlayers/pull/3932) - SnapOptions: Fix typo in pixelTolerance JSDoc ([@Turbo87](https://github.com/Turbo87))
|
|
||||||
* [#3931](https://github.com/openlayers/openlayers/pull/3931) - Remove unused htmlparser2 package ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3912](https://github.com/openlayers/openlayers/pull/3912) - Fix the event type fired by goog.fx.Dragger ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3871](https://github.com/openlayers/openlayers/pull/3871) - Document change events properly ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3906](https://github.com/openlayers/openlayers/pull/3906) - Clear features properly when there is no spatial index ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3896](https://github.com/openlayers/openlayers/pull/3896) - Fire WebGL precompose event in same sequence as other renderers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3359](https://github.com/openlayers/openlayers/pull/3359) - Enable deep clone of MultiPolygon. ([@Kenny806](https://github.com/Kenny806))
|
|
||||||
* [#3895](https://github.com/openlayers/openlayers/pull/3895) - Rework the tile queue for multiple queues. ([@aisaacs](https://github.com/aisaacs))
|
|
||||||
* [#3894](https://github.com/openlayers/openlayers/pull/3894) - Install Python dependencies without sudo. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3824](https://github.com/openlayers/openlayers/pull/3824) - Improve docs for interaction.Select. ([@probins](https://github.com/probins))
|
|
||||||
* [#3884](https://github.com/openlayers/openlayers/pull/3884) - Provide a debug loader for the library. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3883](https://github.com/openlayers/openlayers/pull/3883) - Ignore layer filter for unmanaged layers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3859](https://github.com/openlayers/openlayers/pull/3859) - Add in crossOrigin option ([@llambanna](https://github.com/llambanna))
|
|
||||||
* [#3873](https://github.com/openlayers/openlayers/pull/3873) - Correct minor typo in modifyinteraction ([@probins](https://github.com/probins))
|
|
||||||
* [#3872](https://github.com/openlayers/openlayers/pull/3872) - Correct event notations in ol.Feature ([@probins](https://github.com/probins))
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# v3.8.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
This is a patch release that updates the URL for builds shown in the examples. Details below.
|
|
||||||
|
|
||||||
* [#3970](https://github.com/openlayers/openlayers/pull/3970) - Pull builds from openlayers.org. ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# v3.8.2
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
This is a patch release that corrects the URL for builds shown in the examples. Details below.
|
|
||||||
|
|
||||||
* [#3979](https://github.com/openlayers/openlayers/pull/3979) - Fix URLs for openlayers.org resources. ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
# v3.9.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v3.9.0 release includes features and fixes from 62 pull requests since the v3.8.2 release. New features include:
|
|
||||||
|
|
||||||
* [#3986](https://github.com/openlayers/openlayers/pull/3986) - Modify 'url' option of ol.source.Vector to accept a function ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#4069](https://github.com/openlayers/openlayers/pull/4069) - Add Z-index to layers ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4044](https://github.com/openlayers/openlayers/pull/4044) - Add ol.interaction.Draw#continueDrawing ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4008](https://github.com/openlayers/openlayers/pull/4008) - Add a Translate interaction ([@elemoine](https://github.com/elemoine))
|
|
||||||
|
|
||||||
See the complete list below for details. And see the following notes to know how to upgrade from v3.8.x to v3.9.0.
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
#### `ol.style.Circle` changes
|
|
||||||
|
|
||||||
The experimental `getAnchor`, `getOrigin`, and `getSize` methods have been removed. The anchor and origin of a circle symbolizer are not modifiable, so these properties should not need to be accessed. The radius and stroke width can be used to calculate the rendered size of a circle symbolizer if needed:
|
|
||||||
|
|
||||||
```js
|
|
||||||
// calculate rendered size of a circle symbolizer
|
|
||||||
var width = 2 * circle.getRadius();
|
|
||||||
if (circle.getStroke()) {
|
|
||||||
width += circle.getStroke().getWidth() + 1;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## New features and fixes
|
|
||||||
|
|
||||||
* [#4055](https://github.com/openlayers/openlayers/pull/4055) - Improve graticule perf ([@fgravin](https://github.com/fgravin))
|
|
||||||
* [#4088](https://github.com/openlayers/openlayers/pull/4088) - Update jshint to v2.8.0 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4089](https://github.com/openlayers/openlayers/pull/4089) - SelectEventType in ol.interaction namespace ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#4095](https://github.com/openlayers/openlayers/pull/4095) - Zoom to the extent of the drag box. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4084](https://github.com/openlayers/openlayers/pull/4084) - Fewer circle exports. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4094](https://github.com/openlayers/openlayers/pull/4094) - Allow source.setAttributions() to be exported. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4096](https://github.com/openlayers/openlayers/pull/4096) - Reinstate inheritdoc to fix #4082 ([@bjornharrtell](https://github.com/bjornharrtell))
|
|
||||||
* [#4091](https://github.com/openlayers/openlayers/pull/4091) - Remove unused ol.renderer.webgl.Map.DEFAULT_COLOR_VALUES_ ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4092](https://github.com/openlayers/openlayers/pull/4092) - Minor coding style fixes ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4083](https://github.com/openlayers/openlayers/pull/4083) - Add API descriptions. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4078](https://github.com/openlayers/openlayers/pull/4078) - Enable all the compiler checks ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4085](https://github.com/openlayers/openlayers/pull/4085) - Parse nested document tag ([@oterral](https://github.com/oterral))
|
|
||||||
* [#4060](https://github.com/openlayers/openlayers/pull/4060) - Remove unnecessary cast ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4064](https://github.com/openlayers/openlayers/pull/4064) - Use a private variable to cache the default style array ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4081](https://github.com/openlayers/openlayers/pull/4081) - Update link to workshop. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4062](https://github.com/openlayers/openlayers/pull/4062) - Remove ol.xml.makeParsersNS and use ol.xml.makeStructureNS instead ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3986](https://github.com/openlayers/openlayers/pull/3986) - Modify 'url' option of ol.source.Vector to accept a function ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#4077](https://github.com/openlayers/openlayers/pull/4077) - Add missing const jsdoc annotation ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4080](https://github.com/openlayers/openlayers/pull/4080) - Remove unused goog.require in examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4041](https://github.com/openlayers/openlayers/pull/4041) - Fix custom build issue ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4059](https://github.com/openlayers/openlayers/pull/4059) - Clarify drag interaction example to inform about ol.interaction.Translate ([@alvinlindstam](https://github.com/alvinlindstam))
|
|
||||||
* [#4069](https://github.com/openlayers/openlayers/pull/4069) - Add Z-index to layers ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4076](https://github.com/openlayers/openlayers/pull/4076) - Add assertion for required option 'code' on ol.proj.Projection ([@weskamm](https://github.com/weskamm))
|
|
||||||
* [#4075](https://github.com/openlayers/openlayers/pull/4075) - setOpacity of Image undefined ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#4044](https://github.com/openlayers/openlayers/pull/4044) - Add ol.interaction.Draw#continueDrawing ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4073](https://github.com/openlayers/openlayers/pull/4073) - Better type definition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4072](https://github.com/openlayers/openlayers/pull/4072) - Update to closure-util 1.7.0 ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4070](https://github.com/openlayers/openlayers/pull/4070) - Make the debug server work regardless of the current working directory. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4067](https://github.com/openlayers/openlayers/pull/4067) - Fix bootstrap class name in examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4050](https://github.com/openlayers/openlayers/pull/4050) - Use view.getRotation and view.getResolution instead of view.getState ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4051](https://github.com/openlayers/openlayers/pull/4051) - Move wrench node package to devDependencies ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4047](https://github.com/openlayers/openlayers/pull/4047) - Remove pystache dependency ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4027](https://github.com/openlayers/openlayers/pull/4027) - closure-compiler v20150729 compatibility ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4040](https://github.com/openlayers/openlayers/pull/4040) - Better docs for ol.ENABLE_[WEBGL|CANVAS|DOM] ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4032](https://github.com/openlayers/openlayers/pull/4032) - Improve ol.Overlay extensibility ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#4037](https://github.com/openlayers/openlayers/pull/4037) - Don't install python packages in before_install ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4028](https://github.com/openlayers/openlayers/pull/4028) - Update to closure-util 1.6 ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4014](https://github.com/openlayers/openlayers/pull/4014) - Remove deprecated checkStructDictInheritance ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3987](https://github.com/openlayers/openlayers/pull/3987) - Remove unnecessary cast ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4035](https://github.com/openlayers/openlayers/pull/4035) - Remove unused sphere and ellipsoid methods. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#4031](https://github.com/openlayers/openlayers/pull/4031) - Fixing size of popup ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#4023](https://github.com/openlayers/openlayers/pull/4023) - Render map when layer.setMap(map) called ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4026](https://github.com/openlayers/openlayers/pull/4026) - Fix Font Awesome CSS class in examples ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4024](https://github.com/openlayers/openlayers/pull/4024) - Correct documentation for ol.FeatureStyleFunction ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4011](https://github.com/openlayers/openlayers/pull/4011) - Make Modify interaction listen to feature changes ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3917](https://github.com/openlayers/openlayers/pull/3917) - Resolved issue with cluster source reloading ([@cmiles74](https://github.com/cmiles74))
|
|
||||||
* [#4015](https://github.com/openlayers/openlayers/pull/4015) - Add a getUrls Method to ol.source.XYZ ([@weskamm](https://github.com/weskamm))
|
|
||||||
* [#4019](https://github.com/openlayers/openlayers/pull/4019) - Simplify .editorconfig file ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4002](https://github.com/openlayers/openlayers/pull/4002) - Update closure-library to latest commit ([@fredj](https://github.com/fredj))
|
|
||||||
* [#4018](https://github.com/openlayers/openlayers/pull/4018) - Fix rotate buttons in animation example ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4013](https://github.com/openlayers/openlayers/pull/4013) - Use a more recent version of marked ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#4017](https://github.com/openlayers/openlayers/pull/4017) - Do not overwrite projections in the registry simply by using `new ol.proj.Projection()` ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#4008](https://github.com/openlayers/openlayers/pull/4008) - Add a Translate interaction ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3230](https://github.com/openlayers/openlayers/pull/3230) - Add stroke to default editing style for geometry collections ([@pgiraud](https://github.com/pgiraud))
|
|
||||||
* [#4007](https://github.com/openlayers/openlayers/pull/4007) - Do not use Function.prototype.bind in examples ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#4006](https://github.com/openlayers/openlayers/pull/4006) - Fix typo (vegetaion -> vegetation) ([@elemoine](https://github.com/elemoine))
|
|
||||||
* [#3993](https://github.com/openlayers/openlayers/pull/3993) - Replace base symbols with overridden ones when generating info.json ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#3992](https://github.com/openlayers/openlayers/pull/3992) - Fix typo in Makefile ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3989](https://github.com/openlayers/openlayers/pull/3989) - Handle JSONP errors in ol.source.TileJSON ([@fredj](https://github.com/fredj))
|
|
||||||
* [#3983](https://github.com/openlayers/openlayers/pull/3983) - Remove doc footer with timestamp. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3984](https://github.com/openlayers/openlayers/pull/3984) - Style source control links in examples. ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#3982](https://github.com/openlayers/openlayers/pull/3982) - Rebuild examples if package.json changes. ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
# 4.0.0
|
|
||||||
|
|
||||||
Starting with this version, OpenLayers introduces [Semantic Versioning](http://semver.org). Unlike the switch from v2.x to v3.x, which marked a complete rewrite of the library with an entirely new API, major version increments now simply mean that users should pay attention to the *'Breaking changes'* section of the upgrade notes.
|
|
||||||
|
|
||||||
For users of mainstream bundlers and minifiers, OpenLayers is now also available as a set of ES2015 modules. See https://npmjs.com/package/ol/. With that package, bundling only the needed parts of the library with an application is now completely hassle free.
|
|
||||||
|
|
||||||
Version 4.0.0 includes enhancements and fixes from 107 pull requests since the previous release.
|
|
||||||
|
|
||||||
Among these changes, [#6381](https://github.com/openlayers/openlayers/pull/6381) adds an example which shows how to use [geojson-vt](https://www.npmjs.com/package/geojson-vt) for highly efficient rendering of GeoJSON data as vector tiles.
|
|
||||||
|
|
||||||
Several improvements were made to `ol.source.Zoomify`, including projection support ([#6387](https://github.com/openlayers/openlayers/pull/6387)) and support for URL templates ([#6475](https://github.com/openlayers/openlayers/pull/6475)).
|
|
||||||
|
|
||||||
Also the `ol.source.ImageArcGISRest` saw some enhancements, including HiDPI/Retina support and a fix that avoids non-integer DPI values ([#6300](https://github.com/openlayers/openlayers/pull/6300) and [#6467](https://github.com/openlayers/openlayers/pull/6467)).
|
|
||||||
|
|
||||||
On the topic of drawing tools, @tst-ppenev completed an effort to make the `ol.interaction.Modify` interaction support modification of `ol.geom.Circle` geometries ([#6457](https://github.com/openlayers/openlayers/pull/6457)).
|
|
||||||
|
|
||||||
|
|
||||||
## Breaking changes
|
|
||||||
|
|
||||||
### Simplified `ol.View#fit()` API
|
|
||||||
|
|
||||||
In most cases, it is no longer necessary to provide an `ol.Size` (previously the 2nd argument) to `ol.View#fit()`. By default, the size of the first map that uses the view will be used. If you want to specify a different size, it goes in the options now (previously the 3rd argument, now the 2nd).
|
|
||||||
|
|
||||||
Most common use case - old API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent, map.getSize());
|
|
||||||
```
|
|
||||||
Most common use case - new API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent);
|
|
||||||
```
|
|
||||||
Advanced use - old API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent, [200, 100], {padding: 10});
|
|
||||||
```
|
|
||||||
Advanced use - new API:
|
|
||||||
```js
|
|
||||||
map.getView().fit(extent, {size: [200, 100], padding 10});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Removal of deprecated methods
|
|
||||||
|
|
||||||
The deprecated `ol.animation` functions and `map.beforeRender()` method have been removed. Use `view.animate()` instead.
|
|
||||||
|
|
||||||
The `unByKey()` method has been removed from `ol.Observable` instances. Use the `ol.Observable.unByKey()` static function instead.
|
|
||||||
```js
|
|
||||||
var key = map.on('moveend', function() { ...});
|
|
||||||
map.unByKey(key);
|
|
||||||
```
|
|
||||||
New code:
|
|
||||||
```js
|
|
||||||
var key = map.on('moveend', function() { ...});
|
|
||||||
ol.Observable.unByKey(key);
|
|
||||||
```
|
|
||||||
|
|
||||||
## Upgrade notes
|
|
||||||
|
|
||||||
### Simpler `ol.source.Zoomify` `url` configuration
|
|
||||||
|
|
||||||
Instead specifying a base url, the `url` for the `ol.source.Zoomify` source can now be a template. The `{TileGroup}`, `{x}`, `{y}`, `{z}` and placeholders must be included in the `url` in this case. the `url` can now also include subdomain placeholders:
|
|
||||||
```js
|
|
||||||
new ol.source.Zoomify({
|
|
||||||
url: 'https://{a-f}.example.com/cgi-bin/iipsrv.fcgi?zoomify=/a/b/{TileGroup}/{z}-{x}-{y}.jpg'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Removed build flags (`@define`)
|
|
||||||
|
|
||||||
The `ol.DEBUG`, `ol.ENABLE_TILE`, `ol.ENABLE_IMAGE`, `ol.ENABLE_VECTOR`, and `ol.ENABLE_VECTOR_TILE` build flags are no longer necessary and have been removed. If you were using these in a `define` array for a custom build, you can remove them.
|
|
||||||
|
|
||||||
If you leave `ol.ENABLE_WEBGL` set to `true` in your build, you should set `ol.DEBUG_WEBGL` to `false` to avoid including debuggable shader sources.
|
|
||||||
|
|
||||||
|
|
||||||
## List of all changes
|
|
||||||
|
|
||||||
* [#6477](https://github.com/openlayers/openlayers/pull/6477) - Save and restore context when rotating ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6475](https://github.com/openlayers/openlayers/pull/6475) - Use an url template for ol.source.Zoomify ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6478](https://github.com/openlayers/openlayers/pull/6478) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6472](https://github.com/openlayers/openlayers/pull/6472) - Use fixed pixel ratio for hit tolerance tests ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6468](https://github.com/openlayers/openlayers/pull/6468) - Remove console.assert in ol.structs.PriorityQueue tests ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6467](https://github.com/openlayers/openlayers/pull/6467) - Round the DPI value in ol.source.ImageArcGISRest ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6466](https://github.com/openlayers/openlayers/pull/6466) - Small XML error in KML test ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6410](https://github.com/openlayers/openlayers/pull/6410) - fixed the degreesToStringHDMS_() function to promote a seconds value … ([@rjackson64840](https://github.com/rjackson64840))
|
|
||||||
* [#6461](https://github.com/openlayers/openlayers/pull/6461) - Add button to edit examples in CodePen ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6320](https://github.com/openlayers/openlayers/pull/6320) - Use the 'openlayers' tag instead of 'openlayers-3' ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6460](https://github.com/openlayers/openlayers/pull/6460) - Remove ol.Observable#unByKey ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6463](https://github.com/openlayers/openlayers/pull/6463) - chore(package): update clean-css-cli to version 4.0.5 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6459](https://github.com/openlayers/openlayers/pull/6459) - Use ol.coordinate.distance ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6457](https://github.com/openlayers/openlayers/pull/6457) - Add Circle Modification ([@tst-ppenev](https://github.com/tst-ppenev))
|
|
||||||
* [#6455](https://github.com/openlayers/openlayers/pull/6455) - Make all @api annotations imply stability ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6452](https://github.com/openlayers/openlayers/pull/6452) - Remove deprecated methods ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6361](https://github.com/openlayers/openlayers/pull/6361) - Remove "margin" at the bottom of the canvas ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6450](https://github.com/openlayers/openlayers/pull/6450) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6302](https://github.com/openlayers/openlayers/pull/6302) - Publish a package for use with ES module bundlers ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6446](https://github.com/openlayers/openlayers/pull/6446) - Update eslint to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6445](https://github.com/openlayers/openlayers/pull/6445) - Fix pinch zooming ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6444](https://github.com/openlayers/openlayers/pull/6444) - Disallow pinch zooming beyond min/max resolution ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6443](https://github.com/openlayers/openlayers/pull/6443) - goog.require cleanup ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6439](https://github.com/openlayers/openlayers/pull/6439) - Improve tile render performance ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6442](https://github.com/openlayers/openlayers/pull/6442) - Fix missing goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6441](https://github.com/openlayers/openlayers/pull/6441) - Update metalsmith-layouts to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6437](https://github.com/openlayers/openlayers/pull/6437) - Fit on circle ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6427](https://github.com/openlayers/openlayers/pull/6427) - Ensure WMS width and height are always integers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6432](https://github.com/openlayers/openlayers/pull/6432) - Use ol.proj.EPSG3857.WORLD_EXTENT in ol.source.TileImage tests ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6424](https://github.com/openlayers/openlayers/pull/6424) - Update dependencies to enable Greenkeeper 🌴 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6422](https://github.com/openlayers/openlayers/pull/6422) - Don't listen twice to move and end events in ol.control.ZoomSlider ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6426](https://github.com/openlayers/openlayers/pull/6426) - Add rewrite_polyfills to custom builds tutorial ([@probins](https://github.com/probins))
|
|
||||||
* [#6365](https://github.com/openlayers/openlayers/pull/6365) - Make enums for draw and modify interactions public ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#6294](https://github.com/openlayers/openlayers/pull/6294) - Update code for closure-compiler v20170124 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6413](https://github.com/openlayers/openlayers/pull/6413) - Accept ol.StyleFunction in ol.Feature#setStyle() ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6398](https://github.com/openlayers/openlayers/pull/6398) - Be more tolerant of map and position value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6399](https://github.com/openlayers/openlayers/pull/6399) - Small doc fix in VectorTileOptions renderMode ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6396](https://github.com/openlayers/openlayers/pull/6396) - Show current year in attribution in "HERE Map Tile API" example ([@chrismayer](https://github.com/chrismayer))
|
|
||||||
* [#6390](https://github.com/openlayers/openlayers/pull/6390) - Tag deprecated functions with @deprecated ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6370](https://github.com/openlayers/openlayers/pull/6370) - Feature apidoc, fix events and observable properties ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6376](https://github.com/openlayers/openlayers/pull/6376) - Make ol.format.filter.or/and accept n filter conditions ([@tsauerwein](https://github.com/tsauerwein))
|
|
||||||
* [#6393](https://github.com/openlayers/openlayers/pull/6393) - Only stop animation when animating ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6387](https://github.com/openlayers/openlayers/pull/6387) - Add projection option to ol.source.Zoomify ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6386](https://github.com/openlayers/openlayers/pull/6386) - Snap : only listen to change event triggered by the feature ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6383](https://github.com/openlayers/openlayers/pull/6383) - Modify interaction: check if interaction is active before drawing modifying vertex ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6381](https://github.com/openlayers/openlayers/pull/6381) - geojson-vt integration example ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#6373](https://github.com/openlayers/openlayers/pull/6373) - Use the ol.DEBUG_WEBGL flag to debug shader sources ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6379](https://github.com/openlayers/openlayers/pull/6379) - Set the overview map target in ol.control.OverviewMap.setMap ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6375](https://github.com/openlayers/openlayers/pull/6375) - Use present in license text ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#6371](https://github.com/openlayers/openlayers/pull/6371) - Adjust copyright to include 2017 ([@kolosov-sergey](https://github.com/kolosov-sergey))
|
|
||||||
* [#6364](https://github.com/openlayers/openlayers/pull/6364) - Make sure moveTo is called after beginPath ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6285](https://github.com/openlayers/openlayers/pull/6285) - Make size argument of ol.View#calculateExtent() optional ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6357](https://github.com/openlayers/openlayers/pull/6357) - Fix GeoJSONCRSCode definition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6362](https://github.com/openlayers/openlayers/pull/6362) - Remove empty file ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6358](https://github.com/openlayers/openlayers/pull/6358) - Ensure polygons without stroke are fully filled ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6356](https://github.com/openlayers/openlayers/pull/6356) - Bring custom builds tutorial up to date ([@probins](https://github.com/probins))
|
|
||||||
* [#6359](https://github.com/openlayers/openlayers/pull/6359) - When applying a pending fill, also apply a pending stroke ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6360](https://github.com/openlayers/openlayers/pull/6360) - Remove ol.array.flatten function ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6353](https://github.com/openlayers/openlayers/pull/6353) - API doc : add highlight style to the active anchor ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6355](https://github.com/openlayers/openlayers/pull/6355) - Remove test.geojson which was accidently committed in 57342a6 ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6349](https://github.com/openlayers/openlayers/pull/6349) - Better documentation for icon-color example ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6351](https://github.com/openlayers/openlayers/pull/6351) - Only consider pointerdown event if the last pointerup has been emitted ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6345](https://github.com/openlayers/openlayers/pull/6345) - Mitigate rounding errors in GetMap width/height calculation ([@giohappy](https://github.com/giohappy))
|
|
||||||
* [#6344](https://github.com/openlayers/openlayers/pull/6344) - No special raster reprojection handling for Chrome ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6339](https://github.com/openlayers/openlayers/pull/6339) - Code cleanup ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6337](https://github.com/openlayers/openlayers/pull/6337) - Constrain center in DragZoom interaction ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6336](https://github.com/openlayers/openlayers/pull/6336) - Remove unused ol.format.Feature.getExtensions function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6333](https://github.com/openlayers/openlayers/pull/6333) - Use API key for Thunderforest resources ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6300](https://github.com/openlayers/openlayers/pull/6300) - Add missing hidpi option for ol.source.ImageArcGISRest ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6109](https://github.com/openlayers/openlayers/pull/6109) - Export Map as PNG (IE issue) ([@NaveenKY](https://github.com/NaveenKY))
|
|
||||||
* [#6332](https://github.com/openlayers/openlayers/pull/6332) - Constrain the center in zoomByDelta ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6331](https://github.com/openlayers/openlayers/pull/6331) - Remove unused map parameter from ol.interaction.Interaction ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6326](https://github.com/openlayers/openlayers/pull/6326) - Add lineDashOffset to stroke style ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6328](https://github.com/openlayers/openlayers/pull/6328) - ol.geom.polygon documentation update on the coordinates format ([@quentin-ol](https://github.com/quentin-ol))
|
|
||||||
* [#6324](https://github.com/openlayers/openlayers/pull/6324) - Ensure resolution stays in range when pinching ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6329](https://github.com/openlayers/openlayers/pull/6329) - Fix WMTS theme location for sea-levels layer ([@thomasmoelhave](https://github.com/thomasmoelhave))
|
|
||||||
* [#6323](https://github.com/openlayers/openlayers/pull/6323) - Fix typo in Introduction ([@hdsnet](https://github.com/hdsnet))
|
|
||||||
* [#6305](https://github.com/openlayers/openlayers/pull/6305) - Moved hit Tolerance parameter to own example. ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#6319](https://github.com/openlayers/openlayers/pull/6319) - Remove the '3' from OpenLayers ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6314](https://github.com/openlayers/openlayers/pull/6314) - WebGL conditional compilation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6313](https://github.com/openlayers/openlayers/pull/6313) - Remove ol.DEBUG ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6317](https://github.com/openlayers/openlayers/pull/6317) - Update sinon to version 1.17.7 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6312](https://github.com/openlayers/openlayers/pull/6312) - Make layers responsible for creating layer renderers ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6308](https://github.com/openlayers/openlayers/pull/6308) - Dedicated modules for shared enums ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6307](https://github.com/openlayers/openlayers/pull/6307) - Dedicated modules for enums ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6297](https://github.com/openlayers/openlayers/pull/6297) - Update resemblejs to version 2.2.3 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6296](https://github.com/openlayers/openlayers/pull/6296) - Fix #6295. Update reference link in sphere.js ([@jbelien](https://github.com/jbelien))
|
|
||||||
* [#6255](https://github.com/openlayers/openlayers/pull/6255) - Don't reset the css cursor if it's not needed ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6290](https://github.com/openlayers/openlayers/pull/6290) - Use interim tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6291](https://github.com/openlayers/openlayers/pull/6291) - Document olx.AtPixelOptions#hitTolerance default value ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6283](https://github.com/openlayers/openlayers/pull/6283) - Avoid modifying coordinate in forEachLayerAtCoordinate ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6278](https://github.com/openlayers/openlayers/pull/6278) - Add missing require for ol.View ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6280](https://github.com/openlayers/openlayers/pull/6280) - Continue loading tiles when image is not ready yet ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6277](https://github.com/openlayers/openlayers/pull/6277) - Name modules more like their provide ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6264](https://github.com/openlayers/openlayers/pull/6264) - Remove the requirement to provide a size to ol.View#fit() ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6274](https://github.com/openlayers/openlayers/pull/6274) - Update clean-css to version 3.4.23 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6269](https://github.com/openlayers/openlayers/pull/6269) - Update derequire to version 2.0.6 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6270](https://github.com/openlayers/openlayers/pull/6270) - Add a magnify example ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6261](https://github.com/openlayers/openlayers/pull/6261) - Fit Zoomify view to image extent ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6259](https://github.com/openlayers/openlayers/pull/6259) - Simplify Zoomify example ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6260](https://github.com/openlayers/openlayers/pull/6260) - Enhance documentation for ol.View#fit ([@marcjansen](https://github.com/marcjansen))
|
|
||||||
* [#6258](https://github.com/openlayers/openlayers/pull/6258) - Set geometry name properly ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6251](https://github.com/openlayers/openlayers/pull/6251) - Take image pixel ratio into account for rendered resolution ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6244](https://github.com/openlayers/openlayers/pull/6244) - Enforces spacing around commas ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6246](https://github.com/openlayers/openlayers/pull/6246) - Re-render vector tiles when layer has changed ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6243](https://github.com/openlayers/openlayers/pull/6243) - Consistent spacing between keys and values in object literal ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6238](https://github.com/openlayers/openlayers/pull/6238) - Update eslint to version 3.12.1 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6236](https://github.com/openlayers/openlayers/pull/6236) - Update clean-css to version 3.4.22 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# 4.0.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v4.0.1 release is a patch release that addresses a regression in the v4.0.0 release. The fix makes pinch zooming work again properly when the two fingers are not placed on the screen at the same time.
|
|
||||||
|
|
||||||
See the [v4.0.0 release notes](https://github.com/openlayers/openlayers/releases/tag/v4.0.0) for details on upgrading from v3.20.x.
|
|
||||||
|
|
||||||
## Fix
|
|
||||||
|
|
||||||
* [#6486](https://github.com/openlayers/openlayers/pull/6486) - Do not set center when touches count has changed ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
# 4.1.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v4.1.0 release includes features and fixes from 91 pull requests.
|
|
||||||
|
|
||||||
#### Interactive overview map
|
|
||||||
|
|
||||||
The extent rectangle on the overview map can now be dragged to control the view for the main map.
|
|
||||||
|
|
||||||
#### Setting min and max zoom for a view
|
|
||||||
|
|
||||||
You can now change the min or max zoom for a view after it has been created. This can be useful if you want to limit how far out users can zoom based on changes in viewport width (use `view.setMinZoom()` for this).
|
|
||||||
|
|
||||||
#### Adding duplicate layers to a map throws
|
|
||||||
|
|
||||||
Previously, you could do this:
|
|
||||||
```js
|
|
||||||
map.addLayer(layer);
|
|
||||||
map.addLayer(layer);
|
|
||||||
```
|
|
||||||
|
|
||||||
However, after adding a duplicate layer, things failed if you tried to remove that layer.
|
|
||||||
|
|
||||||
Now, `map.addLayer()` throws if you try adding a layer that has already been added to the map.
|
|
||||||
|
|
||||||
#### Simpler `constrainResolution` configuration
|
|
||||||
|
|
||||||
The `constrainResolution` configuration for `ol.interaction.PinchZoom` and `ol.interaction.MouseWheelZoom`
|
|
||||||
can now be set directly with an option in `ol.interaction.defaults`:
|
|
||||||
```js
|
|
||||||
ol.interaction.defaults({
|
|
||||||
constrainResolution: true
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
## Detailed changes
|
|
||||||
|
|
||||||
* [#6675](https://github.com/openlayers/openlayers/pull/6675) - Reset cursor when translate interaction is removed or deactivated ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6707](https://github.com/openlayers/openlayers/pull/6707) - Set version when building ol package ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6706](https://github.com/openlayers/openlayers/pull/6706) - Add ol.source.Cluster#getDistance function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6695](https://github.com/openlayers/openlayers/pull/6695) - Unique layers ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6704](https://github.com/openlayers/openlayers/pull/6704) - Include typedefs.js in closure compiler tutorial build configurations ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6702](https://github.com/openlayers/openlayers/pull/6702) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6693](https://github.com/openlayers/openlayers/pull/6693) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6691](https://github.com/openlayers/openlayers/pull/6691) - Move eslint globals to to test/.eslintrc ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6689](https://github.com/openlayers/openlayers/pull/6689) - Add new constrainResolution option to olx.interaction.DefaultsOptions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6692](https://github.com/openlayers/openlayers/pull/6692) - Improve docs for MouseWheelZoom constrainResolution ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6687](https://github.com/openlayers/openlayers/pull/6687) - Clip image only if the layer extent intersects the view extent ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6686](https://github.com/openlayers/openlayers/pull/6686) - Update finishCoordinate in ol.interaction.Draw#removeLastPoint ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6682](https://github.com/openlayers/openlayers/pull/6682) - Add example, docs and typedef for MouseWheelZoom's constrainResolution option ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6683](https://github.com/openlayers/openlayers/pull/6683) - Add this jsdoc tag to ol.interaction.DragBox.defaultBoxEndCondition ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6681](https://github.com/openlayers/openlayers/pull/6681) - Add constrainResolution in olx.interaction.PinchZoomOptions typedef ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6671](https://github.com/openlayers/openlayers/pull/6671) - Add constraintResolution option to MouseWheelZoom for zoom with trackpad ([@kaiCu](https://github.com/kaiCu))
|
|
||||||
* [#6680](https://github.com/openlayers/openlayers/pull/6680) - Remove ol.DRAG_BOX_HYSTERESIS_PIXELS define and add option ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6666](https://github.com/openlayers/openlayers/pull/6666) - Use the optional extent in ol.structs.RBush#getExtent ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6670](https://github.com/openlayers/openlayers/pull/6670) - fix(package): update browserify to version 14.3.0 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6664](https://github.com/openlayers/openlayers/pull/6664) - Update async to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6659](https://github.com/openlayers/openlayers/pull/6659) - Add crossOrigin to examples using ol.style.Icon ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6658](https://github.com/openlayers/openlayers/pull/6658) - Fixes for raster source rendering ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6620](https://github.com/openlayers/openlayers/pull/6620) - Fix the parsing of flat coordinates in GML2 for 3D geometies ([@Jenselme](https://github.com/Jenselme))
|
|
||||||
* [#6657](https://github.com/openlayers/openlayers/pull/6657) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6644](https://github.com/openlayers/openlayers/pull/6644) - Allow minZoom and maxZoom to be set on a view ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6636](https://github.com/openlayers/openlayers/pull/6636) - Add test for the metric unit displayed in the scaleline ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6598](https://github.com/openlayers/openlayers/pull/6598) - Add support of micrometers to scaleline ([@hajjimurad](https://github.com/hajjimurad))
|
|
||||||
* [#6643](https://github.com/openlayers/openlayers/pull/6643) - Add common transforms by default ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6567](https://github.com/openlayers/openlayers/pull/6567) - Overlay visible before updating render position ([@nagytech](https://github.com/nagytech))
|
|
||||||
* [#6634](https://github.com/openlayers/openlayers/pull/6634) - Fix custom build when openlayers is installed from yarn package manager ([@Toilal](https://github.com/Toilal))
|
|
||||||
* [#6639](https://github.com/openlayers/openlayers/pull/6639) - Update async to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6635](https://github.com/openlayers/openlayers/pull/6635) - Add missing externs to custom builds examples ([@Toilal](https://github.com/Toilal))
|
|
||||||
* [#6631](https://github.com/openlayers/openlayers/pull/6631) - Fix request image size caclulation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6627](https://github.com/openlayers/openlayers/pull/6627) - Change css selector for user-select none ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#6626](https://github.com/openlayers/openlayers/pull/6626) - Respect cacheSize for reprojected caches ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6623](https://github.com/openlayers/openlayers/pull/6623) - Fix outerWidth and outerHeight calculation in IE ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6625](https://github.com/openlayers/openlayers/pull/6625) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6622](https://github.com/openlayers/openlayers/pull/6622) - Fix proj4 type ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#6617](https://github.com/openlayers/openlayers/pull/6617) - Use GeoServer/GWC caching when possible ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6614](https://github.com/openlayers/openlayers/pull/6614) - Filter write util method ([@adube](https://github.com/adube))
|
|
||||||
* [#6616](https://github.com/openlayers/openlayers/pull/6616) - Fix closing tag in gml tests ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6612](https://github.com/openlayers/openlayers/pull/6612) - Add support for WFS 1.0.0 to ol.format.WFS#writeTransaction ([@Jenselme](https://github.com/Jenselme))
|
|
||||||
* [#5887](https://github.com/openlayers/openlayers/pull/5887) - Interactive overview map ([@felixveysseyre](https://github.com/felixveysseyre))
|
|
||||||
* [#6610](https://github.com/openlayers/openlayers/pull/6610) - Fix event type case of MSPointerDown ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6611](https://github.com/openlayers/openlayers/pull/6611) - Update jquery to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6609](https://github.com/openlayers/openlayers/pull/6609) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6606](https://github.com/openlayers/openlayers/pull/6606) - Reset dragSegments after vertex deletion ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6523](https://github.com/openlayers/openlayers/pull/6523) - Add Gml2 serializers to support WFS-T 1.0.0 ([@Jenselme](https://github.com/Jenselme))
|
|
||||||
* [#6579](https://github.com/openlayers/openlayers/pull/6579) - Update slimerjs to v0.10.3 ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6577](https://github.com/openlayers/openlayers/pull/6577) - Adding crossOrigin to optionsFromCapabilities ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6604](https://github.com/openlayers/openlayers/pull/6604) - Fix RegularShape documentation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6603](https://github.com/openlayers/openlayers/pull/6603) - Update eslint to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6601](https://github.com/openlayers/openlayers/pull/6601) - Update jquery to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6600](https://github.com/openlayers/openlayers/pull/6600) - Update fs-extra to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6578](https://github.com/openlayers/openlayers/pull/6578) - Add ol.RenderOrderFunction typedef ([@icholy](https://github.com/icholy))
|
|
||||||
* [#6589](https://github.com/openlayers/openlayers/pull/6589) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6592](https://github.com/openlayers/openlayers/pull/6592) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6594](https://github.com/openlayers/openlayers/pull/6594) - Update fs-extra to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6580](https://github.com/openlayers/openlayers/pull/6580) - Remove unused esprima package ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6570](https://github.com/openlayers/openlayers/pull/6570) - Don't use deprecated sinon.stub(obj, 'meth', fn) ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6569](https://github.com/openlayers/openlayers/pull/6569) - Return null if the layer was not found in the WMTS capabilities ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6551](https://github.com/openlayers/openlayers/pull/6551) - Use the default fill and stroke color ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6560](https://github.com/openlayers/openlayers/pull/6560) - Don’t crash if feature loader xhr response returns 500 ([@geosense](https://github.com/geosense))
|
|
||||||
* [#6559](https://github.com/openlayers/openlayers/pull/6559) - Remove unneeded type cast ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6558](https://github.com/openlayers/openlayers/pull/6558) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6553](https://github.com/openlayers/openlayers/pull/6553) - Update proj4 to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6554](https://github.com/openlayers/openlayers/pull/6554) - Update eslint to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6549](https://github.com/openlayers/openlayers/pull/6549) - Make getAnimating and cancelAnimations @api ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#6547](https://github.com/openlayers/openlayers/pull/6547) - Clean up left-over code from animation changes ([@bartvde](https://github.com/bartvde))
|
|
||||||
* [#6540](https://github.com/openlayers/openlayers/pull/6540) - More precise ol.Geolocation#getAccuracyGeometry return type ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6539](https://github.com/openlayers/openlayers/pull/6539) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6535](https://github.com/openlayers/openlayers/pull/6535) - Update closure-util to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6529](https://github.com/openlayers/openlayers/pull/6529) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6530](https://github.com/openlayers/openlayers/pull/6530) - Update eslint to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6515](https://github.com/openlayers/openlayers/pull/6515) - Add view methods for getting max zoom, min zoom, and any zoom for a resolution ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6520](https://github.com/openlayers/openlayers/pull/6520) - Update eslint to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6518](https://github.com/openlayers/openlayers/pull/6518) - Fix olx.style.IconOptions.prototype.src type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6513](https://github.com/openlayers/openlayers/pull/6513) - Update async to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6512](https://github.com/openlayers/openlayers/pull/6512) - Complete animations at target values ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6511](https://github.com/openlayers/openlayers/pull/6511) - Revert accidently committed example change ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6507](https://github.com/openlayers/openlayers/pull/6507) - ol.DEBUG no longer needed in transforms/module.js ([@probins](https://github.com/probins))
|
|
||||||
* [#6505](https://github.com/openlayers/openlayers/pull/6505) - Update ol package to include Browserify config ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6504](https://github.com/openlayers/openlayers/pull/6504) - Determine if we should handle the drawing while the pointer is moving ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6499](https://github.com/openlayers/openlayers/pull/6499) - Be more tolerant when comparing vertices when modifying a circle ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6498](https://github.com/openlayers/openlayers/pull/6498) - Travis failing on master - use Node v6.1.x ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6493](https://github.com/openlayers/openlayers/pull/6493) - Vector tile cleanup ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6483](https://github.com/openlayers/openlayers/pull/6483) - Fix renderer.canvas.TileLayer to calculate correct canvas height for drawing. ([@nearmap](https://github.com/nearmap))
|
|
||||||
* [#6488](https://github.com/openlayers/openlayers/pull/6488) - Do not draw circle when pointer not moved and freehand is on ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6491](https://github.com/openlayers/openlayers/pull/6491) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# 4.1.1
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
This is a patch release to fix several minor issues and two regressions in the [4.1.0 release](https://github.com/openlayers/openlayers/releases/tag/v4.1.0).
|
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
* [#6711](https://github.com/openlayers/openlayers/pull/6711) - Correct path to cleancss ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6728](https://github.com/openlayers/openlayers/pull/6728) - Fix tissot examples docs ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6732](https://github.com/openlayers/openlayers/pull/6732) - Use firefox < 53 in travis ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6741](https://github.com/openlayers/openlayers/pull/6741) - Allow user selection in overlay container ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6755](https://github.com/openlayers/openlayers/pull/6755) - Add missing goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
@@ -1,151 +0,0 @@
|
|||||||
# 4.2.0
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
The v4.2.0 release includes features and fixes from 87 pull requests.
|
|
||||||
|
|
||||||
#### New `movestart` event on `ol.Map`
|
|
||||||
|
|
||||||
The map now has a `movestart` event, as countarpart to the already existing `moveend` event.
|
|
||||||
|
|
||||||
#### New `moveTolerance` option in `ol.Map`
|
|
||||||
|
|
||||||
Some touch devices do not play well with OpenLayers's way of detecting clicks. To overcome this, a new `moveTolerance` option was introduced, so users can override the 1 pixel threshold above which a touch-release sequence won't be considered a click any more.
|
|
||||||
|
|
||||||
#### Support for multiple layers in `ol.format.TopoJSON`
|
|
||||||
|
|
||||||
With the new `layerName` and `layers` options, applications can extract the layer as additional attribute for vector features from `ol.format.TopoJSON`. This can especially be useful for styling vector tile layers.
|
|
||||||
|
|
||||||
#### New `tileJSON` option for `ol.source.TileJSON`
|
|
||||||
|
|
||||||
Like `ol.source.TileUTFGrid`, `ol.source.TileJSON` now also has a `tileJSON` option to configue it with inline TileJSON instead of a TileJSON URL.
|
|
||||||
|
|
||||||
#### New `ol.format.filter.during` filter
|
|
||||||
|
|
||||||
Although OpenLayers has no support for WFS v2.0, we added `ol.format.filter.during` for the `During` temporal operator.
|
|
||||||
|
|
||||||
#### Improved vector tile rendering at non-native resolutions
|
|
||||||
|
|
||||||
The vector tile renderer now uses an internal tile grid for all resolutions to cache pre-rendered tiles, even if the tile source does not have tiles for the viewed resolution. This improves rendering quality and performance.
|
|
||||||
|
|
||||||
#### New `insertVertexCondition` for `ol.interaction.Modify`
|
|
||||||
|
|
||||||
Applications can now control whether a vertex will be inserted into the modified geometry. This makes it easier to modify custom geometries.
|
|
||||||
|
|
||||||
#### New `callback` option for `ol.View#fit()`
|
|
||||||
|
|
||||||
To allow applications to perform custom actions when an animation associated with `ol.View#fit()` is completed, that method now has a new `callback` option.
|
|
||||||
|
|
||||||
#### New `ol.View#getInteracting()` getter
|
|
||||||
|
|
||||||
Like `ol.View#getAnimating()` returns `true` during a view animation, `ol.View#getInteracting()` returns `true` while users are interacting with the view.
|
|
||||||
|
|
||||||
#### New `hasZ` option for `ol.format.WFS#writeTransaction()`
|
|
||||||
|
|
||||||
When the new `hasZ` option is set to `true`, 3D coordinates will be preserved and encoded when writing a WFS transaction.
|
|
||||||
|
|
||||||
#### New `wrapX` option for `ol.source.Stamen`
|
|
||||||
|
|
||||||
Like other tile sources, `ol.source.Stamen` now also has a `wrapX` option, which allows applications to turn off wrapping the world in x direction.
|
|
||||||
|
|
||||||
#### Label support for `ol.Graticule`
|
|
||||||
|
|
||||||
The `ol.Graticule` component has several new options to add and control the output of labels. To turn on labelling, configure `ol.Graticule` with `showLabels: true`. The new options to control label formatting are `lonLabelFormatter`, `latLabelFormatter`, `lonLabelPosition` and `latLabelPosition`.
|
|
||||||
|
|
||||||
#### Return values of two `ol.style.RegularShape` getters have changed
|
|
||||||
|
|
||||||
To provide a more consistent behaviour the following getters now return the same value that was given to constructor:
|
|
||||||
|
|
||||||
`ol.style.RegularShape#getPoints` does not return the double amount of points anymore if a radius2 is set.
|
|
||||||
|
|
||||||
`ol.style.RegularShape#getRadius2` will return `undefined` if no radius2 is set.
|
|
||||||
|
|
||||||
## Detailed changes
|
|
||||||
|
|
||||||
* [#6912](https://github.com/openlayers/openlayers/pull/6912) - Use class instead of style for Translate cursor ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6858](https://github.com/openlayers/openlayers/pull/6858) - Webgl vector improvements ([@GaborFarkas](https://github.com/GaborFarkas))
|
|
||||||
* [#6890](https://github.com/openlayers/openlayers/pull/6890) - Add a movestart event ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6910](https://github.com/openlayers/openlayers/pull/6910) - Avoid duplicates in Observables list ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6902](https://github.com/openlayers/openlayers/pull/6902) - Require minimum duration for kinetic animation ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6904](https://github.com/openlayers/openlayers/pull/6904) - chore(package): update sinon to version 2.3.4 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6901](https://github.com/openlayers/openlayers/pull/6901) - Added release note for changed methods of ol.style.regularShape ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#6886](https://github.com/openlayers/openlayers/pull/6886) - Make ol.source.Cluster extensible ([@gberaudo](https://github.com/gberaudo))
|
|
||||||
* [#6887](https://github.com/openlayers/openlayers/pull/6887) - Disable rotation for views with enableRotation: false ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6900](https://github.com/openlayers/openlayers/pull/6900) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6897](https://github.com/openlayers/openlayers/pull/6897) - ProjectionLike in proj.getPointResolution ([@probins](https://github.com/probins))
|
|
||||||
* [#6888](https://github.com/openlayers/openlayers/pull/6888) - Add note about custom functions to getPointResolution ([@probins](https://github.com/probins))
|
|
||||||
* [#6893](https://github.com/openlayers/openlayers/pull/6893) - Fix decimals options when writing features ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6759](https://github.com/openlayers/openlayers/pull/6759) - Regular shape points ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#6892](https://github.com/openlayers/openlayers/pull/6892) - Accept a ol.ProjectionLike instead of ol.proj.Projection ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6883](https://github.com/openlayers/openlayers/pull/6883) - Remove unused ol.pointer.EventSource#getMapping function ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6870](https://github.com/openlayers/openlayers/pull/6870) - Center map on proper earth, not one to the left ([@kannes](https://github.com/kannes))
|
|
||||||
* [#6872](https://github.com/openlayers/openlayers/pull/6872) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6876](https://github.com/openlayers/openlayers/pull/6876) - Only test ol.interaction.DragAndDrop if FileReader is supported ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6874](https://github.com/openlayers/openlayers/pull/6874) - Remove unused var from ol.proj ([@probins](https://github.com/probins))
|
|
||||||
* [#6875](https://github.com/openlayers/openlayers/pull/6875) - chore(package): update sinon to version 2.3.2 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6867](https://github.com/openlayers/openlayers/pull/6867) - add getArea to api ([@cs09g](https://github.com/cs09g))
|
|
||||||
* [#6863](https://github.com/openlayers/openlayers/pull/6863) - change size to optional ([@cs09g](https://github.com/cs09g))
|
|
||||||
* [#6864](https://github.com/openlayers/openlayers/pull/6864) - fix(package): update closure-util to version 1.21.0 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6834](https://github.com/openlayers/openlayers/pull/6834) - Move tolerance option ([@notnotse](https://github.com/notnotse))
|
|
||||||
* [#6856](https://github.com/openlayers/openlayers/pull/6856) - Fix creation of new URL in readSharedStyle_ and readSharedStyleMap_ ([@oterral](https://github.com/oterral))
|
|
||||||
* [#6852](https://github.com/openlayers/openlayers/pull/6852) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6851](https://github.com/openlayers/openlayers/pull/6851) - Register/unregister listeners in setActive ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6832](https://github.com/openlayers/openlayers/pull/6832) - Force state of error tiles when usInterimTilesOnError is false ([@oterral](https://github.com/oterral))
|
|
||||||
* [#6849](https://github.com/openlayers/openlayers/pull/6849) - Create URL object only when we can ([@oterral](https://github.com/oterral))
|
|
||||||
* [#6845](https://github.com/openlayers/openlayers/pull/6845) - Snap on circles ([@tchandelle](https://github.com/tchandelle))
|
|
||||||
* [#6842](https://github.com/openlayers/openlayers/pull/6842) - add condition to check if active ([@cs09g](https://github.com/cs09g))
|
|
||||||
* [#6844](https://github.com/openlayers/openlayers/pull/6844) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6841](https://github.com/openlayers/openlayers/pull/6841) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6839](https://github.com/openlayers/openlayers/pull/6839) - Update async to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6838](https://github.com/openlayers/openlayers/pull/6838) - fix(package): update handlebars to version 4.0.10 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6817](https://github.com/openlayers/openlayers/pull/6817) - Multiple layers in TopoJSON vector tiles ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6833](https://github.com/openlayers/openlayers/pull/6833) - Fix geojson-vt example for line and point geometries ([@oterral](https://github.com/oterral))
|
|
||||||
* [#6829](https://github.com/openlayers/openlayers/pull/6829) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6819](https://github.com/openlayers/openlayers/pull/6819) - Adjust/fix API for working with vector tile features ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6818](https://github.com/openlayers/openlayers/pull/6818) - Add tileJSON option to ol.source.TileJSON ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6805](https://github.com/openlayers/openlayers/pull/6805) - Display country name on click select ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6813](https://github.com/openlayers/openlayers/pull/6813) - Prepend the version with a v ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6814](https://github.com/openlayers/openlayers/pull/6814) - Re-add ol.render.Feature#getGeometry() ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6812](https://github.com/openlayers/openlayers/pull/6812) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6786](https://github.com/openlayers/openlayers/pull/6786) - Add ol.format.filter.during ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6806](https://github.com/openlayers/openlayers/pull/6806) - Add note about features with the same id ([@drnextgis](https://github.com/drnextgis))
|
|
||||||
* [#6802](https://github.com/openlayers/openlayers/pull/6802) - Remove unused setFeatures and getFormat methods ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6801](https://github.com/openlayers/openlayers/pull/6801) - Add getId method for ol.render.Feature ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6778](https://github.com/openlayers/openlayers/pull/6778) - Add a small tolerance when testing pointer event positions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6796](https://github.com/openlayers/openlayers/pull/6796) - Re-add accidently dropped condition ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6798](https://github.com/openlayers/openlayers/pull/6798) - chore(package): update clean-css-cli to version 4.1.2 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6795](https://github.com/openlayers/openlayers/pull/6795) - Fix ol.DrawGeometryFunctionType coordinates argument type ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6797](https://github.com/openlayers/openlayers/pull/6797) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6779](https://github.com/openlayers/openlayers/pull/6779) - Decouple source and rendered tile grid of vector tile sources ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6785](https://github.com/openlayers/openlayers/pull/6785) - Add insertVertexCondition to ol.interaction.Modify options ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6792](https://github.com/openlayers/openlayers/pull/6792) - Create intermediate canvas when resolutions have changed ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6790](https://github.com/openlayers/openlayers/pull/6790) - Update resemblejs to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6784](https://github.com/openlayers/openlayers/pull/6784) - chore(package): update clean-css-cli to version 4.1.0 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6556](https://github.com/openlayers/openlayers/pull/6556) - Reading kml xunits/yunits insetPixels ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
|
||||||
* [#6775](https://github.com/openlayers/openlayers/pull/6775) - Update closure-util to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6774](https://github.com/openlayers/openlayers/pull/6774) - Update fs-extra to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6770](https://github.com/openlayers/openlayers/pull/6770) - Enforce the "no missing requires" rule ([@tschaub](https://github.com/tschaub))
|
|
||||||
* [#6772](https://github.com/openlayers/openlayers/pull/6772) - Remove html tag from shortdesc ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6769](https://github.com/openlayers/openlayers/pull/6769) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6757](https://github.com/openlayers/openlayers/pull/6757) - Fix crashing on creation of snap-interaction, if Circle is among the features to snap to. ([@hajjimurad](https://github.com/hajjimurad))
|
|
||||||
* [#6766](https://github.com/openlayers/openlayers/pull/6766) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6765](https://github.com/openlayers/openlayers/pull/6765) - Add new callback function to view.FitOptions ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6764](https://github.com/openlayers/openlayers/pull/6764) - Added View#getInteracting() to the api ([@mblinsitu](https://github.com/mblinsitu))
|
|
||||||
* [#6760](https://github.com/openlayers/openlayers/pull/6760) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6761](https://github.com/openlayers/openlayers/pull/6761) - Update async to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6755](https://github.com/openlayers/openlayers/pull/6755) - Add missing goog.require ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6751](https://github.com/openlayers/openlayers/pull/6751) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6750](https://github.com/openlayers/openlayers/pull/6750) - Update fs-extra to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6741](https://github.com/openlayers/openlayers/pull/6741) - Allow user selection in overlay container ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6744](https://github.com/openlayers/openlayers/pull/6744) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6737](https://github.com/openlayers/openlayers/pull/6737) - Graticule labels ([@ahocevar](https://github.com/ahocevar))
|
|
||||||
* [#6740](https://github.com/openlayers/openlayers/pull/6740) - Fix spelling ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6730](https://github.com/openlayers/openlayers/pull/6730) - Update metalsmith-layouts to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6732](https://github.com/openlayers/openlayers/pull/6732) - Use firefox < 53 in travis ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6677](https://github.com/openlayers/openlayers/pull/6677) - Add an option to writeTransaction to support 3D geometries ([@Jenselme](https://github.com/Jenselme))
|
|
||||||
* [#6524](https://github.com/openlayers/openlayers/pull/6524) - Don't append feature prefix twice in WFS requests ([@Jenselme](https://github.com/Jenselme))
|
|
||||||
* [#6727](https://github.com/openlayers/openlayers/pull/6727) - Add default value in doc for the hitTolerance option ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6724](https://github.com/openlayers/openlayers/pull/6724) - Add wrapX option to Stamen source ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6728](https://github.com/openlayers/openlayers/pull/6728) - Fix tissot examples docs ([@fredj](https://github.com/fredj))
|
|
||||||
* [#6725](https://github.com/openlayers/openlayers/pull/6725) - Update dependencies to enable Greenkeeper 🌴 ([@openlayers](https://github.com/openlayers))
|
|
||||||
* [#6711](https://github.com/openlayers/openlayers/pull/6711) - Correct path to cleancss ([@tschaub](https://github.com/tschaub))
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{
|
|
||||||
"exports": [],
|
|
||||||
"src": [
|
|
||||||
"src/**/*.js",
|
|
||||||
"build/ol.ext/*.js",
|
|
||||||
"build/examples/{{id}}.js"
|
|
||||||
],
|
|
||||||
"compile": {
|
|
||||||
"js": [
|
|
||||||
"externs/olx.js",
|
|
||||||
"externs/oli.js"
|
|
||||||
],
|
|
||||||
"externs": [
|
|
||||||
"externs/bingmaps.js",
|
|
||||||
"externs/cartodb.js",
|
|
||||||
"externs/bootstrap.js",
|
|
||||||
"externs/closure-compiler.js",
|
|
||||||
"externs/esrijson.js",
|
|
||||||
"externs/example.js",
|
|
||||||
"externs/geojson.js",
|
|
||||||
"externs/jquery-1.9.js",
|
|
||||||
"externs/proj4js.js",
|
|
||||||
"externs/tilejson.js",
|
|
||||||
"externs/topojson.js"
|
|
||||||
],
|
|
||||||
"jscomp_error": [
|
|
||||||
"*"
|
|
||||||
],
|
|
||||||
"jscomp_off": [
|
|
||||||
"lintChecks",
|
|
||||||
"analyzerChecks",
|
|
||||||
"missingProvide",
|
|
||||||
"unknownDefines"
|
|
||||||
],
|
|
||||||
"extra_annotation_name": [
|
|
||||||
"api", "observable"
|
|
||||||
],
|
|
||||||
"rewrite_polyfills": "false",
|
|
||||||
"compilation_level": "ADVANCED",
|
|
||||||
"warning_level": "VERBOSE",
|
|
||||||
"output_wrapper": "(function(){%output%})();",
|
|
||||||
"use_types_for_optimization": true,
|
|
||||||
"manage_closure_dependencies": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{
|
|
||||||
"exports": [],
|
|
||||||
"src": [
|
|
||||||
"src/**/*.js",
|
|
||||||
"build/ol.ext/*.js",
|
|
||||||
"build/compiled-examples/all.js"
|
|
||||||
],
|
|
||||||
"compile": {
|
|
||||||
"js": [
|
|
||||||
"externs/olx.js",
|
|
||||||
"externs/oli.js"
|
|
||||||
],
|
|
||||||
"externs": [
|
|
||||||
"externs/bingmaps.js",
|
|
||||||
"externs/bootstrap.js",
|
|
||||||
"externs/cartodb.js",
|
|
||||||
"externs/closure-compiler.js",
|
|
||||||
"externs/esrijson.js",
|
|
||||||
"externs/example.js",
|
|
||||||
"externs/geojson.js",
|
|
||||||
"externs/jquery-1.9.js",
|
|
||||||
"externs/proj4js.js",
|
|
||||||
"externs/tilejson.js",
|
|
||||||
"externs/topojson.js"
|
|
||||||
],
|
|
||||||
"jscomp_error": [
|
|
||||||
"*"
|
|
||||||
],
|
|
||||||
"jscomp_off": [
|
|
||||||
"lintChecks",
|
|
||||||
"analyzerChecks",
|
|
||||||
"unusedLocalVariables"
|
|
||||||
],
|
|
||||||
"extra_annotation_name": [
|
|
||||||
"api", "observable"
|
|
||||||
],
|
|
||||||
"rewrite_polyfills": "false",
|
|
||||||
"compilation_level": "ADVANCED",
|
|
||||||
"warning_level": "VERBOSE",
|
|
||||||
"output_wrapper": "(function(){%output%})();",
|
|
||||||
"use_types_for_optimization": true,
|
|
||||||
"manage_closure_dependencies": true
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{{{ contents }}}
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en-US">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
||||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="./resources/prism/prism.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="./resources/layout.css" type="text/css">
|
|
||||||
{{{ extraHead.local }}}
|
|
||||||
{{{ css.tag }}}
|
|
||||||
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,URL"></script>
|
|
||||||
<script src="./resources/zeroclipboard/ZeroClipboard.min.js"></script>
|
|
||||||
<title>{{ title }}</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<header class="navbar" role="navigation">
|
|
||||||
<div class="container">
|
|
||||||
<div class="display-table pull-left" id="navbar-logo-container">
|
|
||||||
<a class="navbar-brand" href="./"><img src="./resources/logo-70x70.png"> OpenLayers Examples</a>
|
|
||||||
</div>
|
|
||||||
<!-- menu items that get hidden below 768px width -->
|
|
||||||
<nav class='collapse navbar-collapse navbar-responsive-collapse'>
|
|
||||||
<ul class="nav navbar-nav pull-right">
|
|
||||||
<li><a href="../doc">Docs</a></li>
|
|
||||||
<li><a class="active" href="index.html">Examples</a></li>
|
|
||||||
<li><a href="../apidoc">API</a></li>
|
|
||||||
<li><a href="https://github.com/openlayers/openlayers">Code</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
|
|
||||||
<div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
|
|
||||||
<button id="latest-dismiss" type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
This example uses OpenLayers v<span>{{ olVersion }}</span>. The <a id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
<h4 id="title">{{ title }}</h4>
|
|
||||||
{{{ contents }}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
<p id="shortdesc">{{ shortdesc }}</p>
|
|
||||||
<div id="docs">{{ md docs }}</div>
|
|
||||||
<div id="api-links">Related API documentation: {{{ js.apiHtml }}}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div id="source-controls">
|
|
||||||
<a id="copy-button"><i class="fa fa-clipboard"></i> Copy</a>
|
|
||||||
<a id="codepen-button"><i class="fa fa-codepen"></i> Edit</a>
|
|
||||||
</div>
|
|
||||||
<form method="POST" id="codepen-form" target="_blank" action="https://codepen.io/pen/define/">
|
|
||||||
<textarea class="hidden" name="title">{{ title }}</textarea>
|
|
||||||
<textarea class="hidden" name="description">{{ shortdesc }}</textarea>
|
|
||||||
<textarea class="hidden" name="js">{{ js.source }}</textarea>
|
|
||||||
<textarea class="hidden" name="css">{{ css.source }}</textarea>
|
|
||||||
<textarea class="hidden" name="html">{{ contents }}</textarea>
|
|
||||||
<input type="hidden" name="resources" value="https://openlayers.org/en/v{{ olVersion }}/css/ol.css,https://openlayers.org/en/v{{ olVersion }}/build/ol.js{{ extraResources }}">
|
|
||||||
<input type="hidden" name="data">
|
|
||||||
</form>
|
|
||||||
<pre><code id="example-source" class="language-markup"><!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>{{ title }}</title>
|
|
||||||
<link rel="stylesheet" href="https://openlayers.org/en/v{{ olVersion }}/css/ol.css" type="text/css">
|
|
||||||
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
|
|
||||||
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
|
|
||||||
<script src="https://openlayers.org/en/v{{ olVersion }}/build/ol.js"></script>{{#if extraHead.remote}}
|
|
||||||
{{ indent extraHead.remote spaces=4 }}{{/if}}{{#if css.source}}
|
|
||||||
<style>
|
|
||||||
{{ indent css.source spaces=6 }} </style>{{/if}}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{{ indent contents spaces=4 }} <script>
|
|
||||||
{{ indent js.source spaces=6 }} </script>
|
|
||||||
</body>
|
|
||||||
</html></code></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="./resources/common.js"></script>
|
|
||||||
<script src="./resources/prism/prism.min.js"></script>
|
|
||||||
{{{ js.tag }}}
|
|
||||||
</body>
|
|
||||||
<script>
|
|
||||||
var packageUrl = 'https://raw.githubusercontent.com/openlayers/openlayers.github.io/build/package.json';
|
|
||||||
fetch(packageUrl).then(function(response) {
|
|
||||||
return response.json();
|
|
||||||
}).then(function(json) {
|
|
||||||
var latestVersion = json.version;
|
|
||||||
document.getElementById('latest-version').innerHTML = latestVersion;
|
|
||||||
var url = window.location.href;
|
|
||||||
var branchSearch = url.match(/\/([^\/]*)\/examples\//);
|
|
||||||
var cookieText = 'dismissed=-' + latestVersion + '-';
|
|
||||||
var dismissed = document.cookie.indexOf(cookieText) != -1;
|
|
||||||
if (!dismissed && /^v[0-9\.]*$/.test(branchSearch[1]) && '{{ olVersion }}' != latestVersion) {
|
|
||||||
var link = url.replace(branchSearch[0], '/latest/examples/');
|
|
||||||
fetch(link, {method: 'head'}).then(function(response) {
|
|
||||||
var a = document.getElementById('latest-link');
|
|
||||||
a.href = response.status == 200 ? link : '../../latest/examples/';
|
|
||||||
});
|
|
||||||
var latestCheck = document.getElementById('latest-check');
|
|
||||||
latestCheck.style.display = '';
|
|
||||||
document.getElementById('latest-dismiss').onclick = function() {
|
|
||||||
latestCheck.style.display = 'none';
|
|
||||||
document.cookie = cookieText;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</html>
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
This folder contains example templates. These templates are used to build the examples in the `examples/` folder. The resulting examples are written to the `build/examples` folder.
|
|
||||||
|
|
||||||
Although the main purpose of these examples is to demonstrate how to use the API, they also serve other purposes in the development cycle, and so are not exactly as they would be in normal application code:
|
|
||||||
|
|
||||||
* every time the library changes, they are compiled together with the library as a basic check that they remain in sync with the library
|
|
||||||
|
|
||||||
* they use a special loader script to enable defining at run time which build mode (raw/debug/advanced) to use
|
|
||||||
|
|
||||||
To enable this, examples have the following, not needed in application code:
|
|
||||||
|
|
||||||
* each html file loads `loader.js`; application code would not need this, but would instead load the appropriate library build file, either a hosted version or a custom build
|
|
||||||
|
|
||||||
* each js file starts with `goog.require` functions, used by the compiler; application code would only have these if the code is to be compiled together with the library and/or Closure library
|
|
||||||
|
|
||||||
* some js files use type definitions (comments with @type tags); these are also used by the compiler, and are only needed if the code is to be compiled together with the library
|
|
||||||
|
|
||||||
* html files load `resources/common.js` and some scripts use `common.getRendererFromQueryString()` to set the map renderer; application code would not need these
|
|
||||||
|
|
||||||
At the bottom of each example generated in the `build/examples` folder, a modified version of its source code is shown. That modified version can be run standalone and is usually used as starting point for users to extend examples into their own application.
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
"opts": {
|
|
||||||
"recurse": true,
|
|
||||||
"template": "../../config/jsdoc/api/template"
|
|
||||||
},
|
|
||||||
"tags": {
|
|
||||||
"allowUnknownTags": true
|
|
||||||
},
|
|
||||||
"source": {
|
|
||||||
"includePattern": ".+\\.js(doc)?$",
|
|
||||||
"excludePattern": "(^|\\/|\\\\)_",
|
|
||||||
"include": [
|
|
||||||
"src",
|
|
||||||
"externs/oli.js",
|
|
||||||
"externs/olx.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"plugins": [
|
|
||||||
"plugins/markdown",
|
|
||||||
"../../config/jsdoc/api/plugins/inheritdoc",
|
|
||||||
"../../config/jsdoc/api/plugins/typedefs",
|
|
||||||
"../../config/jsdoc/api/plugins/events",
|
|
||||||
"../../config/jsdoc/api/plugins/observable",
|
|
||||||
"../../config/jsdoc/api/plugins/api"
|
|
||||||
],
|
|
||||||
"markdown": {
|
|
||||||
"parser": "gfm"
|
|
||||||
},
|
|
||||||
"templates": {
|
|
||||||
"cleverLinks": true,
|
|
||||||
"monospaceLinks": true,
|
|
||||||
"default": {
|
|
||||||
"outputSourceFiles": false
|
|
||||||
},
|
|
||||||
"applicationName": "OpenLayers"
|
|
||||||
},
|
|
||||||
"jsVersion": 180
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
<table><tr>
|
|
||||||
<th width="33.3%">Map</th><th width="33.3%">View</th><th width="33.3%">Layers</th>
|
|
||||||
</tr><tr>
|
|
||||||
<td><p>A [map](ol.Map.html) is made of [layers](ol.layer.html), a [view](ol.View.html) to visualize them, [interactions](ol.interaction.html) to modify map content and [controls](ol.control.html) with UI components.</p>
|
|
||||||
[Overview](ol.Map.html)<br>
|
|
||||||
[Creation](ol.Map.html#Map)<br>
|
|
||||||
[Events](ol.MapBrowserEvent.html)</td>
|
|
||||||
<td><p>The view manages the visual parameters of the map view, like resolution or rotation.</p>
|
|
||||||
[ol.View](ol.View.html) with center, projection, resolution and rotation</td>
|
|
||||||
<td><p>Layers are lightweight containers that get their data from [sources](ol.source.html).</p>
|
|
||||||
[ol.layer.Tile](ol.layer.Tile.html)<br>
|
|
||||||
[ol.layer.Image](ol.layer.Image.html)<br>
|
|
||||||
[ol.layer.Vector](ol.layer.Vector.html)<br>
|
|
||||||
[ol.layer.VectorTile](ol.layer.VectorTile.html)</td>
|
|
||||||
</tr><tr>
|
|
||||||
<th>Controls</th><th>Interactions</th><th>Sources and formats</th>
|
|
||||||
</tr><tr>
|
|
||||||
<td>[Map default controls](ol.control.html#.defaults)<br>
|
|
||||||
[All controls](ol.control.html)
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
[Map default interactions](ol.interaction.html#.defaults)<br>
|
|
||||||
Interactions for [vector features](ol.Feature.html)
|
|
||||||
<ul><li>[ol.interaction.Select](ol.interaction.Select.html)</li>
|
|
||||||
<li>[ol.interaction.Draw](ol.interaction.Draw.html)</li>
|
|
||||||
<li>[ol.interaction.Modify](ol.interaction.Modify.html)</li></ul>
|
|
||||||
[All interactions](ol.interaction.html)</td>
|
|
||||||
<td>[Tile sources](ol.source.Tile.html) for [ol.layer.Tile](ol.layer.Tile.html)
|
|
||||||
<br>[Image sources](ol.source.Image.html) for [ol.layer.Image](ol.layer.Image.html)
|
|
||||||
<br>[Vector sources](ol.source.Vector.html) for [ol.layer.Vector](ol.layer.Vector.html)
|
|
||||||
<br>[Vector tile sources](ol.source.VectorTile.html) for [ol.layer.VectorTile](ol.layer.VectorTile.html)
|
|
||||||
<br>[Formats](ol.format.Feature.html) for reading/writing vector data
|
|
||||||
<br>[ol.format.WMSCapabilities](ol.format.WMSCapabilities.html)</td></tr>
|
|
||||||
<tr><th>Projections</th><th>Observable objects</th><th>Other components</th></tr>
|
|
||||||
<tr><td><p>All coordinates and extents need to be provided in view projection (default: EPSG:3857). To transform, use [ol.proj.transform()](ol.proj.html#.transform) and [ol.proj.transformExtent()](ol.proj.html#.transformExtent).</p>
|
|
||||||
[ol.proj](ol.proj.html)</td>
|
|
||||||
<td><p>Changes to all [ol.Objects](ol.Object.html) can observed by calling the [object.on('propertychange')](ol.Object.html#on) method. Listeners receive an [ol.Object.Event](ol.Object.Event.html) with information on the changed property and old value.</p>
|
|
||||||
<td>[ol.DeviceOrientation](ol.DeviceOrientation.html)<br>
|
|
||||||
[ol.Geolocation](ol.Geolocation.html)<br>
|
|
||||||
[ol.Overlay](ol.Overlay.html)<br></td>
|
|
||||||
</tr></table>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### API change policy
|
|
||||||
|
|
||||||
The OpenLayers API consists of
|
|
||||||
* names and signatures of constructors
|
|
||||||
* names and signatures of instance methods and properties
|
|
||||||
* names and signatures of functions
|
|
||||||
* names of constants
|
|
||||||
|
|
||||||
Within a major release series, the API will not be changed. Any changes to the API will be accompanied by a new major release.
|
|
||||||
|
|
||||||
*Note*: The API change policy does not cover CSS class names that are used to style the
|
|
||||||
OpenLayers UI.
|
|
||||||
|
|
||||||
*Note for Closure Compiler users compiling their application code together with OpenLayers*:
|
|
||||||
The names of types other than those in the list above (e.g. `ol.Coordinate`) are subject to change. It
|
|
||||||
is therefore recommended to either use the resolved type as listed in the API docs (e.g.
|
|
||||||
`Array.<number>` instead of `ol.Coordinate`), or pay attention to the upgrade notes, which will list
|
|
||||||
the changes for those types.
|
|
||||||
@@ -1,150 +0,0 @@
|
|||||||
/**
|
|
||||||
* Define an @api tag
|
|
||||||
*/
|
|
||||||
exports.defineTags = function(dictionary) {
|
|
||||||
dictionary.defineTag('api', {
|
|
||||||
mustHaveValue: false,
|
|
||||||
canHaveType: false,
|
|
||||||
canHaveName: false,
|
|
||||||
onTagged: function(doclet, tag) {
|
|
||||||
includeTypes(doclet);
|
|
||||||
doclet.stability = "stable";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Based on @api annotations, and assuming that items with no @api annotation
|
|
||||||
* should not be documented, this plugin removes undocumented symbols
|
|
||||||
* from the documentation.
|
|
||||||
*/
|
|
||||||
|
|
||||||
var api = [];
|
|
||||||
var classes = {};
|
|
||||||
var types = {};
|
|
||||||
|
|
||||||
function hasApiMembers(doclet) {
|
|
||||||
return doclet.longname.split('#')[0] == this.longname;
|
|
||||||
}
|
|
||||||
|
|
||||||
function includeAugments(doclet) {
|
|
||||||
var augments = doclet.augments;
|
|
||||||
if (augments) {
|
|
||||||
var cls;
|
|
||||||
for (var i = augments.length - 1; i >= 0; --i) {
|
|
||||||
cls = classes[augments[i]];
|
|
||||||
if (cls) {
|
|
||||||
includeAugments(cls);
|
|
||||||
if (cls.fires) {
|
|
||||||
if (!doclet.fires) {
|
|
||||||
doclet.fires = [];
|
|
||||||
}
|
|
||||||
cls.fires.forEach(function(f) {
|
|
||||||
if (doclet.fires.indexOf(f) == -1) {
|
|
||||||
doclet.fires.push(f);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (cls.observables) {
|
|
||||||
if (!doclet.observables) {
|
|
||||||
doclet.observables = [];
|
|
||||||
}
|
|
||||||
cls.observables.forEach(function(f) {
|
|
||||||
if (doclet.observables.indexOf(f) == -1) {
|
|
||||||
doclet.observables.push(f);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (cls.longname.indexOf('oli.') !== 0) {
|
|
||||||
cls._hideConstructor = true;
|
|
||||||
delete cls.undocumented;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function extractTypes(item) {
|
|
||||||
item.type.names.forEach(function(type) {
|
|
||||||
var match = type.match(/^(.*<)?([^>]*)>?$/);
|
|
||||||
if (match) {
|
|
||||||
types[match[2]] = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function includeTypes(doclet) {
|
|
||||||
if (doclet.params && doclet.kind != 'class') {
|
|
||||||
doclet.params.forEach(extractTypes);
|
|
||||||
}
|
|
||||||
if (doclet.returns) {
|
|
||||||
doclet.returns.forEach(extractTypes);
|
|
||||||
}
|
|
||||||
if (doclet.isEnum) {
|
|
||||||
types[doclet.meta.code.name] = true;
|
|
||||||
}
|
|
||||||
if (doclet.type && doclet.meta.code.type == 'MemberExpression') {
|
|
||||||
// types in olx.js
|
|
||||||
extractTypes(doclet);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.handlers = {
|
|
||||||
|
|
||||||
newDoclet: function(e) {
|
|
||||||
var doclet = e.doclet;
|
|
||||||
// Keep track of api items - needed in parseComplete to determine classes
|
|
||||||
// with api members.
|
|
||||||
if (doclet.meta.filename == 'olx.js' && doclet.kind == 'typedef') {
|
|
||||||
doclet.undocumented = false;
|
|
||||||
}
|
|
||||||
if (doclet.stability) {
|
|
||||||
api.push(doclet);
|
|
||||||
}
|
|
||||||
// Mark explicity defined namespaces - needed in parseComplete to keep
|
|
||||||
// namespaces that we need as containers for api items.
|
|
||||||
if (/.*\.jsdoc$/.test(doclet.meta.filename) && doclet.kind == 'namespace') {
|
|
||||||
doclet.namespace_ = true;
|
|
||||||
}
|
|
||||||
if (doclet.kind == 'class') {
|
|
||||||
classes[doclet.longname] = doclet;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseComplete: function(e) {
|
|
||||||
var doclets = e.doclets;
|
|
||||||
for (var i = doclets.length - 1; i >= 0; --i) {
|
|
||||||
var doclet = doclets[i];
|
|
||||||
if (doclet.stability || doclet.namespace_) {
|
|
||||||
if (doclet.kind == 'class') {
|
|
||||||
includeAugments(doclet);
|
|
||||||
}
|
|
||||||
if (doclet.fires) {
|
|
||||||
doclet.fires.sort(function(a, b) {
|
|
||||||
return a.split(/#?event:/)[1] < b.split(/#?event:/)[1] ? -1 : 1;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (doclet.observables) {
|
|
||||||
doclet.observables.sort(function(a, b) {
|
|
||||||
return a.name < b.name ? -1 : 1;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
// Always document namespaces and items with stability annotation
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (doclet.kind == 'class' && api.some(hasApiMembers, doclet)) {
|
|
||||||
// Mark undocumented classes with documented members as unexported.
|
|
||||||
// This is used in ../template/tmpl/container.tmpl to hide the
|
|
||||||
// constructor from the docs.
|
|
||||||
doclet._hideConstructor = true;
|
|
||||||
includeAugments(doclet);
|
|
||||||
} else if (doclet.undocumented !== false && !doclet._hideConstructor && !(doclet.kind == 'typedef' && doclet.longname in types)) {
|
|
||||||
// Remove all other undocumented symbols
|
|
||||||
doclet.undocumented = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
var events = {};
|
|
||||||
var classes = {};
|
|
||||||
|
|
||||||
exports.handlers = {
|
|
||||||
|
|
||||||
newDoclet: function(e) {
|
|
||||||
var doclet = e.doclet;
|
|
||||||
var cls;
|
|
||||||
if (doclet.kind == 'event') {
|
|
||||||
cls = doclet.longname.split('#')[0];
|
|
||||||
if (!(cls in events)) {
|
|
||||||
events[cls] = [];
|
|
||||||
}
|
|
||||||
events[cls].push(doclet.longname);
|
|
||||||
} else if (doclet.kind == 'class') {
|
|
||||||
classes[doclet.longname] = doclet;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseComplete: function(e) {
|
|
||||||
var doclets = e.doclets;
|
|
||||||
var doclet, i, ii, j, jj, event, fires;
|
|
||||||
for (i = 0, ii = doclets.length - 1; i < ii; ++i) {
|
|
||||||
doclet = doclets[i];
|
|
||||||
if (doclet.fires) {
|
|
||||||
if (doclet.kind == 'class') {
|
|
||||||
fires = [];
|
|
||||||
for (j = 0, jj = doclet.fires.length; j < jj; ++j) {
|
|
||||||
event = doclet.fires[j].replace('event:', '');
|
|
||||||
if (events[event]) {
|
|
||||||
fires.push.apply(fires, events[event]);
|
|
||||||
} else {
|
|
||||||
fires.push(doclet.fires[j]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
doclet.fires = fires;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
/*
|
|
||||||
* This is a hack to prevent inheritDoc tags from entirely removing
|
|
||||||
* documentation of the method that inherits the documentation.
|
|
||||||
*
|
|
||||||
* TODO: Remove this hack when https://github.com/jsdoc3/jsdoc/issues/53
|
|
||||||
* is addressed.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
exports.defineTags = function(dictionary) {
|
|
||||||
dictionary.defineTag('inheritDoc', {
|
|
||||||
mustHaveValue: false,
|
|
||||||
canHaveType: false,
|
|
||||||
canHaveName: false,
|
|
||||||
onTagged: function(doclet, tag) {
|
|
||||||
doclet.inheritdoc = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
var lookup = {};
|
|
||||||
var incompleteByClass = {};
|
|
||||||
var keepKeys = ['comment', 'meta', 'name', 'memberof', 'longname', 'augment',
|
|
||||||
'stability'];
|
|
||||||
|
|
||||||
exports.handlers = {
|
|
||||||
|
|
||||||
newDoclet: function(e) {
|
|
||||||
var doclet = e.doclet;
|
|
||||||
var incompletes;
|
|
||||||
if (!(doclet.longname in lookup)) {
|
|
||||||
lookup[doclet.longname] = [];
|
|
||||||
}
|
|
||||||
lookup[doclet.longname].push(doclet);
|
|
||||||
if (doclet.inheritdoc) {
|
|
||||||
if (!(doclet.memberof in incompleteByClass)) {
|
|
||||||
incompleteByClass[doclet.memberof] = [];
|
|
||||||
}
|
|
||||||
incompletes = incompleteByClass[doclet.memberof];
|
|
||||||
if (incompletes.indexOf(doclet.name) == -1) {
|
|
||||||
incompletes.push(doclet.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseComplete: function(e) {
|
|
||||||
var ancestors, candidate, candidates, doclet, i, j, k, l, key;
|
|
||||||
var incompleteDoclet, stability, incomplete, incompletes;
|
|
||||||
var doclets = e.doclets;
|
|
||||||
for (i = doclets.length - 1; i >= 0; --i) {
|
|
||||||
doclet = doclets[i];
|
|
||||||
if (doclet.augments) {
|
|
||||||
ancestors = [].concat(doclet.augments);
|
|
||||||
}
|
|
||||||
incompletes = incompleteByClass[doclet.longname];
|
|
||||||
if (ancestors && incompletes) {
|
|
||||||
// collect ancestors from the whole hierarchy
|
|
||||||
for (j = 0; j < ancestors.length; ++j) {
|
|
||||||
candidates = lookup[ancestors[j]];
|
|
||||||
if (candidates) {
|
|
||||||
for (k = candidates.length - 1; k >= 0; --k) {
|
|
||||||
candidate = candidates[k];
|
|
||||||
if (candidate.augments) {
|
|
||||||
ancestors = ancestors.concat(candidate.augments);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// walk through all inheritDoc members
|
|
||||||
for (j = incompletes.length - 1; j >= 0; --j) {
|
|
||||||
incomplete = incompletes[j];
|
|
||||||
candidates = lookup[doclet.longname + '#' + incomplete];
|
|
||||||
if (candidates) {
|
|
||||||
// get the incomplete doclet that needs to be augmented
|
|
||||||
for (k = candidates.length - 1; k >= 0; --k) {
|
|
||||||
incompleteDoclet = candidates[k];
|
|
||||||
if (incompleteDoclet.inheritdoc) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// find the documented ancestor
|
|
||||||
for (k = ancestors.length - 1; k >= 0; --k) {
|
|
||||||
candidates = lookup[ancestors[k] + '#' + incomplete];
|
|
||||||
if (candidates) {
|
|
||||||
for (l = candidates.length - 1; l >= 0; --l) {
|
|
||||||
candidate = candidates[l];
|
|
||||||
if (candidate && !candidate.inheritdoc) {
|
|
||||||
stability = candidate.stability || incompleteDoclet.stability;
|
|
||||||
if (stability) {
|
|
||||||
incompleteDoclet.stability = stability;
|
|
||||||
for (key in candidate) {
|
|
||||||
if (candidate.hasOwnProperty(key) &&
|
|
||||||
keepKeys.indexOf(key) == -1) {
|
|
||||||
incompleteDoclet[key] = candidate[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
var classes = {};
|
|
||||||
var observables = {};
|
|
||||||
|
|
||||||
exports.handlers = {
|
|
||||||
|
|
||||||
newDoclet: function(e) {
|
|
||||||
var doclet = e.doclet;
|
|
||||||
if (doclet.kind == 'class') {
|
|
||||||
classes[doclet.longname] = doclet;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseComplete: function(e) {
|
|
||||||
var doclets = e.doclets;
|
|
||||||
var cls, doclet, event, i, ii, observable;
|
|
||||||
for (i = 0, ii = doclets.length - 1; i < ii; ++i) {
|
|
||||||
doclet = doclets[i];
|
|
||||||
cls = classes[doclet.longname.split('#')[0]];
|
|
||||||
if (typeof doclet.observable == 'string' && cls) {
|
|
||||||
var name = doclet.name.replace(/^[sg]et/, '');
|
|
||||||
name = name.substr(0, 1).toLowerCase() + name.substr(1);
|
|
||||||
var key = doclet.longname.split('#')[0] + '#' + name;
|
|
||||||
doclet.observable = key;
|
|
||||||
if (!observables[key]) {
|
|
||||||
observables[key] = {};
|
|
||||||
}
|
|
||||||
observable = observables[key];
|
|
||||||
observable.name = name;
|
|
||||||
observable.readonly = typeof observable.readonly == 'boolean' ?
|
|
||||||
observable.readonly : true;
|
|
||||||
if (doclet.name.indexOf('get') === 0) {
|
|
||||||
observable.type = doclet.returns[0].type;
|
|
||||||
observable.description = doclet.returns[0].description;
|
|
||||||
} else if (doclet.name.indexOf('set') === 0) {
|
|
||||||
observable.readonly = false;
|
|
||||||
}
|
|
||||||
if (doclet.stability) {
|
|
||||||
observable.stability = doclet.stability;
|
|
||||||
}
|
|
||||||
if (!cls.observables) {
|
|
||||||
cls.observables = [];
|
|
||||||
}
|
|
||||||
observable = observables[doclet.observable];
|
|
||||||
if (observable.type && cls.observables.indexOf(observable) == -1) {
|
|
||||||
cls.observables.push(observable);
|
|
||||||
}
|
|
||||||
if (!cls.fires) {
|
|
||||||
cls.fires = [];
|
|
||||||
}
|
|
||||||
event = 'ol.Object.Event#event:change:' + name;
|
|
||||||
if (cls.fires.indexOf(event) == -1) {
|
|
||||||
cls.fires.push(event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
exports.defineTags = function(dictionary) {
|
|
||||||
dictionary.defineTag('observable', {
|
|
||||||
mustNotHaveValue: true,
|
|
||||||
canHaveType: false,
|
|
||||||
canHaveName: false,
|
|
||||||
onTagged: function(doclet, tag) {
|
|
||||||
doclet.observable = '';
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
/*
|
|
||||||
* Converts olx.js @type annotations into properties of the previous @typedef.
|
|
||||||
* Changes @enum annotations into @typedef.
|
|
||||||
*/
|
|
||||||
|
|
||||||
var lastOlxTypedef = null;
|
|
||||||
var olxTypes = {};
|
|
||||||
// names of the olx typenames
|
|
||||||
var olxTypeNames = [];
|
|
||||||
// types that are undefined or typedefs containing undefined
|
|
||||||
var undefinedLikes = null;
|
|
||||||
|
|
||||||
function addSubparams(params) {
|
|
||||||
for (var j = 0, jj = params.length; j < jj; ++j) {
|
|
||||||
var param = params[j];
|
|
||||||
var types = param.type.names;
|
|
||||||
for (var k = 0, kk = types.length; k < kk; ++k) {
|
|
||||||
var name = types[k];
|
|
||||||
if (name in olxTypes) {
|
|
||||||
param.subparams = olxTypes[name];
|
|
||||||
// TODO addSubparams(param.subparams);
|
|
||||||
// TODO Do we need to support multiple object literal types per
|
|
||||||
// param?
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Changes the description of the param, if it is found to be a required
|
|
||||||
* option of an olxTypeName.
|
|
||||||
*/
|
|
||||||
function markRequiredIfNeeded(doclet){
|
|
||||||
var memberof = doclet.memberof;
|
|
||||||
// only check doclets that belong to an olxTypeName
|
|
||||||
if (!memberof || olxTypeNames.indexOf(memberof) == -1) {
|
|
||||||
return doclet;
|
|
||||||
}
|
|
||||||
|
|
||||||
var types = doclet.type.names;
|
|
||||||
var isRequiredParam = true;
|
|
||||||
|
|
||||||
// iterate over all types that are like-undefined (see above for explanation)
|
|
||||||
for (var idx = undefinedLikes.length - 1; idx >= 0; idx--) {
|
|
||||||
var undefinedLike = undefinedLikes[idx];
|
|
||||||
// … if the current types contains a type that is undefined-like,
|
|
||||||
// it is not required.
|
|
||||||
if (types.indexOf(undefinedLike) != -1) {
|
|
||||||
isRequiredParam = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isRequiredParam) {
|
|
||||||
var reqSnippet = '<span class="required-option">Required.</span></p>';
|
|
||||||
var endsWithP = /<\/p>$/i;
|
|
||||||
var description = doclet.description;
|
|
||||||
if (description && endsWithP.test(description)) {
|
|
||||||
description = description.replace(endsWithP, ' ' + reqSnippet);
|
|
||||||
} else if (doclet.description === undefined) {
|
|
||||||
description = '<p>' + reqSnippet;
|
|
||||||
}
|
|
||||||
doclet.description = description;
|
|
||||||
}
|
|
||||||
return doclet;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Iterates over all doclets and finds the names of types that contain
|
|
||||||
* undefined. Stores the names in the global variable undefinedLikes, so
|
|
||||||
* that e.g. markRequiredIfNeeded can use these.
|
|
||||||
*/
|
|
||||||
function findTypesLikeUndefined(doclets) {
|
|
||||||
undefinedLikes = ['undefined']; // include type 'undefined' explicitly
|
|
||||||
for (var i = doclets.length - 1; i >= 0; --i) {
|
|
||||||
var doclet = doclets[i];
|
|
||||||
if(doclet.kind === 'typedef') {
|
|
||||||
var types = doclet.type.names;
|
|
||||||
if (types.indexOf('undefined') !== -1) {
|
|
||||||
// the typedef contains 'undefined', so it self is undefinedLike.
|
|
||||||
undefinedLikes.push(doclet.longname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.handlers = {
|
|
||||||
|
|
||||||
newDoclet: function(e) {
|
|
||||||
var doclet = e.doclet;
|
|
||||||
if (doclet.meta.filename == 'olx.js') {
|
|
||||||
if (doclet.kind == 'typedef') {
|
|
||||||
lastOlxTypedef = doclet;
|
|
||||||
olxTypeNames.push(doclet.longname);
|
|
||||||
olxTypes[doclet.longname] = [];
|
|
||||||
doclet.properties = [];
|
|
||||||
} else if (lastOlxTypedef && doclet.memberof == lastOlxTypedef.longname) {
|
|
||||||
lastOlxTypedef.properties.push(doclet);
|
|
||||||
olxTypes[lastOlxTypedef.longname].push(doclet);
|
|
||||||
} else {
|
|
||||||
lastOlxTypedef = null;
|
|
||||||
}
|
|
||||||
} else if (doclet.isEnum) {
|
|
||||||
// We never export enums, so we document them like typedefs
|
|
||||||
doclet.kind = 'typedef';
|
|
||||||
delete doclet.isEnum;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseComplete: function(e) {
|
|
||||||
var doclets = e.doclets;
|
|
||||||
findTypesLikeUndefined(doclets);
|
|
||||||
for (var i = doclets.length - 1; i >= 0; --i) {
|
|
||||||
var doclet = doclets[i];
|
|
||||||
var params = doclet.params;
|
|
||||||
if (params) {
|
|
||||||
addSubparams(params);
|
|
||||||
}
|
|
||||||
markRequiredIfNeeded(doclet);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
# API Documentation
|
|
||||||
|
|
||||||
This directory contains configuration (`conf.json`), static content (`index.md`), template (`template/`) and plugins (`plugins/`) for the [JSDoc3](http://usejsdoc.org/) API generator.
|
|
||||||
|
|
||||||
## Documenting the source code
|
|
||||||
|
|
||||||
JSDoc annotations are used for metadata used by the compiler, for defining the user facing API, and for user documentation.
|
|
||||||
|
|
||||||
In the simplest case, a JSDoc block can look like this:
|
|
||||||
```js
|
|
||||||
/**
|
|
||||||
* Add the given control to the map.
|
|
||||||
* @param {ol.control.Control} control Control.
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
ol.Map.prototype.addControl = function(control) {
|
|
||||||
// ...
|
|
||||||
};
|
|
||||||
```
|
|
||||||
The first line is text for the user documentation. This can be long, and it can
|
|
||||||
contain Markdown.
|
|
||||||
|
|
||||||
The second line tells the Closure compiler the type of the argument.
|
|
||||||
|
|
||||||
The third line (`@api`) marks the method as part of the api and thus exportable. Without such an api annotation, the method will not be documented in the generated API documentation. Symbols without an api annotation will also not be exportable.
|
|
||||||
|
|
||||||
The `@api` annotation can be used in conjunction with the `@inheritDoc` annotation to export a symbol that is documented on a parent class (where the method may be abstract). In general, `@api` annotations should never be used on abstract methods (only on their implementations).
|
|
||||||
|
|
||||||
### Events
|
|
||||||
|
|
||||||
Events are documented using `@fires` and `@event` annotations:
|
|
||||||
```js
|
|
||||||
/**
|
|
||||||
* Constants for event names.
|
|
||||||
* @enum {string}
|
|
||||||
*/
|
|
||||||
ol.MapBrowserEventType = {
|
|
||||||
/**
|
|
||||||
* A true single click with no dragging and no double click. Note that this
|
|
||||||
* event is delayed by 250 ms to ensure that it is not a double click.
|
|
||||||
* @event ol.MapBrowserEvent#singleclick
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
SINGLECLICK: 'singleclick',
|
|
||||||
// ...
|
|
||||||
};
|
|
||||||
```
|
|
||||||
Note the value of the `@event` annotation. The text before the hash refers to the event class that the event belongs to, and the text after the hash is the type of the event.
|
|
||||||
|
|
||||||
To export event properties, they need to be defined in `externs/oli.js` (also see `readme.md` in `externs/`) and marked with an @api annotation:
|
|
||||||
```js
|
|
||||||
/** @interface */
|
|
||||||
oli.MapBrowserEvent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {ol.Coordinate}
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
oli.MapBrowserEvent.prototype.coordinate;
|
|
||||||
|
|
||||||
// ...
|
|
||||||
|
|
||||||
};
|
|
||||||
```
|
|
||||||
To document which events are fired by a class or method, the `@fires` annotation is used:
|
|
||||||
```js
|
|
||||||
/**
|
|
||||||
* @fires ol.MapBrowserEvent
|
|
||||||
* @fires ol.MapEvent
|
|
||||||
* @fires ol.render.Event
|
|
||||||
* ...
|
|
||||||
*/
|
|
||||||
ol.Map = function(options) {
|
|
||||||
// ...
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
### Observable Properties
|
|
||||||
|
|
||||||
Observable properties are documented using the `@observable` annotation. This annotation is added to the getter of an observable property. If an observable property is also settable, the setter is annotated with `@observable` as well.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
This template is based on the [Jaguar](https://github.com/davidshimjs/jaguarjs/tree/master/docs/templates/jaguar) template. [JaguarJS](https://github.com/davidshimjs/jaguarjs) is licensed under the [LGPL license](https://github.com/davidshimjs/jaguarjs/tree/master/LICENSE).
|
|
||||||
|
|
||||||
The default template for JSDoc 3 uses: [the Taffy Database library](http://taffydb.com/) and the [Underscore Template library](http://documentcloud.github.com/underscore/#template).
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
@navWidth: 250px;
|
|
||||||
@colorSubtitle: rgb(119, 156, 52);
|
|
||||||
@colorRed: rgb(238, 125, 125);
|
|
||||||
@colorLink: #2a6496;
|
|
||||||
@colorBgNavi: #2a2a2a;
|
|
||||||
|
|
||||||
.font-description () {
|
|
||||||
font-family: "freight-text-pro",Georgia,Cambria,"Times New Roman",Times,serif
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
@import "common.less";
|
|
||||||
|
|
||||||
footer {
|
|
||||||
margin: 15px 0;
|
|
||||||
padding-top: 15px;
|
|
||||||
border-top: 1px solid #e1e1e1;
|
|
||||||
.font-description();
|
|
||||||
font-size: 0.8em;
|
|
||||||
color: gray;
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
@import "common.less";
|
|
||||||
|
|
||||||
// normalize
|
|
||||||
html, body {
|
|
||||||
font: 1em "jaf-bernino-sans","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
ul, ol {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
li {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wrap {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "navigation.less";
|
|
||||||
@import "main.less";
|
|
||||||
@import "footer.less";
|
|
||||||
@@ -1,288 +0,0 @@
|
|||||||
@import "common.less";
|
|
||||||
|
|
||||||
.main {
|
|
||||||
padding: 20px 20px;
|
|
||||||
margin-left: @navWidth;
|
|
||||||
.page-title {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1.6em;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1.5em;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 12px;
|
|
||||||
margin: 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h5 {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4.name {
|
|
||||||
span.type-signature {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: gray;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 0.7em;
|
|
||||||
padding: 2px 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.type {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.glyphicon {
|
|
||||||
display: inline-block;
|
|
||||||
vertical-align: middle;
|
|
||||||
color: #e1e1e1;
|
|
||||||
margin-left: 7px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.returnType {
|
|
||||||
margin-left: 3px;
|
|
||||||
background-color: transparent!important;
|
|
||||||
color: gray!important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
span.static {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: @colorSubtitle!important;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 0.7em;
|
|
||||||
padding: 2px 4px;
|
|
||||||
margin-right: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.number {
|
|
||||||
background-color: #ccc!important;
|
|
||||||
color: #2fa2b1!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.string {
|
|
||||||
background-color: #ccc!important;
|
|
||||||
color: #2fa2b1!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.object {
|
|
||||||
background-color: #ccc!important;
|
|
||||||
color: #2fa2b1!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.array {
|
|
||||||
background-color: #ccc!important;
|
|
||||||
color: #2fa2b1!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.boolean {
|
|
||||||
background-color: #ccc!important;
|
|
||||||
color: #2fa2b1!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.subsection-title {
|
|
||||||
font-size: 14px;
|
|
||||||
margin-top: 30px;
|
|
||||||
color: @colorSubtitle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
|
||||||
margin-top: 10px;
|
|
||||||
// .font-description();
|
|
||||||
font-size: 13px;
|
|
||||||
|
|
||||||
p {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-source {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
dt.tag-source {
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt.tag-todo {
|
|
||||||
font-size: 10px;
|
|
||||||
display: inline-block;
|
|
||||||
background-color: @colorLink;
|
|
||||||
color: #fff;
|
|
||||||
padding: 2px 4px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.type-signature {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-deprecated {
|
|
||||||
display: inline-block;
|
|
||||||
font-size: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.important {
|
|
||||||
background-color: @colorRed;
|
|
||||||
color: #fff;
|
|
||||||
padding: 2px 4px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nameContainer {
|
|
||||||
position: relative;
|
|
||||||
margin-top: 20px;
|
|
||||||
padding-top: 5px;
|
|
||||||
border-top: 1px solid #e1e1e1;
|
|
||||||
|
|
||||||
.inherited {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: #888!important;
|
|
||||||
font-size: 0.7em;
|
|
||||||
padding: 2px 4px;
|
|
||||||
margin-right: 5px;
|
|
||||||
a {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-source {
|
|
||||||
position: absolute;
|
|
||||||
top: 17px;
|
|
||||||
right: 0;
|
|
||||||
font-size: 10px;
|
|
||||||
a {
|
|
||||||
color: gray;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.inherited {
|
|
||||||
color: gray;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
margin-right: 150px;
|
|
||||||
line-height: 1.3;
|
|
||||||
|
|
||||||
.signature {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
|
|
||||||
th {
|
|
||||||
padding: 3px 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
vertical-align: top;
|
|
||||||
padding: 5px 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name {
|
|
||||||
width: 110px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.type {
|
|
||||||
width: 60px;
|
|
||||||
color: #aaa;
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.attributes {
|
|
||||||
width: 80px;
|
|
||||||
color: #aaa;
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
|
||||||
font-size: 12px;
|
|
||||||
p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.optional {
|
|
||||||
float: left;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: #ddd!important;
|
|
||||||
font-size: 0.7em;
|
|
||||||
padding: 2px 4px;
|
|
||||||
margin-right: 5px;
|
|
||||||
color: gray;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.readme {
|
|
||||||
p {
|
|
||||||
margin-top: 15px;
|
|
||||||
line-height: 1.2;
|
|
||||||
font-size: 0.85em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 1.7em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
margin-top: 30px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-bottom: 1px solid #e1e1e1;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
|
||||||
font-size: 0.9em;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
article {
|
|
||||||
ol, ul {
|
|
||||||
margin-left: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol > li {
|
|
||||||
list-style-type: decimal;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul > li {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
list-style-type: disc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
@import "common.less";
|
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 8px;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background-color: gray;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navigation {
|
|
||||||
position: fixed;
|
|
||||||
float: left;
|
|
||||||
width: @navWidth;
|
|
||||||
height: 100%;
|
|
||||||
background-color: @colorBgNavi;
|
|
||||||
|
|
||||||
.applicationName {
|
|
||||||
margin: 0;
|
|
||||||
margin-top: 15px;
|
|
||||||
padding: 10px 15px;
|
|
||||||
font: bold 1.25em Helvetica;
|
|
||||||
color: #fff;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.search {
|
|
||||||
padding: 10px 15px;
|
|
||||||
|
|
||||||
input {
|
|
||||||
background-color: #333;
|
|
||||||
color: #fff;
|
|
||||||
border-color: #555;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.list {
|
|
||||||
padding: 10px 15px 0 15px;
|
|
||||||
position: relative;
|
|
||||||
overflow: auto;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
li.item {
|
|
||||||
margin-bottom: 8px;
|
|
||||||
padding-bottom: 8px;
|
|
||||||
border-bottom: 1px solid #333;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #bbb;
|
|
||||||
&:hover {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.title {
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
a {
|
|
||||||
color: #e1e1e1;
|
|
||||||
&:hover {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
display: block;
|
|
||||||
font-size: 0.8em;
|
|
||||||
|
|
||||||
.static {
|
|
||||||
display: block;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: @colorSubtitle;
|
|
||||||
color: #000;
|
|
||||||
font-size: 0.7em;
|
|
||||||
padding: 2px 4px;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.subtitle {
|
|
||||||
margin-top: 10px;
|
|
||||||
font: bold 0.65em Helvetica;
|
|
||||||
color: @colorSubtitle;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ul {
|
|
||||||
& > li {
|
|
||||||
font-size: 0.7em;
|
|
||||||
padding-left: 8px;
|
|
||||||
margin-top: 2px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.itemMembers {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||