Commit Graph

3128 Commits

Author SHA1 Message Date
ahocevar
33f426fd85 Merge pull request #1135 from ahocevar/no-blur
Use integers when positioning on the target canvas
2013-10-16 09:03:08 -07:00
ahocevar
386fac2429 Use integers when positioning on the target canvas
This avoids blurred images after view center changes (dx, dy)
and at fractional zoom levels (dw, dh).
2013-10-16 16:39:45 +02:00
Tim Schaub
a8442df56a Merge pull request #1136 from pagameba/null-framestate-bug
Fix a bug when frameState is null which occurs in offline mobile devices.
2013-10-16 06:46:20 -07:00
Tim Schaub
3c5107b218 Merge pull request #1133 from tschaub/align-pixels
Ensure that pixels are aligned when rendering icons.
2013-10-16 06:37:46 -07: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
63c9aed620 Merge pull request #1077 from ThomasG77/setPositioning
Export ol.Overlay#setPositioning
2013-10-16 02:50:38 -07:00
Tim Schaub
b02f47a5a5 Align pixels when drawing icons or shapes
The floor before setting the transform ensures that we translate by integer pixels for odd and even dimenstions.  The round before drawing the image ensures pixels are aligned.
2013-10-15 22:12:12 -06:00
Tim Schaub
5fe7c20450 Merge pull request #1132 from tschaub/wide-stroke
Only call lineTo if we are in a new pixel.
2013-10-15 12:35:58 -07:00
Éric Lemoine
a5c6a865bf Merge pull request #1129 from elemoine/eventcoord
Add ol.Map#getEventPixel and ol.Map#getEventCoordinate
2013-10-15 04:03:07 -07:00
Éric Lemoine
69642f9a6d Export ol.Map#getViewport 2013-10-15 11:33:32 +02:00
Tim Schaub
2011e02364 Avoid calling lineTo on the same pixel for polygon stroke 2013-10-14 17:07:06 -06:00
Tim Schaub
71a6c4f270 Only call lineTo if we are in a new pixel for linestring
Rendering performance degrades as the context lineWidth increases when calling lineTo many times for the same pixel coordinate.  This appears to be a widespread performance issue and is very clearly improved by only calling lineTo when in a new pixel coordinate.
2013-10-14 17:06:44 -06:00
Éric Lemoine
4c04c9fa5c Use getCoordinatePixel in ol.MapBrowserEvent 2013-10-14 15:36:46 +02:00
Éric Lemoine
49e0af5abb Use getEventPixel in ol.MapBrowserEvent 2013-10-14 15:36:37 +02:00
Éric Lemoine
3aeb4d1584 Export ol.Map#getEventCoordinate 2013-10-14 15:30:23 +02:00
Éric Lemoine
dbdacec6df Export ol.Map#getEventPixel 2013-10-14 15:30:23 +02:00
Frederic Junod
9ffabb481c Rename offset* attributes to delta* 2013-10-14 14:22:51 +02: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
Lukasz Kryger
f1c45c4a6c Typo crossOriin => crossOrigin 2013-10-13 17:57:22 +01:00
Bruno Binet
c07933beef Merge pull request #1120 from bbinet/overlay-stop-events
Configurable event propagation for overlays
2013-10-11 07:13:31 -07:00
Bruno Binet
06580950ca Add controls to ol-overlaycontainer-stopevent
so that events won't be propagated to the map when interacting with a control
2013-10-11 12:51:22 +02:00
Bruno Binet
aaf64c8fec Fix indent 2013-10-11 12:23:21 +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
Bruno Binet
8c8dbe2ece Add stopEvent option in ol.OverlayOptions typedef 2013-10-11 12:14:58 +02:00
Frederic Junod
ef97da2b77 Use getPixel function instead of offset from event 2013-10-11 07:35:27 +02:00
Tim Schaub
dd67c7d8c3 Merge pull request #1111 from tschaub/font-weight
Add fontWeight property to TextSymbolizer.
2013-10-09 13:20:47 -07:00
Tim Schaub
2ee776d9f6 Support fontWeight in text symbolizer 2013-10-09 11:59:30 -06:00
Tim Schaub
d5ab5ec1d2 Shape symbolizer extends point symbolizer 2013-10-09 09:01:51 -06:00
Tim Schaub
e36c53dd23 Icon symbolizer extends point symbolizer 2013-10-09 09:01:30 -06:00
Tim Schaub
2f3cd430de Merge pull request #1070 from tschaub/text-stroke
Add stroke support to text symbolizers.
2013-10-08 08:12:11 -07:00
Tom Payne
2f10e62b76 Merge pull request #1100 from twpayne/animation-duration-control
Animation duration control
2013-10-08 06:53:18 -07:00
Tom Payne
b533cad031 Only install animations if duration > 0 2013-10-08 14:35:04 +02:00
Tom Payne
c6df48e424 Add zoomDuration option to interaction defaults 2013-10-08 14:35:04 +02:00
Tom Payne
b1ed63ebf8 Make touch zoom animation duration configurable 2013-10-08 14:35:04 +02:00
Tom Payne
6c0d4cddad Make mouse wheel zoom animation duration configurable 2013-10-08 14:35:03 +02:00
Frederic Junod
307e2d936c Minor apidoc updates 2013-10-08 09:04:50 +02:00
Tim Schaub
539ecbdd9c Add stroke support for text symbolizers 2013-10-07 16:17:38 -06:00
Tim Schaub
5e86ffcca5 Add stroke properties to text symbolizer literal 2013-10-07 16:09:20 -06:00
Bruno Binet
aca022df6e Merge pull request #1101 from bbinet/overlay_center_positioning
ol.overlay center positioning
2013-10-07 10:35:21 -07:00
Tim Schaub
60a13d6517 Always provide lib functions, conditionally provide scope 2013-10-07 09:46:24 -06:00
Bruno Binet
715236c1f6 Update ol.overlay exports for center positioning 2013-10-07 17:01:06 +02:00
Bruno Binet
29076db6ed Add support for ol.overlay center positioning 2013-10-07 16:41:59 +02:00
Tom Payne
1863109ac8 Make keyboard zoom animation duration configurable 2013-10-07 15:41:00 +02:00
Tom Payne
93b33589a1 Make double click zoom animation duration configurable 2013-10-07 15:39:52 +02:00
Tom Payne
214e578333 Make zoom control animation duration configurable 2013-10-07 15:35:52 +02:00
ahocevar
4b934c03ba We want to create a deep clone, not a shallow one 2013-10-05 08:42:21 -06:00
ahocevar
b40124b2bc Fixing doc comment 2013-10-05 08:41:49 -06:00
ahocevar
52552c9b18 Fire change events for multi-part geometries 2013-10-04 23:36:16 -06:00
Tim Schaub
703564fcbb Merge pull request #1096 from tschaub/editable-features
Editable geometries and features.
2013-10-03 19:22:30 -07:00