Bruno Binet
871820f2b5
Merge pull request #1122 from bbinet/fix-zindex-issues
...
Fix overlay zindex issues
2013-10-30 02:39:06 -07:00
Bruno Binet
d7c696fc76
Improve doc for stopEvent and insertFirst options
2013-10-30 09:28:56 +01:00
Bruno Binet
4e602fdb8d
Set z-index: auto so that popup is not above controls
2013-10-30 09:28:26 +01:00
Bruno Binet
59eaa89a54
Fix overlay z-index issue in overlay example
2013-10-30 09:28:26 +01:00
Bruno Binet
86cfdf4da7
Fix overlay z-index issue in popup example
2013-10-30 09:28:26 +01:00
Bruno Binet
71097d9cfc
Insert or append overlay based on insertFirst option
...
This is to fix z-index issues with overlays that pass above ol3 default
controls.
2013-10-30 09:28:25 +01:00
Bruno Binet
69cee6a410
Add insertFirst option in ol.OverlayOptions typedef
2013-10-30 09:28:25 +01:00
Bruno Binet
c07933beef
Merge pull request #1120 from bbinet/overlay-stop-events
...
Configurable event propagation for overlays
2013-10-11 07:13:31 -07:00
Bruno Binet
06580950ca
Add controls to ol-overlaycontainer-stopevent
...
so that events won't be propagated to the map when interacting with a control
2013-10-11 12:51:22 +02:00
Bruno Binet
e1da49fb32
Merge pull request #1121 from bbinet/fix-whitespace-indent
...
Fix indent
2013-10-11 03:24:32 -07:00
Bruno Binet
aaf64c8fec
Fix indent
2013-10-11 12:23:21 +02:00
Bruno Binet
623b2fab14
Adjust event propagation for popup example
2013-10-11 12:17:08 +02:00
Bruno Binet
2d0fdfdd87
Adjust event propagation for overlay example
2013-10-11 12:17:08 +02:00
Bruno Binet
caf958826d
Add new container which don't stop event propagation
...
and allow overlays to optionnally stop event propagation
2013-10-11 12:16:56 +02:00
Bruno Binet
8c8dbe2ece
Add stopEvent option in ol.OverlayOptions typedef
2013-10-11 12:14:58 +02:00
Bruno Binet
aca022df6e
Merge pull request #1101 from bbinet/overlay_center_positioning
...
ol.overlay center positioning
2013-10-07 10:35:21 -07:00
Bruno Binet
8f92deeac2
Fix overlay positioning in icon example
2013-10-07 18:51:34 +02:00
Bruno Binet
41085560f6
Fix overlay positioning in geolocation example
2013-10-07 18:36:51 +02:00
Bruno Binet
715236c1f6
Update ol.overlay exports for center positioning
2013-10-07 17:01:06 +02:00
Bruno Binet
e9ac7cef83
Update overlay example with center positioning
2013-10-07 16:46:33 +02:00
Bruno Binet
29076db6ed
Add support for ol.overlay center positioning
2013-10-07 16:41:59 +02:00
Bruno Binet
8ccc997ecd
Merge pull request #1032 from bbinet/minmax_resolution
...
Add support for layer min/maxResolution
2013-09-19 09:11:16 -07:00
Bruno Binet
d1e9dd964b
Be consistent with constant names
2013-09-19 16:59:38 +02:00
Bruno Binet
690ed1ed8e
Improve doc for minResolution and maxResolution
2013-09-19 16:59:38 +02:00
Bruno Binet
97556f234f
Add min-max-resolution example
...
Show/hide layers depending on current map resolution.
2013-09-19 16:59:38 +02:00
Bruno Binet
fa484cca8c
Fix tests for min/maxResolution
2013-09-19 16:59:38 +02:00
Bruno Binet
cf4799e87c
Add support for layer min/maxResolution
2013-09-19 16:59:38 +02:00
Bruno Binet
7b95509970
Merge pull request #899 from bbinet/renderer-refactoring
...
Renderer refactoring related to the layer groups
2013-08-13 08:25:33 -07:00
Bruno Binet
88da6da3a7
Trigger CHANGE event only when required
...
For example only when layer is both ready and visible.
2013-08-13 16:41:43 +02:00
Bruno Binet
8b435059f7
Update color matrices based on framestate values
...
In getColorMatrix method, we'll update the color matrices only if layerstate
color properties has changed in the framestate.
2013-08-13 16:24:44 +02:00
Bruno Binet
46ea218d0f
Make layer renderers more stupid
...
Layer renderers should not be responsible for listening to layer
properties change and triggering a render.
Layer change events are now forwarded to the map which will trigger a render.
2013-08-13 16:24:44 +02:00
Bruno Binet
a13d4bdded
Merge pull request #797 from bbinet/layergroup
...
Layer group support
2013-08-13 07:24:21 -07:00
Bruno Binet
54bf8c2d2a
Bindto valueAsNumber in layer-group example
...
(now that #898 is in)
2013-08-13 12:37:00 +02:00
Bruno Binet
3ecb5b89ff
Create a custom event type for vector layers
...
Vector layers will now dispatch ol.layer.VectorLayerEventType.ADD and
ol.layer.VectorLayerEventType.REMOVE event types instead of the generic
goog.events.EventType.CHANGE event type.
This will fix a maximum call stack size exceeded javascript error.
2013-08-13 12:27:38 +02:00
Bruno Binet
e4c36378ac
ol.Map now have a LAYERGROUP property
...
The LAYERS property is gone.
2013-08-13 12:27:38 +02:00
Bruno Binet
d84477c1c0
Bind more layer properties in layer-group example
...
This allows to update hue, saturation, brightness, contrast values.
2013-08-13 12:27:38 +02:00
Bruno Binet
1100cc67da
Get opacity from layerState in webglmaprenderer
...
instead of getting it from layer.getOpacity().
Fix the issue of changing opacity which didn't work with LayerGroups in webgl.
2013-08-13 12:27:38 +02:00
Bruno Binet
f3b63d9c2c
Add a layer-group example
2013-08-13 12:27:38 +02:00
Bruno Binet
1aa695580b
Add tests for layer.getLayerState()
2013-08-13 12:27:38 +02:00
Bruno Binet
31c8644716
Add tests for ol.layer.LayerGroup
2013-08-13 12:27:38 +02:00
Bruno Binet
1d15d840ac
Add layergroup exports
2013-08-13 12:27:37 +02:00
Bruno Binet
097ce52060
Add layergroup support
2013-08-13 12:27:37 +02:00
Bruno Binet
f731d5632c
Merge pull request #898 from bbinet/input-valueasnumber
...
Add support for binding input value as number
2013-08-13 03:24:54 -07:00
Bruno Binet
dddea56c2c
Add a temporary html5 externs file
...
This is needed because the current version of closure compiler we use does not
include externs for valueAsNumber which we now use in ol.dom.Input.
So this backports patch from issue:
https://code.google.com/p/closure-compiler/issues/detail?id=1060
This patch should be reverted when the next closure compiler release is out
with valueAsNumber externs.
2013-08-13 11:31:58 +02:00
Bruno Binet
2dd6321c74
Fix bind-input example to use valueAsNumber
2013-08-13 11:31:58 +02:00
Bruno Binet
afee1ab975
Add VALUE_AS_NUMBER property to ol.dom.Input
...
This should be used when one want to bind a number instead of a string.
2013-08-13 11:31:58 +02:00
Bruno Binet
be0149e478
Merge pull request #763 from bbinet/cleanup-attribution-control
...
Cleanup attribution control
2013-06-17 07:01:00 -07:00
Bruno Binet
6b904573a0
Hide attribution instead of DOM removal
...
The reasons are:
- It minimizes DOM updates (most changes to the attribution are just toggling
visibility, not the more expensive creation, insertion and removal of DOM
elements)
- The order of attributions remains stable as layer visibilities are toggled
and the user interacts with the map
2013-06-14 00:23:01 +02:00
Bruno Binet
950b53f6dc
Clean up attribution control
...
Do not use map.getLayers() anymore, but get layers from frameState.layersArray.
2013-06-14 00:22:47 +02:00
Bruno Binet
3d87ecd858
Merge pull request #354 from bbinet/fix-wmts-from-cap-example
...
wmts-from-capabilities example doesn't work because of referer check
2013-03-22 01:51:46 -07:00
Bruno Binet
e9583617f7
Merge pull request #413 from bbinet/pep8-work
...
Pep8ify build.py (Closes #371 )
2013-03-21 09:14:43 -07:00
Bruno Binet
f395064721
Pep8ify build.py
...
Thanks a lot autopep8!
2013-03-21 16:38:48 +01:00
Bruno Binet
c11193f71d
Use Vienna wmts in wmts-from-capabilities example
...
vienna wmts capabilities url is:
http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml
2013-03-21 14:03:09 +01:00
Bruno Binet
7fec1f5208
ArcGis use camelcase 'Style', not lowercase 'style'
...
The OGC documentation is not so clear if we should use style or Style.
2013-03-21 11:15:35 +01:00
Bruno Binet
932c284a2e
ArcGis use RESTful
...
The OGC documentation is not clear if we should use REST or RESTful.
2013-03-21 11:15:35 +01:00
Bruno Binet
7038ac0c81
Merge pull request #356 from bbinet/issue-356
...
Can't parse http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml
2013-03-21 02:10:56 -07:00
Bruno Binet
641e492c95
Update social links in wmts-capabilities example
2013-03-20 15:25:45 +01:00
Bruno Binet
b0c4977811
Add exportSymbol for ol.projection.addCommonProjections
2013-03-20 14:39:14 +01:00
Bruno Binet
30a2b4187c
The same projection can be added more than once
...
So that addCommonProjections can be safely called in our examples.
2013-03-20 14:39:14 +01:00
Bruno Binet
48e142d3f0
Fix wmts-capabilities example
...
the parsing of the wmts getCapabilities document require proj4js.
Also initialize common ol3 projections with ol.projection.addCommonProjections
so that it won't try to get EPSG:3857 from proj4js.
2013-03-20 14:39:14 +01:00
Bruno Binet
e6450dc313
Add new equivalent projections
...
for both EPSG:4326 and EPSG:3857.
2013-03-20 14:39:14 +01:00
Bruno Binet
c1db1cd491
Use correct namespaceURI for WGS84BoundingBox reader
...
(closes #356 )
2013-03-20 14:39:14 +01:00
Bruno Binet
07fb27db2c
Merge pull request #370 from bbinet/fix-missing-requires
...
Fix check for missing goog.require directives
2013-03-18 08:16:43 -07:00
Bruno Binet
28155a4147
Fix check for missing goog.require directives
...
Take this example:
```
goog.require('ol.projection.addCommonProjections');
ol.projection.addCommonProjections();
```
Without this patch, the build_check_requires_timestamp target would report
that ``ol.projection`` is missing.
This is because ``ol.projection.addCommonProjections();`` would match both
``ol.projection.addCommonProjections and ``ol.projection`` provide
directives.
2013-03-14 15:22:00 +01:00
Bruno Binet
68714e73c3
Merge pull request #369 from bbinet/fix-unusedrequires
...
Remove unused goog.require directives
2013-03-14 07:21:28 -07:00
Bruno Binet
6cf20ef82f
Remove unused goog.require directives
...
See #367 .
2013-03-14 14:57:21 +01:00
Bruno Binet
81089b2199
Remove unused goog.require directives
2013-03-14 12:39:51 +01:00
Bruno Binet
15ce80f42e
Merge pull request #364 from bbinet/fix-check-requires
...
Fix check for unused goog.require directives
2013-03-14 04:29:41 -07:00
Bruno Binet
9b1c389c80
Remove unused goog.require directives
2013-03-14 11:39:43 +01:00
Bruno Binet
1eabd7f4e6
Fix check for unused goog.require directives
2013-03-14 11:30:05 +01:00
Bruno Binet
7d675b73b4
Merge pull request #361 from bbinet/factorize-expandurl-code
...
Factorize code that expand a template url into multiples urls
2013-03-13 09:47:17 -07:00
Bruno Binet
317676a68f
Homogenize wmts tileUrlFunction relative to other sources
2013-03-13 16:52:54 +01:00
Bruno Binet
5eaf4baaa4
Try to expand single url for TiledWMS source
2013-03-13 16:52:54 +01:00
Bruno Binet
875ead58ab
Remove expandUrl duplicated code from createFromTemplate
...
and make use of expandUrl function instead.
2013-03-13 16:52:54 +01:00
Bruno Binet
54dfca3419
Move factorizable code in ol.TileUrlFunction.expandUrl
2013-03-13 16:48:22 +01:00
Bruno Binet
19acefc6d9
Merge pull request #359 from bbinet/useTile-consistent
...
Be more consistent with useTile parent method
2013-03-13 01:50:54 -07:00
Bruno Binet
86c05b4d21
Be more consistent with useTile abstract method
2013-03-12 17:58:29 +01:00
Bruno Binet
837aa7512b
Merge pull request #342 from bbinet/wmts
...
Add WMTS support.
2013-03-11 08:05:25 -07:00
Bruno Binet
61603dacce
WMTS from swisstopo now supports CORS headers
2013-03-11 15:47:42 +01:00
Bruno Binet
d14b1c57a9
Remove ImageLayer from wmts-from-capabilities example
2013-03-11 15:15:53 +01:00
Bruno Binet
8638f6d502
s/meters_per_unit/metersPerUnit/
2013-03-11 15:05:53 +01:00
Bruno Binet
9e370bf6af
Implement ol.source.WMTS.optionsFromCapabilities
...
and remove related ol.source.WMTS.createFromCapabilities function.
2013-03-11 12:42:14 +01:00
Bruno Binet
6f83e50332
Load EPSG:21781 definition from cdnjs.
2013-03-11 11:48:06 +01:00
Bruno Binet
c67e67ee12
Single tileUrlFunction in createFromTileUrlFunctions
...
In that case, simply return the single tileUrlFunction.
2013-03-11 11:29:40 +01:00
Bruno Binet
b4cbe0609a
Add missing exports
...
so that wmts-from-capabilities example works.
2013-03-11 10:42:38 +01:00
Bruno Binet
14d5916e67
Add wmts-from-capabilities example
...
it demonstrates how to create a wmts source by retrieving its configuration
from a wmts getCapabilities.
2013-03-11 10:42:38 +01:00
Bruno Binet
13d0b36a08
Add a ol.source.WMTS.createFromCapabilities function
...
so that we can create a wmts source directly from a getCapabilities response
(parsed by the wmts parser)
2013-03-11 10:42:37 +01:00
Bruno Binet
dc440a6604
Ensure supportedCRS property won't be renamed
...
this property was renamed when using wmts parser when built with
ADVANCED_OPTIMIZATIONS
2013-03-11 10:42:37 +01:00
Bruno Binet
0f9f5a25ae
Export methods methods for ol.Extent
...
so that wmts example work (it makes use of extent.getTopLeft() method)
2013-03-11 10:42:37 +01:00
Bruno Binet
56ffb6146d
Add example for WMTS source
2013-03-11 10:42:37 +01:00
Bruno Binet
877ce3adcf
Add a WMTS source
2013-03-11 10:42:37 +01:00
Bruno Binet
6d78a8340a
Add a WMTS tilegrid
2013-03-11 10:42:37 +01:00
Bruno Binet
35b6d805df
Merge pull request #307 from bbinet/null-extent
...
Check for not null extent
2013-03-07 02:06:18 -08:00
Bruno Binet
41408c0909
Extent cannot be undefined here but it can be null
...
so we now use !goog.isNull(extent) instead of goog.isDef(extent)
2013-03-07 10:54:06 +01:00
Bruno Binet
129f2bbcb0
Merge pull request #305 from bbinet/check-isglobal
...
Do not wrap dateline if projection.isGlobal() is false
2013-03-07 01:42:18 -08:00
Bruno Binet
48c84aaf69
Do not wrap dateline if projection.isGlobal() is false
2013-03-07 02:07:00 +01:00
Bruno Binet
7f9e327a65
Merge pull request #304 from bbinet/projection-improvements
...
Some projection improvements
2013-03-06 16:53:14 -08:00
Bruno Binet
1e050fe25f
Add global=true for both EPSG:4326 and EPSG:3857
2013-03-07 01:36:42 +01:00
Bruno Binet
4415f8ac74
Add test for ol.projection.configureProj4jsProjection
2013-03-07 01:36:41 +01:00
Bruno Binet
b6d57894b4
Add configureProj4jsProjection function
...
so that we can add extent and global parameter to proj4js projections.
And remove setExtent method which is not relevant.
2013-03-07 01:36:41 +01:00