Skip to content
This repository was archived by the owner on Mar 6, 2019. It is now read-only.

[webgl-point] Add hit-detection support for WebGL #49

Open
wants to merge 65 commits into
base: webgl-point
Choose a base branch
from

Conversation

tsauerwein
Copy link

Sorry, I had some troubles with GitHub and my original PR got closed.

@tsauerwein
Copy link
Author

@gberaudo Just to let you know: I am working on a hasFeatureAtPixel() : boolean function, which is extremely fast for WebGL (less than 5 ms for 50 000 features). This function can be used for mousemove events just to change the mouse cursor.

@gberaudo
Copy link
Member

Thanks @tsauerwein, I am eager to look at it.

@tsauerwein tsauerwein force-pushed the webgl-point-hit-detection branch from 69e768f to 2f913b5 Compare December 19, 2014 14:52
tschaub and others added 21 commits December 19, 2014 11:02
When concatenating the Closure Library, base.js creates a new `goog` object if there is not already one in scope.  Later, `goog.global` is assigned the value of `this`.  Calls to `goog.provide` create "namespace" objects by assigning to `goog.global`.  To ensure that `goog` is the same as `goog.global.goog`, we need to create a new `goog` object in the scope of base.js and assign it to `this.goog`.
Define goog and assign to global when generating UMD debug builds.
This task publishes an existing tag to the npm registry.  To publish a new release, create a commit that updates the version number in package.json (e.g. to "3.1.0").  Then create a tag, push to GitHub, and run the publish task.  Assuming "openlayers" is the remote for the canonical repo, this would look like the following:

    git tag -a v3.1.0 -m "3.1.0"
    git push --tags openlayers
    ./tasks/publish.sh 3.1.0

The task creates a build for each of the `PROFILES` in `publish.sh` (these correspond to `.json` files in the `config` directory).  Builds are generated in the `dist` directory.  Our `package.json` specifies `dist/ol.js` as the "main" build.  So when people use a module loader to `require('openlayers')`, they get the full build.  It is also possible to load a debug build (e.g. `require('openlayers/dist/ol-debug')`), and we can publish additional builds by adding `config` files and updating `PROFILES` in `publish.sh`.

The `.npmignore` file determines what is *not* included in the package (note that `node_modules` are always ignored).  So if additional items are added to `.gitignore` that should not be included in the npm package, they need to go in `.npmignore` as well (ideally, we don't need to generate anything else outside of the `build` directory that doesn't belong in the package).
This removes the map's deviceOptions config option, and instead
introduces loadTilesWhileAnimating and loadTilesWhileInteracting map
options. By default, both are false now, to make zooming and panning
smoother on most devices.
…ined

Remove unneeded undefined from ol.proj.ProjectionLike definitions (r=@tschaub)
…tation

Remove misplaced function annotation.
Add script to standardize changelog ceation.
mike-mcgann and others added 29 commits December 29, 2014 10:15
This was a partial, unmaintained list of the project contributors.  For a complete list of contributors, see the Git log.  E.g.

    git shortlog -s | cut -c8-
Gecko 13 (Firefox 13) removed support for -moz-box-shadow. Since then,
only the unprefixed version is supported.
Assert that ol.layer.Tile#getPreload is always set
We use bracket notation with string literals instead of dot notation where we don't want the compiler to do any renaming.
Use bracket notation instead of goog.object functions.
Optimize canvas hit detection by rendering features in a limited extent.
popup example cleanup / simplification
Don't pass renderBuffer option to the parent constructor
... with the atlas for the original images, so that
the offsets are the same.
@tsauerwein tsauerwein force-pushed the webgl-point-hit-detection branch from 585fd42 to 974823d Compare January 8, 2015 14:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants