Commit Graph

9431 Commits

Author SHA1 Message Date
Andreas Hocevar c6eca804f9 Refactor stroke style management to reuse code 2017-11-10 01:16:18 +01:00
Andreas Hocevar 47e6918072 Refactor setTextStyle() for better readability 2017-11-09 16:42:41 +01:00
Tim Schaub 3a6fc7a1f2 Merge pull request #7431 from tschaub/defined-zoom
Avoid returning undefined zoom
2017-11-08 09:32:33 -07:00
Andreas Hocevar be06224756 Merge pull request #7436 from pjeweb/patch-1
Always use source projection loading image tiles
2017-11-08 17:01:33 +01:00
pjeweb b9313e76f4 Always use source projection loading image tiles
Use the defined source projection despite it being equivalent to the rendering projection to enable using the specified alias code name instead of the code provided by the renderer's projection object. For example: The server only knows the name "EPSG:900913", which is an alias for the equivalent "EPSG:3857", that the renderer uses (by default).
2017-11-08 14:36:46 +01:00
Frederic Junod 0d01a4ca0f Don't use getHints if it's not needed
memory optimization: `getHints` creates a copy of the hints array.
2017-11-08 11:47:29 +01:00
Frederic Junod 82da43af35 Use getAnimating and getInteracting from ol.View 2017-11-08 11:47:29 +01:00
Tim Schaub 967118e699 Avoid returning undefined zoom 2017-11-07 18:40:58 -07:00
Andreas Hocevar ccab7be20a Merge pull request #7362 from Alexandre27/master
Added option to the ol.format.GeoJSON to allow the reading of the geometry_name from the geojson
2017-11-07 22:52:30 +01:00
Alexandre Silva cd5e5039e9 Changed option name to extractGeometryName 2017-11-07 10:24:10 +00:00
Tim Schaub dbeef9f73e Use wrapped tile coord for getting feature at coordinate 2017-11-06 10:53:44 -07:00
Tim Schaub 42da3f18dd Keep longitude between -180 and 180 2017-11-06 06:39:17 -07:00
Andreas Hocevar 129350d863 Fix return type 2017-11-03 13:54:41 +01:00
Andreas Hocevar 72eb8ab5e8 Define font as variable 2017-11-03 13:52:06 +01:00
Andreas Hocevar 5483fa3181 More efficient font checking loop 2017-11-03 13:52:06 +01:00
Andreas Hocevar 8c46f6d1f0 Workaround for a Safari issue 2017-11-03 13:04:06 +01:00
Andreas Hocevar 7f865b8520 Check if fonts are available and redraw when label cache was cleared 2017-11-03 13:04:06 +01:00
Tim Schaub dea8a340a6 Add utility method for extracting font families from a font spec 2017-11-03 12:55:12 +01:00
Andreas Hocevar 431d570b91 Only split text at line angle changes 2017-11-03 11:26:38 +01:00
Frédéric Junod ddba26b193 Merge pull request #7411 from fredj/getset_layers
Add getLayers and setLayers functions to ol.format.WMSGetFeatureInfo
2017-11-03 11:22:29 +01:00
Andreas Hocevar f05511cff7 Merge pull request #7328 from ahocevar/declutter
Declutter text and images
2017-11-03 11:22:08 +01:00
Frederic Junod 8a9d6b417f Add getLayers and setLayers functions to ol.format.WMSGetFeatureInfo 2017-11-03 10:51:25 +01:00
Andreas Hocevar 306851d6ee Consistent naming of declutterTree 2017-11-03 10:36:28 +01:00
Andreas Hocevar bfebc50a48 Merge pull request #7406 from lasselaakkonen/7390-zoomify-custom-extent
Add option to Zoomify source for setting custom extent
2017-11-03 07:17:22 +01:00
Frédéric Junod 8ef9b8feea Merge pull request #7410 from fredj/getset_getFeatureType
Add getFeatureType and setFeatureType functions to ol.format.WFS
2017-11-01 15:32:25 +01:00
Frederic Junod daea26ec50 Add getFeatureType and setFeatureType functions to ol.format.WFS 2017-11-01 14:07:54 +01:00
Lasse Laakkonen eefb3f9207 Add option to Zoomify source for setting custom extent.
https://github.com/openlayers/openlayers/issues/7390
2017-11-01 00:20:43 +02:00
Andreas Hocevar e6ae029d08 Improve text rendering performance 2017-10-31 11:33:48 +01:00
Andreas Hocevar 6ce201c429 Do not render text along oversimplified geometries 2017-10-31 11:33:48 +01:00
Andreas Hocevar b29e74d1ab Measure height only once per font 2017-10-31 11:33:48 +01:00
Andreas Hocevar 4a73754b93 Entertain the compiler 2017-10-31 11:33:48 +01:00
Andreas Hocevar 53a2cf55f1 Fix hit detection for decluttered layers 2017-10-31 11:33:48 +01:00
Andreas Hocevar f4506d87eb Use existing sort function 2017-10-31 11:33:48 +01:00
Andreas Hocevar 80e67bac7a Give lower z-index priority (painter's order) 2017-10-31 11:33:48 +01:00
Andreas Hocevar b3f9e4e8ef Improve documentation 2017-10-31 11:33:48 +01:00
Andreas Hocevar 08af207724 Add decluttering for images and text 2017-10-31 11:33:48 +01:00
Andreas Hocevar 5ebc969599 Support line and polygon label points for ol.render.Feature 2017-10-31 11:33:48 +01:00
Andreas Hocevar dbeb3d2795 Only render parts of source tile that are needed for the view tile 2017-10-31 11:33:48 +01:00
Andreas Hocevar 742a71cd4b Only render images when visible 2017-10-31 11:33:48 +01:00
Andreas Hocevar 1a1d45fdd1 Merge pull request #7379 from lasselaakkonen/6608-zoomify-custom-tile-size
Add support for custom tile size to Zoomify source
2017-10-31 10:50:37 +01:00
Andreas Hocevar da2a23aacd Always use ol.Size tile size array 2017-10-31 10:36:20 +01:00
Lasse Laakkonen 3c8c7db8f3 Fix using multiple Zoomify sources at a time.. 2017-10-31 11:12:18 +02:00
Lasse Laakkonen 2836f9511f Remove unnecessary changes to Tile and ImageTile for changing Zoomify source tile size. 2017-10-31 09:31:38 +02:00
Jannes Bolling a802f5937b changed visibility of overlay properties to protected,
added new getOptions function to overlay, to get the original options

remove trailing underscore from protected properties and functions
2017-10-27 16:10:39 +02:00
Frédéric Junod 5a6fafd85b Merge pull request #7377 from notnotse/overlay-classname
Add support to specify CSS class name when creating ol.Overlay
2017-10-25 15:32:24 +02:00
Andreas Hocevar eeb20cf4ad Merge pull request #7383 from ahocevar/null-tilecoord
Handle null tile coordinates correctly
2017-10-22 21:59:35 +02:00
Frédéric Junod 35a357ee80 Merge pull request #7375 from fredj/ows_more_ServiceIdentification
Read 'Abstract', 'AccessConstraints' and 'Fees' in ol.format.OWS
2017-10-22 08:49:06 +02:00
Andreas Hocevar 6da92d5f71 Handle null tile coordinates correctly 2017-10-21 21:41:56 +02:00
Bobo Häggström 7a800d4b39 Add support to specify CSS class name when creating ol.Overlay 2017-10-19 16:06:24 +02:00
itjope f7b6682832 Fix incorrect docs about ol.source.Raster 2017-10-19 15:37:00 +02:00