Commit Graph

4166 Commits

Author SHA1 Message Date
Éric Lemoine
e4b5f309eb Pass state option to image source constructors 2014-01-10 10:42:05 +01:00
Éric Lemoine
2ed5e2a3d7 Pass pixelRatio to canvasFunction 2014-01-10 10:42:05 +01:00
Éric Lemoine
5af738593e Image source refactoring 2014-01-09 15:57:04 +01:00
Tom Payne
0cc844a169 Merge pull request #1494 from twpayne/vector-api-wms-hidpi
[vector-api] HiDPI (Retina) support for WMS single image layers
2014-01-09 06:39:00 -08:00
Tom Payne
3b3b5013ad Merge remote-tracking branch 'openlayers/master' into vector-api 2014-01-09 15:33:58 +01:00
Tom Payne
04a0369d68 Correct ol.renderer.canvas.ImageLayer transform for HiDPI devices 2014-01-09 15:27:57 +01:00
Tom Payne
807bf757af Remove unused ol.TileUrlFunction.createFromParamsFunction 2014-01-09 15:27:56 +01:00
Tom Payne
cee014ec9e Remove unused ol.source.wms.getUrl function 2014-01-09 15:27:56 +01:00
Tom Payne
c5a5acbf89 Refactor ol.source.TileWMS URL logic 2014-01-09 15:27:56 +01:00
Tom Payne
46d8b81661 Factor out WMS version 1.3 check 2014-01-09 15:27:56 +01:00
Tom Payne
86f23aa615 Add ol.source.wms.DEFAULT_VERSION 2014-01-09 15:27:56 +01:00
Tom Payne
784f3500f2 Make ol.extent.buffer return an extent instead of mutating 2014-01-09 15:27:56 +01:00
Tom Payne
bcf38b1b21 Add ol.source.ImageWMS#setUrl 2014-01-09 15:27:55 +01:00
oterral
1d9d67f524 Add ol.color.asArray and ol.color.asString exports 2014-01-09 14:14:27 +01:00
Tom Payne
1bf678bef2 Remove unused ol.source.wms.getDpiParam function 2014-01-09 13:12:49 +01:00
Tom Payne
e9d8401786 Refactor ol.source.ImageWMS URL logic
* Always request images of integer WIDTH and HEIGHT
* Match BBOX to requested size
* Handle integer-only DPIs in GeoServer
2014-01-09 13:12:49 +01:00
Tom Payne
95f1871ac4 Make ol.source.ImageSource crossOrigin property protected 2014-01-09 13:12:49 +01:00
Tom Payne
5f7e53617b Merge pull request #1481 from twpayne/vector-api-kml-default-style
[vector-api] Configurable default styling for KML
2014-01-09 02:43:48 -08:00
Tom Payne
7ce7bb2187 Merge remote-tracking branch 'openlayers/master' into vector-api 2014-01-09 11:42:14 +01:00
oterral
db85936de2 Export ol.style.Image#getScale 2014-01-09 10:54:57 +01:00
Frederic Junod
80cae77161 Add 'const' annotation to ol.MapBrowserEvent.browserEvent 2014-01-09 10:32:30 +01:00
Frederic Junod
9f79d33486 Create 'type' annotation for 'const' variables
From https://developers.google.com/closure/compiler/docs/js-for-compiler:
  "The type declaration and additional comment are optional. If you
  provide a type declaration, put the declaration on a separate line."
2014-01-09 09:53:20 +01:00
Tom Payne
dcd2853d2d Add ol.source.KML defaultStyle option 2014-01-08 18:22:20 +01:00
Tom Payne
6b94baf291 Add ol.format.KML defaultStyle option 2014-01-08 18:22:19 +01:00
Éric Lemoine
2cc4dd8985 Merge pull request #1413 from oterral/vector-api-draw
[vector-api] drawing interaction
2014-01-08 07:54:18 -08:00
oterral
34260399e7 Add draw features interaction 2014-01-08 16:40:14 +01:00
oterral
b508469d22 Minor fix in FeatureOverlay 2014-01-08 16:39:52 +01:00
Frédéric Junod
1e334bffdb Merge pull request #1488 from fredj/vector-api-image-pixelRatio
[vector-api] Scale the image size and anchor by pixelRatio
2014-01-08 07:37:42 -08:00
Frederic Junod
3f751a5903 Scale the image size and anchor by pixelRatio 2014-01-08 14:25:50 +01:00
Bart van den Eijnden
73fcff641e Merge pull request #1486 from bartvde/mapquest-hybrid
add hybrid layer to ol.source.MapQuest (r=@twpayne)
2014-01-08 05:15:05 -08:00
Bart van den Eijnden
473a11c697 use a single ol.source.MapQuest and use a const for the tile attribution 2014-01-08 13:23:47 +01:00
Bart van den Eijnden
1b48572c6e add ol.source.MapQuestHybrid and add all MapQuest types to the example 2014-01-08 12:05:19 +01:00
Frederic Junod
34e75b3d9d Add @struct annotation to ol.TileCoord class 2014-01-08 11:48:15 +01:00
Éric Lemoine
0fa748699a Export ol.source.Vector#forEachFeatureInExtent 2014-01-08 11:40:20 +01:00
Frederic Junod
8c61dbef8a Use ol.TileCoord.createOrUpdate function 2014-01-08 11:38:12 +01:00
Éric Lemoine
fd6756e465 Export ol.format.KML#readName 2014-01-08 11:35:09 +01:00
Éric Lemoine
47056f6012 Remove useless code 2014-01-08 10:59:36 +01:00
Éric Lemoine
2bdae3d08a Merge pull request #1483 from elemoine/vector-api-anchor-units
[vector-api] Support different anchor units in ol.style.Icon
2014-01-08 01:13:19 -08:00
Éric Lemoine
49120e4761 Icon anchors are Array.<number> 2014-01-08 10:07:01 +01:00
Tom Payne
1acdef835d Change default anchor for KML icons from Google Maps 2014-01-08 00:30:17 +01:00
Éric Lemoine
7487f97436 Support anchorXUnits and anchorYUnits in KML format 2014-01-08 00:27:08 +01:00
Éric Lemoine
a0a94414dd Add anchorXUnits and anchorYUnits options to ol.style.Icon 2014-01-08 00:24:55 +01:00
Éric Lemoine
a1ffa170a9 Merge pull request #1480 from elemoine/vector-api-features-overlay
[vector-api] Add ol.FeaturesOverlay#addFeature and #removeFeature
2014-01-07 07:24:05 -08:00
Éric Lemoine
6556726541 ol.FeaturesOverlay creates a features collection
ol.FeaturesOverlay creates an empty collection of features if the features option is not specified.
2014-01-07 14:13:57 +01:00
Éric Lemoine
8c0406b390 Add ol.FeaturesOverlay#removeFeature 2014-01-07 14:13:57 +01:00
Éric Lemoine
0b4970ae46 Add ol.FeaturesOverlay#addFeature 2014-01-07 14:13:57 +01:00
Tom Payne
c816d0105d Replay groups in defined order 2014-01-07 13:58:21 +01:00
Tom Payne
f2dbf4c145 Add ol.render.REPLAY_ORDER 2014-01-07 13:58:21 +01:00
Éric Lemoine
fdb154f5d7 Merge pull request #1433 from twpayne/vector-api-export-featuresoverlay
[vector-api] Export ol.render.FeaturesOverlay
2014-01-07 04:46:04 -08:00
Éric Lemoine
dacb747eb5 Source state of a layer doesn't depend on group 2014-01-07 13:03:31 +01:00