Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
5f62d2ecfe
Rename _ol_source_OSM_ to OSM
2018-01-10 09:36:28 -07:00
Tim Schaub
ca6ea355e6
Rename _ol_source_Vector_ to VectorSource
2018-01-10 09:36:28 -07:00
Tim Schaub
45c6e43b42
Rename _ol_layer_Vector_ to VectorLayer
2018-01-10 09:36:23 -07:00
Tim Schaub
1c1f008238
Rename _ol_View_ to View
2018-01-10 09:35:42 -07:00
Ron Young
b8b64ac655
rename in examples
2017-12-21 23:11:42 -07:00
Marc Jansen
25946b4541
Rename _ol_layer_Tile_ to TileLayer
2017-12-19 08:45:00 +01:00
Marc Jansen
4868098495
Rename _ol_interaction_Draw_ to Draw
2017-12-15 09:43:58 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Frederic Junod
c0d57ad005
Allow string to be passed as ol.interaction.Draw type
2017-11-21 09:55:54 +01:00
Tim Schaub
ac805e804b
Divide the draw features example into two examples
2016-10-16 16:38:00 -06:00
Tim Schaub
1e6c4472b2
Use the createBox() geometry function
2016-10-16 15:54:15 -06:00
Peter Robins
7d5635092a
Remove getRendererFromQueryString from examples
2016-09-16 09:34:30 +00:00
Bart van den Eijnden
ed80d243fb
Remove MapQuest source
2016-07-01 11:38:52 +02:00
Tim Schaub
8c38d22b60
Lint free examples
2016-01-11 18:56:09 -08:00
Andreas Hocevar
100020fd59
Refactoring for more consistency
...
* Min and max number of points configurable for lines and polygons
* Polygons from custom geometryFunction now have a sketch line
* The example shows how to use a custom geometryFunction
2015-05-20 10:28:16 +02:00
Andreas Hocevar
19c91235ce
Add convenience function to create a regular polygon geometryFunction
2015-05-14 23:24:29 +02:00
Andreas Hocevar
9a58151caa
Do not wrapX for editing
2015-04-18 19:10:54 +02:00
Tim Schaub
c5cf709c55
The common.js script makes a "common" object available
2015-04-17 09:49:53 -06:00
Tim Schaub
89f5e711e6
Example sources in the examples dir
2015-04-17 06:22:38 -06:00
Andreas Hocevar
ff1ee78ddd
Build and parse examples from examples_src/
2015-04-02 19:10:09 +02:00
Frederic Junod
5a350fb978
Remove unused goog.require
2015-03-12 12:25:38 +01:00
Guillaume Beraudo
c05ffff629
Dynamically selected renderer in draw feature example
2014-11-07 14:20:51 +01:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00
Éric Lemoine
a7b4a08e07
Add "None" to draw-features example's select
...
This allows to deactivate drawing entirely in the example.
2014-06-18 08:26:45 +02:00
Tim Schaub
5653d57712
Change default renderer to Canvas
2014-04-02 11:43:20 -06:00
Tim Schaub
1072f6dfa7
Use style option in vector layer examples
...
Providing a styleFunction option still works because the layer property is still named styleFunction.
2014-02-13 10:25:16 -07:00
Tom Payne
a58aa0a40d
Use string instead of ol.RendererHint enum in examples
2014-02-06 22:33:25 +01:00
Frederic Junod
ff4b85811d
Minor draw-features cleanup
2014-01-22 14:12:32 +01:00
oterral
1333c733e0
Fix drawinteraction example
2014-01-21 15:58:42 +01:00
Tom Payne
7ce7bb2187
Merge remote-tracking branch 'openlayers/master' into vector-api
2014-01-09 11:42:14 +01:00
oterral
e3810b5027
Add draw features example
2014-01-08 16:40:14 +01:00
Bart van den Eijnden
78d20056f5
update all the other examples that used MapQuest
2014-01-08 13:36:35 +01:00
Tim Schaub
8cc4ae8dbd
Separate load requests from feature requests
...
This separates the action of requesting an extent to be loaded from the action of requesting cached features. The renderer (or any other consumer of a vector source) calls load to request a data extent. A `featureload` event fires when new features are loaded. The renderer (or any other consumer) separately asks for cached features given an extent. This vector source only loads features once, but this separation will also work with sources that make multiple requests for data in different extents.
This also removes the `data` option from the vector source in favor of a `features` option. Since we no longer have shared data structures for geometries, people can manually create features and pass them to a vector source. The `addFeatures` method is exported as well. This is used to add features to a source that don't have a representation on the "remote" (or server).
2013-11-27 12:22:32 -07:00
Tom Payne
4e65fefc00
Move vector code out of the way
2013-11-20 11:39:21 +01:00
Tim Schaub
5a898884ec
Use geometry type enum for configuring draw interaction
...
This allows us to cast single-part geometries to multi-part types before adding features to the target layer. This doesn't yet allow for drawing multi-part geometries with multiple parts. That can be handled separately.
2013-11-12 11:51:41 -07:00
Tim Schaub
8194ba9f0a
Remove setMode method from interaction in favor of add/removeInteraction
...
This makes the example a bit more awkward, but eventually adding and removing interactions will be the job of an editing control.
2013-11-12 10:30:37 -07:00
Tim Schaub
dbcfdbc76f
Updated style for draw example
2013-11-12 10:30:37 -07:00
Tim Schaub
2f07433593
Allow user to set drawing mode
2013-11-12 10:30:37 -07:00
Tim Schaub
048dec1644
Updated sketch style
2013-11-12 10:30:36 -07:00
Tim Schaub
d821f227ba
Add point at head of drawing
2013-11-12 10:29:29 -07:00
Tim Schaub
b3487ad30e
Draw interaction
2013-11-12 10:29:21 -07:00