Éric Lemoine
|
a365b0aaf3
|
improvements to the drag handler tests
|
2012-07-13 17:44:46 +02:00 |
|
Éric Lemoine
|
226480af90
|
fix mousewheel handler tests
|
2012-07-13 16:20:23 +02:00 |
|
Éric Lemoine
|
6fd5bb8647
|
fix drag handler tests
|
2012-07-13 16:20:07 +02:00 |
|
Éric Lemoine
|
1f62bd8cd6
|
fix typo in drag handler
|
2012-07-13 16:19:42 +02:00 |
|
Éric Lemoine
|
2b9df6442b
|
Revert "Allow for using a different set of default behaviors."
This reverts commit 3cc069186c.
|
2012-07-13 15:38:06 +02:00 |
|
Éric Lemoine
|
f34aa03109
|
Revert "Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control."
This reverts commit c2a30f4ac4.
|
2012-07-13 15:37:39 +02:00 |
|
Éric Lemoine
|
dd5182c55c
|
remove trailing spaces in tests
|
2012-07-13 15:37:21 +02:00 |
|
Éric Lemoine
|
c2a30f4ac4
|
Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control.
|
2012-07-13 08:57:40 +02:00 |
|
Éric Lemoine
|
8206f11372
|
be more explicit when calling goog.events.listen and unlisten
|
2012-07-12 08:20:42 +02:00 |
|
Éric Lemoine
|
dea307e53a
|
typed objects for map events
|
2012-07-12 08:18:22 +02:00 |
|
Éric Lemoine
|
d4106f166d
|
remove reference to ol.control.Navigation from ol.export.js
|
2012-07-12 08:17:23 +02:00 |
|
Éric Lemoine
|
8801542744
|
add code comments to click and mousewheel handlers
|
2012-07-12 08:14:21 +02:00 |
|
Éric Lemoine
|
d517bdc5cd
|
use of goog.events.Event.stopPropagation instead of our own function
|
2012-07-12 07:35:14 +02:00 |
|
Éric Lemoine
|
a6b37ff83d
|
remove reference to ol.control.Navigation in ol.js
|
2012-07-11 18:00:40 +02:00 |
|
Éric Lemoine
|
c6b8a93394
|
add goog.require for ol.handler.Click in ol.js
|
2012-07-11 17:52:21 +02:00 |
|
Éric Lemoine
|
8194f05ce4
|
better doc strings for the mousewheel handler
|
2012-07-11 17:49:13 +02:00 |
|
Éric Lemoine
|
62aee1d7ea
|
remove unused function in the mousewheel handler
|
2012-07-11 17:48:48 +02:00 |
|
Éric Lemoine
|
d73531bf57
|
missing goog.require in the mousewheel handler
|
2012-07-11 17:47:16 +02:00 |
|
Éric Lemoine
|
3936c62e77
|
drag handler constructor should call its parent
|
2012-07-11 17:46:57 +02:00 |
|
Éric Lemoine
|
be0f73fb11
|
better doc strings for the drag handler
|
2012-07-11 17:46:25 +02:00 |
|
Éric Lemoine
|
d73410a9b3
|
add a click handler
|
2012-07-11 17:45:32 +02:00 |
|
Éric Lemoine
|
da11a8c34d
|
add ol.ENABLE_DRAG_HANDLER and ol.ENABLE_MOUSEWHEEL_HANDLER @defines, and pass a an object to the handlers for sharing states
|
2012-07-11 17:43:42 +02:00 |
|
Éric Lemoine
|
38f946d944
|
remove the navigation control and the event target hierarchy
|
2012-07-11 17:38:18 +02:00 |
|
Éric Lemoine
|
ae5cdc75b4
|
the mousewheel handler zooms the map by default
|
2012-07-11 17:35:50 +02:00 |
|
Éric Lemoine
|
357d08df99
|
the drag handler moves the map by default
|
2012-07-11 08:31:38 +02:00 |
|
Éric Lemoine
|
82b5a59647
|
remove ol.event entirely
|
2012-07-09 21:34:47 +02:00 |
|
Éric Lemoine
|
e4ff1a7574
|
ol.Tile inherits from goog.events.EventTarget
|
2012-07-09 21:33:08 +02:00 |
|
Éric Lemoine
|
f9cb029a74
|
ol.control.Zoom no longer require ol.event
|
2012-07-09 21:32:10 +02:00 |
|
Éric Lemoine
|
77b809bead
|
ol.control.Attribution no longer require ol.event
|
2012-07-09 21:31:56 +02:00 |
|
Éric Lemoine
|
a3387bc673
|
ol.Map requires ol.handler.MouseWheel
|
2012-07-09 21:11:13 +02:00 |
|
Éric Lemoine
|
04f87f8f73
|
ol.Map:destroy is back (api tests pass again)
|
2012-07-09 21:09:42 +02:00 |
|
Éric Lemoine
|
7c7cd08494
|
base tests for ol.handler.Drag and ol.handler.MouseWheel
|
2012-07-09 21:09:09 +02:00 |
|
Éric Lemoine
|
aebfb643ac
|
better type checking
|
2012-07-09 20:51:28 +02:00 |
|
Éric Lemoine
|
127a2c9606
|
[ol.handler.Drag] receive mousemove/touchmove events when dragstart and dragend only
|
2012-07-09 20:50:59 +02:00 |
|
Éric Lemoine
|
32757f2cd5
|
Merge remote branch 'upstream/master' into event
|
2012-07-09 19:47:46 +02:00 |
|
Éric Lemoine
|
484d0f8d04
|
use goog.events.dispatchEvent
|
2012-07-09 09:33:53 +02:00 |
|
Éric Lemoine
|
1679a59835
|
reset the map DEFAULT_CONTROLS array
|
2012-07-09 09:33:32 +02:00 |
|
Éric Lemoine
|
406a2da466
|
do no export ol.Map.prototype.destroy, it is gone
|
2012-07-09 09:32:57 +02:00 |
|
Éric Lemoine
|
f2e0adc24f
|
make the drag handler prevent page scrolling
|
2012-07-09 09:32:18 +02:00 |
|
Éric Lemoine
|
bc72e2e444
|
ol.control.Attribution no longer relies on map.getEvents
|
2012-07-09 09:31:33 +02:00 |
|
Éric Lemoine
|
e0b53360d2
|
ol.Popup no longer relies on map.getEvents
|
2012-07-09 09:30:34 +02:00 |
|
Éric Lemoine
|
9e693f29c5
|
use the mousewheel handler
|
2012-07-09 09:28:56 +02:00 |
|
Éric Lemoine
|
2c61e16b55
|
add a mouse wheel handler
|
2012-07-09 09:27:36 +02:00 |
|
Éric Lemoine
|
34a450a009
|
Merge branch 'master' into event
Conflicts:
src/ol/Map.js
src/ol/event/Drag.js
|
2012-07-09 08:57:55 +02:00 |
|
Éric Lemoine
|
22e7dc67d6
|
add a @fileoverview to ol/handler/Drag.js
|
2012-07-05 14:02:13 +02:00 |
|
Éric Lemoine
|
2fcd76bd54
|
ol.handler.Drag no longer needs a disposeInternal method
|
2012-07-05 14:01:44 +02:00 |
|
Éric Lemoine
|
8e36850e7f
|
create parent event target for the map, to allow stopping event propagation
|
2012-07-05 13:55:57 +02:00 |
|
Éric Lemoine
|
410d79faa1
|
rely on registerDisposable
|
2012-07-05 11:11:35 +02:00 |
|
Éric Lemoine
|
946cd33350
|
make ol.Map inherit from goog.EventTarget, and add an ol.handler.Drag
|
2012-07-05 11:11:35 +02:00 |
|
Éric Lemoine
|
fbd4023d6a
|
[ol.layer.TileLayer] better func comment
|
2012-06-24 22:30:48 +02:00 |
|
Éric Lemoine
|
192caa1c65
|
[ol.layer.TileLayer] do not load tiles outside the layer's extent
|
2012-06-24 22:25:01 +02:00 |
|
Éric Lemoine
|
b615eb94b7
|
add a ol.layer.wms factory
|
2012-06-23 21:53:45 +02:00 |
|
Éric Lemoine
|
0b36e10f8f
|
[ol.map] option name maxRes changed to maxResolution (discussed in cdd9439)
|
2012-06-23 21:27:39 +02:00 |
|
Éric Lemoine
|
c7e799ebf4
|
[ol.popup] make the API tests pass in advanced mode
|
2012-06-23 21:20:15 +02:00 |
|
Éric Lemoine
|
0eaaefdf1d
|
make the TileLayerRenderer tests pass
|
2012-06-22 20:43:13 +02:00 |
|
Éric Lemoine
|
f92e128636
|
[ol.layer.WMS] add a basic tiled WMS layer implementation
|
2012-06-22 20:39:56 +02:00 |
|
Éric Lemoine
|
5dc156995a
|
[ol.layer.TileLayer] use ol.error
|
2012-06-22 18:46:52 +02:00 |
|
Éric Lemoine
|
a26913f26e
|
[ol.layer.TileLayer] getTileUrl should be implemented in subclasses
|
2012-06-22 18:31:32 +02:00 |
|
Éric Lemoine
|
68fdab6824
|
[ol.layer.TileLayer] do not create tiles outside the layer extent
|
2012-06-22 17:30:35 +02:00 |
|
Éric Lemoine
|
22f569750f
|
[ol.TileCache] tile cache size is not 1
|
2012-06-22 16:53:56 +02:00 |
|
Éric Lemoine
|
c501559413
|
Revert "[ol.TileCache] tile cache size is not 1"
This reverts commit 3f9fd2f47a.
|
2012-06-22 16:51:28 +02:00 |
|
Éric Lemoine
|
3f9fd2f47a
|
[ol.TileCache] tile cache size is not 1
|
2012-06-22 16:48:48 +02:00 |
|
Éric Lemoine
|
e5c3dcfe09
|
[ol.layer.TileLayer] fix maxResolution calculation
|
2012-06-22 15:43:18 +02:00 |
|
Éric Lemoine
|
1df7c048b8
|
[ol.layer.TileLayer] tileOriginCorner is tl by default
|
2012-06-22 15:43:18 +02:00 |
|
Éric Lemoine
|
71a804c5e0
|
[ol.layer.TileLayer] add a getTileForXYZ func
|
2012-06-22 15:16:58 +02:00 |
|
Éric Lemoine
|
01668a2748
|
[ol.layer.TileLayer] add a getTileSize function
|
2012-06-22 14:09:57 +02:00 |
|
Éric Lemoine
|
cf3da75d83
|
fix layer.osm and layer.xyz api tests in adv mode
|
2012-06-22 14:04:44 +02:00 |
|
Éric Lemoine
|
e78b990f52
|
fix ol.geom.geometry api tests
|
2012-06-22 13:57:43 +02:00 |
|
Éric Lemoine
|
2e7d361f1e
|
make the feature api tests pass in advanced mode
|
2012-06-22 12:50:06 +02:00 |
|
Éric Lemoine
|
2d50a35850
|
the API user does not know about UnreferencedBounds, and remove getResForZoom and getMaxRes from the map API
|
2012-06-22 12:34:15 +02:00 |
|
Éric Lemoine
|
1d114b4630
|
two test pages, one for api, one for ol
|
2012-06-22 12:17:57 +02:00 |
|
Éric Lemoine
|
a0e5741774
|
[ol.layer.TileLayer, ol.layer.XYZ] add a getMaxResolution func to TileLayer, and make ol.layer.XYZ be just a projection and a number of zoom levels
|
2012-06-22 11:52:40 +02:00 |
|
Éric Lemoine
|
86a3eaad19
|
[ol.layer.TileLayer] move getData from layer.XYZ to layer.TileLayer
|
2012-06-22 11:09:08 +02:00 |
|
Éric Lemoine
|
cb37aaa01b
|
map.test.js - fix the map is destroyable test in advanced mode
|
2012-06-22 10:59:57 +02:00 |
|
Éric Lemoine
|
ad2c3e15e3
|
[ol.Tile] as an isLoading method
|
2012-06-22 10:51:59 +02:00 |
|
Éric Lemoine
|
0cf1a830d9
|
[ol.layer.XYZ] no need to call setResolutions
|
2012-06-22 10:41:06 +02:00 |
|
Éric Lemoine
|
7c36d2f42f
|
[ol.layer.XYZ] does not require ol.Tile
|
2012-06-22 10:40:25 +02:00 |
|
Éric Lemoine
|
9d21d6f20f
|
[ol.TileLayer] no setTileSize method anymore
|
2012-06-22 10:39:53 +02:00 |
|
Éric Lemoine
|
f7a956f404
|
[ol.Tile] add ol.Tile.createConstructor and set width and height to the img archetype
|
2012-06-22 10:38:40 +02:00 |
|
Éric Lemoine
|
9529db0151
|
throw an error if ol.map gets passed an unknown option
|
2012-06-21 20:16:11 +02:00 |
|
Éric Lemoine
|
7e8c418155
|
fix ol.error
|
2012-06-21 20:16:11 +02:00 |
|
Éric Lemoine
|
5388657791
|
[ol.Tile] a tile can be loaded only once
|
2012-06-21 19:37:16 +02:00 |
|
Éric Lemoine
|
6c76f4621e
|
[ol.Tile] add a isLoaded function
|
2012-06-21 19:10:28 +02:00 |
|
Éric Lemoine
|
98495cafc3
|
[ol.Tile] an image is a HTMLImageElement
|
2012-06-21 19:00:09 +02:00 |
|
Éric Lemoine
|
1c7e0f8481
|
add an ol.TileCache and use it in ol.TileLayer
|
2012-06-21 19:00:09 +02:00 |
|
Éric Lemoine
|
435557b425
|
[ol.Tile] trigger load and error events
|
2012-06-21 16:10:52 +02:00 |
|
Éric Lemoine
|
79b0bb74c8
|
[ol.Tile] add comments for handleImageLoad and handleImageError
|
2012-06-21 16:10:51 +02:00 |
|
Éric Lemoine
|
e72ab5135c
|
[ol.Tile] register to image error
|
2012-06-21 16:10:51 +02:00 |
|
Éric Lemoine
|
1dc6b04ac1
|
[ol.Tile] register to image load
|
2012-06-21 16:10:51 +02:00 |
|
Éric Lemoine
|
1cca6b4069
|
add numZoomLevels and maxResolution properties to the TileLayer
|
2012-06-21 14:18:52 +02:00 |
|
Éric Lemoine
|
5f1e53a0c9
|
move properties from layer/XYZ to layer/TileLayer
|
2012-06-21 12:42:36 +02:00 |
|
Éric Lemoine
|
22bffd9d8b
|
add an OSM layer constructor to the API
|
2012-06-21 08:46:23 +02:00 |
|
Éric Lemoine
|
b91769f00b
|
[ol.layer.XYZ] less than 8 chars lines
|
2012-06-21 08:38:38 +02:00 |
|
Éric Lemoine
|
7413770a46
|
add an ol.layer.xyz factory
|
2012-06-20 18:09:10 +02:00 |
|
Éric Lemoine
|
025547d199
|
[ol.Layer.XYZ] minor changes in code comments
|
2012-06-20 17:43:24 +02:00 |
|
Éric Lemoine
|
7bf05964b8
|
[ol.layer.XYZ] more tiling fixes, and additional tests
|
2012-06-20 16:18:01 +02:00 |
|
Éric Lemoine
|
d4ebe97ab1
|
[test/index.html] remove the mode=RAW script tag again, it does not work anymore
|
2012-06-20 15:50:31 +02:00 |
|
Éric Lemoine
|
2890a55ee7
|
[ol.layer.XYZ] a tiling fix
|
2012-06-20 15:13:22 +02:00 |
|
Éric Lemoine
|
e989c61e63
|
make the tests run in Closure RAW mode, but leave the SIMPLE mode script tag to still catch compilation errors/warnings while running tests
|
2012-06-20 15:11:20 +02:00 |
|
Éric Lemoine
|
a4a90b18b7
|
[ol.layer.XYZ] zoomForResolution is no longer private
|
2012-06-20 12:04:07 +02:00 |
|