Commit Graph

255 Commits

Author SHA1 Message Date
Éric Lemoine
f7be1c155e Hit detection refactoring
Get the frame state from the map instead of storing values in the layer renderers.
2014-01-14 12:26:49 +01:00
Tom Payne
ab0268a8f1 Merge remote-tracking branch 'openlayers/master' into vector-api 2014-01-10 15:00:27 +01:00
Tim Schaub
36e2e51899 Only create a frame state if the map has non-zero size 2014-01-09 18:23:53 -07:00
Tom Payne
2342f83a48 Merge remote-tracking branch 'openlayers/master' into vector-api 2014-01-02 18:28:30 +01:00
Tom Payne
9ea44d10ce Use goog.style.getContentBoxSize to calculate map size
This takes into account any border.
2014-01-02 16:49:09 +01:00
Tom Payne
7cadb6824e Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-18 17:09:19 +01:00
Éric Lemoine
9466101a47 Remove ol.renderer.webgl.SUPPORTED 2013-12-18 11:45:23 +01:00
Éric Lemoine
ee9f50911c Remove ol.renderer.dom.SUPPORTED 2013-12-18 11:45:13 +01:00
Éric Lemoine
fb32a167b3 Remove ol.renderer.canvas.SUPPORTED 2013-12-18 11:44:54 +01:00
Éric Lemoine
7fe684a6d4 HAS_WEBGL is false if ENABLE_WEBGL is false 2013-12-18 11:20:14 +01:00
Éric Lemoine
3df49423ad HAS_DOM is false if ENABLE_DOM is false 2013-12-18 11:20:14 +01:00
Éric Lemoine
5bb6dbfef3 HAS_CANVAS is false if ENABLE_CANVAS is false 2013-12-18 11:20:14 +01:00
Éric Lemoine
5520cc530d Move ol.ENABLE_[CANVAS|DOM|WEBGL] @define's to browserfeature.js 2013-12-18 11:20:14 +01:00
Éric Lemoine
a97e115100 Use ol.BrowserFeature.HAS_* in map.js 2013-12-18 11:20:14 +01:00
Frederic Junod
bd1107f785 Add devicePixelRatio to ol.FrameState 2013-12-16 12:15:00 +01:00
Frederic Junod
01a246ca72 Add devicePixelRatio option to ol.Map constructor 2013-12-16 12:15:00 +01:00
Tom Payne
b59eec7a83 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-13 20:22:06 +01:00
Tom Payne
ee2098743d Correct types in ol.layer.Group 2013-12-13 19:16:31 +01:00
Tom Payne
d19ce18a31 Fix return type of ol.Map#getView 2013-12-13 18:59:26 +01:00
Tim Schaub
0ed59f7be3 Merge pull request #1348 from tschaub/beforechange
Add `ol.ObjectEvent` for changes to `ol.Object` properties.  Previously, `ol.Object` dispatched instances of `goog.events.Event` with type `change`.  Now `ol.ObjectEvent` instances will be dispatched on property changes.  The events include a `getKey` method to get the name of the property being changed.  The `beforepropertychange` type event is fired before a property value changes, and the `propertychange` type event fires after the property value changes.
2013-12-13 07:28:36 -08:00
Éric Lemoine
35d5158454 Merge remote-tracking branch 'upstream/master' into vector-api
Conflicts:
	src/objectliterals.jsdoc
	src/ol/attribution.js
	src/ol/geom/geometry.js
	src/ol/geom/geometrycollection.js
	src/ol/geom/linestring.js
	src/ol/layer/vectorlayer.exports
	src/ol/layer/vectorlayer.js
	src/ol/map.js
	src/ol/proj/proj.js
	src/ol/renderer/canvas/canvasvectorlayerrenderer.js
	src/ol/source/imagewmssource.js
	src/ol/source/tilewmssource.js
	src/ol/source/vectorsource.exports
	src/ol/source/vectorsource.js
	src/ol/source/wmssource.js
	src/ol/style/style.js
	src/ol/tilegrid/tilegrid.js
	src/ol/tilegrid/wmtstilegrid.js
	src/ol/tilegrid/xyztilegrid.js
2013-12-13 12:53:57 +01:00
Éric Lemoine
315c42f0a7 Use olx namespace for options types in source code
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01:00
Tim Schaub
625007f364 Make enum property name like its value
Where an enum value is used as an event type, it should be alllowercase (to follow DOM events).  Property names should be ALLUPPERCASE in this case (just as camelCase and PascalCase are converted to CONSTANT_CASE).
2013-12-11 16:54:01 -07:00
Tim Schaub
c8985b9906 Using unique event type values for distinct events
Any event target can be used to dispatch generic goog.events.Event instances with an arbitrary type.  In cases where we dispatch custom events, we should not use type values that collide with those used for generic events (at least internally).  This allows listeners a better chance of knowing what kind of argument they will receive.

As subsequent change will clean up the enumeration and add a bit more consistency.
2013-12-11 16:53:52 -07:00
Tom Payne
a836d6924d Add FIXME 2013-12-04 00:05:45 +01:00
Tom Payne
9d57b53c0f Add optional layerFunction to ol.Map#forEachFeatureAtPixel 2013-12-04 00:05:45 +01:00
Tom Payne
e9267e401c Pass layer to forEachFeatureAtPixel callback 2013-12-04 00:05:45 +01:00
Tom Payne
d7591594ca Allow forEachFeatureAtPixel callback to break out of loop 2013-12-04 00:05:44 +01:00
Éric Lemoine
374d5f99f6 Add ol.Map#forEachFeatureAtPixel 2013-12-02 15:06:19 +01:00
Tom Payne
424f8fcc6d Merge remote-tracking branch 'openlayers/master' into vector-api 2013-11-27 13:10:20 +01:00
Frederic Junod
38bbe35e8d Remove ol.Map#getRenderer function 2013-11-20 11:45:24 +01:00
Tom Payne
bd82e1aa1a Remove vector code from files 2013-11-20 11:41:04 +01:00
Éric Lemoine
2a20693ffb Fix issue where map is stuck in drag mode
If the control container stops "up" events the map browser event handler won't see these events and will keep triggering "drag" events.
2013-11-16 23:41:48 +01:00
Peter Robins
341ea92323 Correct docs for map.getTarget 2013-11-03 04:54:31 -05:00
Tim Schaub
10b6b5f2c5 Merge pull request #1173 from tschaub/map-interaction
Give interactions a reference to their map.
2013-11-01 15:30:19 -07:00
Paul Spencer
7df3c7506f Add support for passing interactions as an array for consistency. 2013-11-01 08:03:06 -04:00
Tim Schaub
7fb56579c5 Add addInteraction and removeInteraction methods to the map
This is in line with how we add/remove controls and overlays.
2013-10-31 09:26:28 -06:00
Paul Spencer
4e657e464c Add @todo observable documentation for observable properties
This PR adds documentation for observable properties, which will then be pulled into the docs correctly once #1180 is merged.  This is a first pass based on searching for definition of observable properties being defined as enums after lines ending with `Property = {`.  If there are observable properties implemented that don't follow this pattern then they are not included.

I've added simple descriptions based on what I know or could easily figure out, there may be some properties (like preload) that are not correctly described.

I've also added `readonly` annotations where I knew that a property was readonly.  I may have missed some readonly properties.

ol.layer.Base has a bunch of properties but I don't think it is exported so the documentation of these properties will not show up, so I added the documentation to ol.layer.Layer instead even though this isn't really where it should be documented.
2013-10-29 10:24:54 -04:00
Éric Lemoine
d7636f266f Merge pull request #1147 from elemoine/issue-1147
IE 10 Click on popup
2013-10-27 02:09:25 -07:00
Tim Schaub
9d52e85fc3 Merge pull request #1163 from pagameba/doc-stability
Add default stability level to docs of exported things.
2013-10-25 11:40:16 -07:00
Peter Robins
d5df4bf80b Fix error in map docs
[ci skip]
2013-10-25 13:08:26 -04:00
Paul Spencer
bada596b45 Add default stability level to docs of exported things. 2013-10-24 18:20:24 -04:00
Éric Lemoine
c065282243 Stop mspointer events
Stop mspointerup and mspointerdown events reaching the "stop event" overlay container.
2013-10-21 15:33:12 +02:00
Éric Lemoine
1c890d837e Unconditonally set the framestate focus 2013-10-18 10:03:59 +02:00
Éric Lemoine
4c7f30c139 Make overlay container stop touchend and mouseup 2013-10-18 09:59:47 +02:00
Frederic Junod
92acc3e2d9 Make sure that the event position is correct for touch events
This is a workaround for https://code.google.com/p/closure-library/issues/detail?id=588
2013-10-17 13:51:51 +02:00
Paul Spencer
3173ddbb5f Fix a bug when frameState is null which occurs in offline mobile devices 2013-10-16 08:59:46 -04:00
Éric Lemoine
c9b1ba51fa Add ol.Map#getEventCoordinate 2013-10-14 09:43:25 +02:00
Éric Lemoine
406207213f Add ol.Map#getEventPixel 2013-10-14 09:43:11 +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