ahocevar
507fd0b86d
change getDateExtent() so it does not break when the layer has features without geometry. p=fvanderbiest, r=me ( closes #2267 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-17 13:08:52 +00:00
Éric Lemoine
7c4f85ffd5
Undocumented property 'filter' in Layer.Vector assumed in BBOX Strategy, initial patch from rdewit, no functional change ( closes #2061 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 08:42:42 +00:00
Tim Schaub
dfcf68007e
Adding a 'sketchstarted' event on the vector layer. This event is triggered at the start of each new sketch. r=ahocevar ( closes #1945 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:36:15 +00:00
Tim Schaub
e0faaf59d9
Activating strategies after adding the layer to the map. r=elemoine ( closes #1920 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9266 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 21:59:57 +00:00
Tim Schaub
ddbf4b5222
Taking care to create a copy of the array sent to removeFeatures in the event that the layer.features array is provided. Thanks for the patch bbinet. r=me ( closes #2038 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9265 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 19:22:14 +00:00
ahocevar
cc2e19d789
added support for text labels. This also adds getCentroid methods to all
...
geometries. Thanks crschmidt for the great help with this patch, and
thanks to camptocamp for the initial work on this and rcoup for creating
the first patches. r=crschmidt (closes #1895 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 16:05:26 +00:00
crschmidt
339f5bf8f6
Strategy.Fixed should listen to refresh event, ( Closes #1939 ), r=tschaub
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 16:20:23 +00:00
Tim Schaub
8b58d97206
Consistent list style for vector event types.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:11:21 +00:00
ahocevar
2b1e8641f9
SelectFeature control can now select across multiple vector
...
layers when passed an array of layers instead of a single layer with
the constructor. This changeset also introduces a new layer type,
Layer.Vector.RootContainer, which will be set as the topmost layer by
the SelectFeature control and collect the svg/vml/canvas roots of
multiple vector layers. r=crschmidt (closes #1666 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-22 14:25:18 +00:00
Tim Schaub
c2d47cf46f
Making it so features with DELETE state get drawn with the 'delete' rendering intent. The default symbolizer used for the delete intent has display property set to 'none'. This means features with DELETE state will be erased (if already drawn) the next time layer.drawFeature is called. If you want to have features with DELETE state drawn in a partially opaque gray (for example), create a custom style map or change the default delete symbolizer. r=crschmidt ( closes #1953 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 17:20:34 +00:00
crschmidt
2f367f6b8c
OpenLayers.Console is used throughout the code, but not added as a dependancy.
...
Add @requires statements to pull it in everywhere it is needed. Since Console
is so small -- 634 bytes -- this should have a limited impact on anyone with a
custom build profile. (Closes #1549 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:07:42 +00:00
Tim Schaub
41670499b1
Adding vertexmodified, sketchmodified, and sketchcomplete events to the vector layer. These are triggered by the DrawFeature and ModifyFeature controls and let listeners know about newly drawn features and modified features. r=ahocevar ( closes #1904 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 17:38:20 +00:00
Tim Schaub
66ae243890
A bit of docs for the removeFeatures method.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-21 16:33:30 +00:00
crschmidt
cb62d883dc
Add comments about drawFeature being only for redrawing, not for initial
...
isualization.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8685 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-16 15:20:47 +00:00
Frédéric Junod
ebe73eff3d
len variable was defined but not used. r=elemoine ( closes #1897 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 13:03:52 +00:00
Tim Schaub
40ddec54a3
Remove redundant features.length check. r=fredj ( closes #1847 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-20 11:25:07 +00:00
crschmidt
07ff407da5
Fix getDataExtent() (vector) manipulates feature: patch from vmx, tests by me,
...
r=me. (Closes #1822 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8349 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-13 12:12:58 +00:00
pgiraud
33e5bd7d7d
the test to check if layer is drawn before we draw feature is moved to drawFeature method so that it doesn't fail when called directly at the application level r=elemoine,crschmidt ( Closes #1785 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-24 08:29:01 +00:00
Tim Schaub
4ad8f2118c
Adding paging and cluster strategies. The paging strategy intercepts a batch of features bound for the layer and caches them, giving the layer one page at a time. The cluster strategy intercepts a batch of features and groups proximate features as clusters - giving the clusters to the layer instead. Thanks for the careful review Erik. r=euzuro (see #1606 ).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8003 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 08:58:23 +00:00
ahocevar
622e33cc16
moved handling of unrenderedFeatures from moveTo to drawFeature. r=elemoine (pullup #1723 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 06:52:57 +00:00
Éric Lemoine
e6d51fcf49
add "refresh" event to Layer.Vector, r=tschaub ( closes #1695 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 07:05:11 +00:00
Tim Schaub
d9e161f4d0
Allow layer.destroy to be called twice without failing for the vector layer. r=elemoine ( closes #1697 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-03 19:16:29 +00:00
ahocevar
c12cb25aee
New vector rendering for better performance and less renderer specific limitations. r=elemoine ( closes #1675 , closes #1656 , closes #1631 , closes #1431 , closes #1709 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-02 17:17:52 +00:00
crschmidt
68f70f750b
Add support for a Canvas renderer. This renderer will allow for some new
...
capabilties in OpenLayers Vector drawing, including:
* Vector support for iPhone, Safari 2.x series browsers
* Improved performance of dragging the map with a large number of
geometries.
The Vector layer default renderer order is now SVG, VML, Canvas, so browsers
with Canvas support and no SVG or VML will be able to draw vectors.
The Canvas layer has a number of limitations: getFeatureFromEvent is much
slower than the other types of layer, and any change to any feature requires a
redraw of the entire canvas. Because Canvas is typically a pretty fast
drawing implementation, the latter is less problematic than it might otherwise
be.
r=pagameba,fred, with glances from a couple other people.
(Closes #1512 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 14:22:59 +00:00
ahocevar
8f45e0572e
"disable z-indexing of elements in the Elements renderer by default". r=elemoine ( closes #1679 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7781 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-18 12:53:06 +00:00
Éric Lemoine
d7ab2c0f60
Layer.Vector.removeMap must deactivate the strategies, r=fredj ( closes #1649 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 13:59:12 +00:00
Frédéric Junod
14119a6811
Fix a typo in Layer.Vector.destroy and add unit tests for protocol and strategies construct/destroy, r=crschmidt ( closes #1659 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 05:39:11 +00:00
crschmidt
64fc4fcb1b
Patch from funky_c to move all alert()s in the library to a single
...
OpenLayers.Console.userError function. This allows for easy overriding of this
function for people who need to report errors at an application level (or
hiding these errors entirely), with the same default behavior as previous
releases. Patch from funky_c, r=me, (Closes #1651 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 22:21:50 +00:00
euzuro
8b98f5acc3
ordering <exclamation point/>. you can now gracefully z-order your vectors... and you can even 'yOrder' them and add background images, making for a nice 3dish look. be sure to check out the two new example html's: marker-shadow.html and ordering.html. Big thanks to tcoulter (funkyc) for a prolonged effort with this patch. It has come a long way and now what a beautiful finish. ( Closes #1357 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 00:17:59 +00:00
Tim Schaub
360d7412f0
Adding strategy and protocol base classes for better vector behavior. This just sets the common API for strategy and protocol. In general, a vector layer can have many strategies. A setLayer method gets called on each of these layers. When a layer is added to a map, any strategies on that layer get activated. When the layer is destroyed, any strategies get destroyed (this could be changed to deactivate for symmetry). A vector layer may also have a protocol. A protocol is typically constructed with a format. The layer doesn't need to know about the format. The protocol doesn't need to know about the layer. Strategies coordinate feature management for a layer. Specific strategies and protocols to follow. r=crschmidt ( closes #1646 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 21:27:35 +00:00
Tim Schaub
66a4c6fb0e
Caching array length instead of accessing it with each iteration. r=crschmidt ( closes #1636 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 04:44:25 +00:00
Tim Schaub
6897c8ed4d
Adding a beforefeatureselected event to the vector layer events. If a listener returns false, the feature is not selected. The modify feature control now listens for beforefeatureselected and triggers beforefeaturemodified. If a listener returns false, feature modification never begins. r=elemione,ahocevar ( closes #1427 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:03:40 +00:00
Éric Lemoine
c2c23cb3f3
modify feature control must use silent:true when removing/destroying vertices, p=me, r=crschmidt ( closes #1562 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 20:26:13 +00:00
crschmidt
3ba5bb22f2
Confirmed with Tim Coulter that forcing the reflow here leads to a cleaner
...
refresh on FF2-based browsers. FF3 seems unaffected either way, as does Safari.
(Closes #1390 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7578 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 21:10:57 +00:00
Éric Lemoine
7699922bc2
add featureremoved-type events to Layer.Vector, r=fredj ( closes #1535 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-27 07:56:29 +00:00
Éric Lemoine
6553f9895a
Layer.Vector should destroy itself before its parent, r=fredj ( closes #1536 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-27 07:53:48 +00:00
crschmidt
ecd291cb01
Add getDataExtent to Vector Layer. Patch from rupert, tests by me, r=me
...
(Closes #1369 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-16 01:56:21 +00:00
Tim Schaub
5e634d27e1
Another doc tweak.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-14 21:28:52 +00:00
Tim Schaub
ff63bc1460
Doc typo.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-14 21:26:02 +00:00
Tim Schaub
209f8f68f8
Fixing links in documentation. Other Natural Docs changes. ( closes #1504 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6833 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 16:52:08 +00:00
Frédéric Junod
8b91ee8d64
Send events when modifying features:
...
'beforefeaturemodified' triggered when a feature is selected to be modified,
'featuremodified' triggered when a feature has been modified,
'afterfeaturemodified' triggered when a feature is finished being modified
r=tschaub (Closes #1358 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 06:50:39 +00:00
ahocevar
3e21905fc4
"svg flicker at end of pan". Gecko-based browsers might not reflow svg if only style properties of dom elements are changed. Fixed by setting the scrollLeft property. r=pgiraud,tschaub ( closes #1390 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 19:32:44 +00:00
ahocevar
0f8f8c4249
"WFS layer format cannot be modified on the map". Concatenate EVENT_TYPES with specific class prototype instead of this.EVENT_TYPES. r=tschaub ( closes #1361 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 09:11:34 +00:00
Tim Schaub
fa55f54e32
Adding framework for internationalization support. The new OpenLayers.Lang.translate method takes a key and looks for a value in a dictionary based on the current language setting. Set a new language code with OpenLayers.Lang.setCode. Get the current code with OpenLayers.Lang.getCode. Thanks to Mike Adair for the lead on this one. r=ahocevar,me ( closes #109 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6313 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-15 21:15:48 +00:00
ahocevar
b3e53fce68
added @requires OpenLayers/StyleMap.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-13 15:35:32 +00:00
ahocevar
c5dd8ada2c
"users should be able to customize the select style per feature": Created a !StyleMap class which stores all styles that are needed for a layer. Controls that need to render features differently can now just give a render intent (e.g. "default", "select" or "temporary") to the layer's drawFeature method, instead of having extra style informations like Control.!SelectFeature.selectStyle. Existing application that set layer.style or feature.style are still supported, but both of these style properties are now null by default. r=crschmidt,elemoine,tschaub ( closes #1120 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 23:05:47 +00:00
Tim Schaub
7b87a414a3
The vector layer now only adds events to those available from the layer superclass. r=crschmidt ( closes #1343 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:16:25 +00:00
ahocevar
09a6814e2d
VML flicker when dragging is finished. This very nice patch by sbenthall fixes it. Thanks Seb! r=me ( closes #1340 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 17:35:33 +00:00
Tim Schaub
f27833f1db
Trigger feature related events with feature information and layer related events with layer information. Also adding events.on and events.un convenience methods. r=crschmidt ( closes #1343 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:31:27 +00:00
crschmidt
09e0d3ec81
Update copyrights to 2008.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-01 08:14:55 +00:00