ahocevar
f0ad48597f
No more percentage based positioning.
...
Client zoom now supports both over- and undersampling.
2012-08-21 13:57:11 +02:00
Éric Lemoine
4df1104b7a
Revert "Merge pull request #312 from elemoine/redraw"
...
This reverts commit 7f94945244 , reversing
changes made to dfa70fafac .
Conflicts:
lib/OpenLayers/Layer/Vector.js
2012-04-07 21:01:52 +02:00
Éric Lemoine
e0b93c2e45
The OpenLayers code is published under the 2-clause BSD license
2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1
change copyright header in every OpenLayers js file
2012-03-29 22:14:56 +02:00
Frederic Junod
61f01f20e0
Remove Renderer.NG related code
2012-03-14 09:17:42 +01:00
fredj
23380e5d4a
Move NG renderer to deprecated.js
2012-03-14 09:17:42 +01:00
Éric Lemoine
c693884f5f
redraw on vector layers should set zoomChanged to true in the moveTo call (refs #305 )
2012-03-09 23:40:34 +01:00
Xavier Mamano
bfb379f349
Fix some problems in the documentation.
2012-03-05 11:43:09 +01:00
Éric Lemoine
9a116b21b9
Revert "protect for in loops with hasOwnProperty"
...
This reverts commit e3cc96dbfb .
2012-03-03 22:35:39 +01:00
Bart van den Eijnden
e3cc96dbfb
protect for in loops with hasOwnProperty
2012-02-29 18:43:55 +01:00
tschaub
2b5ade2dde
Adding back events documentation.
...
When the list of event types became unconstrained in 501b42228a , we lost the documentation for events that are triggered. This change adds the list of events triggered to the API docs for events properties.
2012-02-16 10:36:34 -07:00
tschaub
b844a3b11b
Happy New Year!
...
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
ahocevar
1ce59a207d
Don't use clientWidth and clientHeight.
...
Instead, use map.getSize to make sure this works the same way in all browsers.
2011-12-28 20:10:56 +01:00
pjeweb
008e8c5ed1
adding ratio to Vector Layer
2011-12-21 12:37:09 +01:00
Xavier Mamano
ec1a44a9f2
before instead of after
2011-11-29 18:29:47 +01:00
Frédéric Junod
e223eef159
Fix comment, no functional change
2011-10-20 11:14:21 +03:00
fredj
6e9a3e4c13
don't translate error message and replace console log with exception
2011-09-20 15:21:16 +02:00
Frédéric Junod
501b42228a
remove event type list from Events (lazy listener initialization) p=tschaub,me r=erilem ( closes #2555 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:09:40 +00:00
bartvde
110acd3f84
getDataExtent should return null when there are no features with a geometry, r=ahocevar ( closes #3435 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-25 13:13:46 +00:00
ahocevar
6ef5e395d1
don't waste coordinate space by using a smaller renderer extent and updating it on moveend. r=bartvde ( closes #3359 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-11 17:07:15 +00:00
Tim Schaub
995d612caa
More robust array type check. p=mwootendev, r=me ( closes #2959 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12095 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-16 19:16:25 +00:00
ahocevar
536a0410ee
only add features to the unrendererdFeatures array when they were not drawn due to lack of geometry. r=erilem ( closes #3235 )"
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-01 09:26:39 +00:00
Tim Schaub
3ef0b05949
Adding in support for hit detection with canvas (and rendering holes in polygons). r=fredj ( closes #3207 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11849 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 21:00:03 +00:00
Frédéric Junod
7cea45db7f
don't crash if OpenLayers.Renderer.NG is not defined. r=crschmidt ( closes #3152 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-07 11:31:51 +00:00
ahocevar
e3d137754c
New SVG2 renderer for increased performance and smaller library size. Not enabled by default. To use, include 'SVG2' in the renderers array of your OpenLayers.Layer.Vector instance. r=crschmidt ( closes #2802 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-05 21:17:02 +00:00
Frédéric Junod
7a1cb00fe4
Add missing semicolon. Non functional change.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 14:55:01 +00:00
ahocevar
c8982cb99a
give Layer.Vector a vertexremoved event, to be fired e.g. by the ModifyFeature control. r=bartvde ( closes #3017 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11043 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-19 16:44:39 +00:00
Tim Schaub
ad54169479
Happy New Year.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:39:40 +00:00
ahocevar
b61cec71a1
Make it possible to exclude Console.js and Lang/en.js for really small builds. r=bartvde ( closes #2882 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-15 09:42:19 +00:00
Éric Lemoine
1ff89a9c40
Give Layer.Vector a method getFeaturesByAttribute, p=marcjansen, r=me ( closes #2979 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-14 08:07:29 +00:00
ahocevar
b3f7d25c37
added APIdoc comment for the beforefeatureselected event
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10937 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-01 15:26:18 +00:00
Tim Schaub
aa9112c494
Avoiding unnecessary repeated checks of navigator.userAgent. The constants added here should not be used outside the library. In the future, they should be removed from the library. r=ahocevar ( closes #2911 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-11-03 00:10:00 +00:00
Éric Lemoine
107cf7948c
remove property Layer.Vector.isVector, it serves no purpose, r=bartvde ( closes #2888 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-18 08:09:56 +00:00
crschmidt
f0d474e50b
Change license text to point to "OpenLayers contributors", referencing
...
authors.txt file. In reality, MetaCarta does not own copyright to these files,
they merely have a right to distribute them under the license terms agreed to
by the contributors. At this point, there is no longer any reference to
MetaCarta as a copyright holder in the OpenLayers project, only to its
individual contributors via the authors.txt file.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:06:31 +00:00
ahocevar
257cc5576b
Give Layer.Vector a getFeatureByFid and a getFeatureBy method. Thanks vog for this very clean patch and the verbose unit tests. r=me ( closes #2722 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10691 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-24 11:13:51 +00:00
Tim Schaub
33410b0e76
Adding a removeAllFeatures method to the vector layer. This bypasses a few unnecessary steps when removing all features but retains the same behavior as the removeFeatures method otherwise. Optimizing the clear method on elements renderers a bit by avoiding length calculation of the live collection and looking up the first child once per node removal. r=ahocevar ( closes #2774 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 15:46:23 +00:00
Tim Schaub
9d3c4ecb1c
Firing the beforefeaturesremoved event from the vector layer. r=ahocevar ( closes #2770 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-03 23:37:31 +00:00
Tim Schaub
1f601390dd
Documentation tweak for the vector layer.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 19:48:29 +00:00
bartvde
0bc3e3c8b3
Layer.Vector's renderers array should be able to deal with function as well as strings so that people can use their own custom renderer in their own namespace, r=ahocevar,fredj ( closes #2669 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10432 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-29 11:53:59 +00:00
Éric Lemoine
88f2922f54
Layer.Vector fires featuresadded event with shapes vetoed by beforefeatureadded, p=timbonicus, r=me ( closes #2549 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-28 12:30:52 +00:00
Éric Lemoine
a5093a27fa
fix an error in the Layer.Vector docs, non-functional change, caught by pwr ( closes #2613 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-03 15:39:01 +00:00
Éric Lemoine
da2dffce1a
drawing features while the layer is not in the map may cause problem, r=pgiraud ( closes #2546 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-29 12:44:16 +00:00
ahocevar
50f26e3313
Changing our layers' clone methods so they create a clone of the layer state at the time of clone creation, not at the time the original was created. r=tschaub ( closes #2477 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10045 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 21:29:37 +00:00
ahocevar
88b05f55a1
Give Layer.Vector a proper clone() method. r=crschmidt ( closes #2391 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-09 12:01:45 +00:00
Éric Lemoine
442d760fe5
featuresremoved event is called with zero lenght array if layer.selectedFeature is supplied to layer.removeFeatures, p=igrcic, r,t=me ( closes #2379 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9929 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 22:16:56 +00:00
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