Commit Graph

9148 Commits

Author SHA1 Message Date
Guillaume Beraudo 630d9c5200 Fix proj4 type
Previous typing was confusing the compiler. It could not figure out the
difference between the proj4 property and the constructor, which lead to
errors such as:

- ol.proj.setProj4(proj4)
ERR! compile /home/gberaudo/dev/ngeo/src/proj/epsg21781.js:8: ERROR - actual parameter 1 of ol.proj.setProj4 does not match formal parameter
ERR! compile found   : function (new:proj4): ?
ERR! compile required: (null|proj4)
ERR! compile   ol.proj.setProj4(proj4);
ERR! compile                    ^^^^^

- ol.proj.proj4.get().defs('EPSG:21781', epsg21781def)
ERR! compile /home/gberaudo/dev/ngeo/src/proj/epsg21781.js:26: ERROR - Property defs never defined on proj4
ERR! compile   ol.proj.proj4.get().defs('EPSG:21781', epsg21781def);
ERR! compile                       ^^^^
2017-03-22 09:47:29 +01:00
Alexandre Dubé 827fabc849 Apply reviewer's comments 2017-03-21 10:15:32 -04:00
Alexandre Dubé 8a5fb286b6 Add writeFilter method to WFS format 2017-03-21 08:57:15 -04:00
Bart van den Eijnden 14c78a138a Merge pull request #6612 from Jenselme/wfs-1.0.0-writeGetFeature
Add support for WFS 1.0.0 to ol.format.WFS#writeTransaction
2017-03-21 11:08:40 +01:00
Julien Enselme ecafa44196 Add support for WFS 1.0.0 to ol.format.WFS#writeTransaction
- Add a version property to olx.format.WFSWriteTransactionOptions to set
the WFS protocol version to use
- Use the specified version to use the correct schema and version in the
GML request
- Use the version to select the proper GML serializer
2017-03-21 10:59:28 +01:00
Andreas Hocevar d216962b64 Merge pull request #5887 from felixveysseyre/interactive-overview-map
Interactive overview map
2017-03-21 10:17:58 +01:00
Andreas Hocevar 93ef22759a Fix event type case of MSPointerDown 2017-03-20 19:36:43 +01:00
Andreas Hocevar f5c1908058 Merge pull request #6606 from ahocevar/delete-segmentdata
Reset dragSegments after vertex deletion
2017-03-20 18:17:34 +01:00
Félix VEYSSEYRE 6202c1736f Made OvervieMap interactive option default behavior 2017-03-20 17:15:47 +01:00
Andreas Hocevar 35ef65e6b9 Reset dragSegments after vertex deletion 2017-03-20 09:39:34 +01:00
Bart van den Eijnden d931a92a9f Merge pull request #6523 from Jenselme/gml2-writeGeometryElement
Add Gml2 serializers to support WFS-T 1.0.0
2017-03-20 09:32:44 +01:00
Frédéric Junod b7fcc3ec46 Merge pull request #6577 from fredj/optionsFromCapabilities_crossOrigin
Adding crossOrigin to optionsFromCapabilities
2017-03-20 08:25:46 +01:00
Ilia Choly 2dc656c098 Add ol.RenderOrderFunction typedef 2017-03-09 13:02:39 -05:00
SanderH ebde179ab2 Adding crossOrigin to optionsFromCapabilities
This pull request should resolve: https://github.com/openlayers/openlayers/issues/6521

Now with var and single quotes
2017-03-09 14:49:48 +01:00
Frederic Junod 2e22fce718 Return null if the layer was not found in the WMTS capabilities 2017-03-08 15:29:26 +01:00
Frederic Junod 1d3eb2eb6e Use the default fill and stroke color 2017-03-07 12:04:22 +01:00
Aleš Jiránek 9c20a5eec8 Don’t crash if feature loader xhr response returns 500 2017-03-06 11:15:16 +01:00
Frederic Junod 192e3a3197 Remove unneeded type cast 2017-03-06 08:39:47 +01:00
bartvde f06d1740e0 Make getAnimating and cancelAnimations @api 2017-03-02 13:48:50 +01:00
bartvde 3d18b54978 Cleanup left over code from animation changes 2017-03-02 13:34:49 +01:00
Frederic Junod c1be62e6c3 More precise ol.Geolocation#getAccuracyGeometry return type 2017-02-27 16:18:45 +01:00
Tim Schaub b383e0ecb2 Add view.getMaxZoom() and view.getMinZoom() 2017-02-19 18:11:04 -07:00
Tim Schaub 719fa6e004 Add view.getZoomForResolution() 2017-02-19 17:16:20 -07:00
Tim Schaub 9bd48d06c3 Complete animations at target values 2017-02-17 13:06:20 -07:00
Julien Enselme 5f5c906129 Add GML2 serializer for Envelope 2017-02-17 17:00:09 +01:00
Julien Enselme fec279c460 Add GML2 serializer for MultiSurface and MultiPolygon 2017-02-17 16:57:45 +01:00
Julien Enselme 579ec3955e Add GML2 MultiLineString serialiazer 2017-02-17 16:50:54 +01:00
Julien Enselme 650837b207 Add GML2 serializer for MultiPoint 2017-02-17 16:39:48 +01:00
Julien Enselme f8c6863fa7 Add GML2 serializer for Point 2017-02-17 16:28:52 +01:00
Julien Enselme dd90c90819 Add GML2 serializer for Surface and Polygon
- Adapt the code from ol.format.GML3.
- Create utility function to create coordinates nodes with proper
attributes
2017-02-17 16:23:16 +01:00
Julien Enselme 21394826b6 Add GML2 serializer for Curve and LineString
Adapt the code from ol.format.GML3.
2017-02-17 15:48:10 +01:00
Julien Enselme 7f0ed44828 Boostrap GML2 serializers
- Add writeFeatureElement (copied and adapted from ol.format.GML3)
- Add writeGeometryElement (copied and adapted from ol.format.GML3)
- Add related constants (GEOMETRY_SERIALIZERS_, GEOMETRY_NODE_FACTORY_)
- Add empty serialization methods
2017-02-17 15:38:19 +01:00
Thomas Chandelle 08a118cc94 Determine if we should handle the drawing when the pointer is moving 2017-02-16 16:52:04 +01:00
Andreas Hocevar b05136ea53 Merge pull request #6499 from tchandelle/circle-modify
Be more tolerant when comparing vertices when modifying a circle
2017-02-16 13:49:42 +01:00
Thomas Chandelle 9bf6dcbdcb Find the closest vertex on the circle from the pixel coordinates 2017-02-16 10:35:01 +01:00
Andreas Hocevar 7db5eea56b Performance improvement: only create context when it is needed 2017-02-14 22:20:38 +01:00
Andreas Hocevar 302087b4ec Reuse properties from ol.layer.TileProperty 2017-02-14 22:19:38 +01:00
Andreas Hocevar db58db396f Remove renderedResolution which is defined in superclass 2017-02-14 22:19:38 +01:00
Andreas Hocevar 6906046e9f Merge pull request #6483 from nearmap/tile-render-issue
Fix renderer.canvas.TileLayer to calculate correct canvas height for drawing.
2017-02-14 21:49:34 +01:00
Thomas Chandelle 73ef345a2d Abort drawing to clear the sketch feature 2017-02-14 09:26:35 +01:00
Thomas Chandelle 4575c4ab6f Do not draw circle when pointer not moved AND freehand is on 2017-02-14 09:22:07 +01:00
Andreas Hocevar 676dda7ca6 Reset kinetic when number of touches changes 2017-02-14 01:15:16 +01:00
Andreas Hocevar 186935c147 Only update kinetic when number of touches has not changed 2017-02-14 00:48:59 +01:00
Andreas Hocevar 8e35b7a1ad Do not set center when touches count has changed 2017-02-13 22:30:51 +01:00
Jan Klaas Kollhof b152f06973 Fix rendered.canvas.TileLayer to calculate correct canvas height for drawing. 2017-02-13 13:50:09 +11:00
Andreas Hocevar e6944c6664 Merge pull request #6477 from ahocevar/rotate-restore
Save and restore context when rotating
2017-02-10 16:58:18 +00:00
Andreas Hocevar da4ddccad9 Allow Zoomify url without TileGroup, z, x and y placeholder 2017-02-10 12:01:56 +01:00
Andreas Hocevar e561504d27 Save and restore context when rotating 2017-02-10 10:05:07 +00:00
Frederic Junod a4a8d01bac Use an url template for ol.source.Zoomify 2017-02-09 17:06:23 +01:00
Frederic Junod c260e927a0 Round the DPI value in ol.source.ImageArcGISRest 2017-02-08 13:32:57 +01:00