Xavier Mamano
107edcf0e5
Some minor documentation adjustments.
2012-01-07 20:07:07 +01:00
Xavier Mamano
b7dee9ca6d
Some problems in the documentation detected using "closure_verify"
2012-01-07 19:29:41 +01:00
tschaub
b844a3b11b
Happy New Year!
...
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
ahocevar
cfe25feecf
Making dateline handling work with ratio.
2011-12-28 20:14:39 +01:00
fredj
d20802369f
code simplification
2011-12-07 11:52:04 +01:00
fredj
315c37a075
getFeatureIdFromEvent returns a feature id or undefined, fix getFeatureIdFromEvent docstring
2011-12-07 11:50:58 +01:00
fredj
dc991e6f85
Remove Geometry.Surface
2011-11-28 12:41:47 +01:00
ahocevar
740e3c4d28
Defaults for featureDx and xOffset.
...
This is mostly done to make SVG and VML tests pass again, but it may also help existing applications that override setExtent or drawFeature without calling the superclass methods properly.
2011-10-12 08:25:20 +02:00
ahocevar
b56af5a5cf
Tests for setExtent; improved comments.
2011-10-08 14:34:59 -04:00
ahocevar
bb80c893fd
Documenting the featureDx, xOffset and rightOfDateLine member variables.
2011-10-08 12:03:16 -04:00
ahocevar
2cfe6f83c2
Cross-dateline rendering fixed for SVG and added for VML renderer.
2011-10-08 11:33:35 -04:00
Frédéric Junod
5d8468cf0a
ElementsIndexer: call clear in initialize. Non functional change. r=ahocevar ( closes #3340 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-03 07:27:42 +00:00
Frédéric Junod
010ab7e81f
fix typo in doc
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-02 11:30:38 +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
1b44b82908
Make sure that the background node is removed when redrawing with a different symbolizer. Thanks ahtih for this excellent debut patch. p=ahtih, r=me ( closes #2891 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10851 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-20 14:01:36 +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
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
bartvde
20a4025af0
Renderer: give featureId to eraseGeometry function, r=fredj ( closes #2693 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-30 10:49:06 +00:00
ahocevar
91bceb273b
apply symbolizer defaults earlier. r=tschaub ( closes #2584 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 15:35:45 +00:00
ahocevar
69b4a84381
replaced Renderer.Elements' minimumSymbolizer and Renderer.Canvas' symbolizer defaults with a new Renderer.defaultSymbolizer. r=elemoine ( closes #2584 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-12 20:58:13 +00:00
Tim Schaub
7b90863198
Instead of storing the geometry on all nodes (increasing memory drain) we only store what the indexer needs. The bounds bottom is only used in the compare method when checking for z and y ordering. r=ahocevar ( closes #2198 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9590 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-27 16:50:33 +00:00
Tim Schaub
1afb016408
Unmixing tabs and spaces. Non-functional change. Four spaces for tabs.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 19:50:45 +00:00
ahocevar
608ef2730f
Fixed regression with drawing order because of checking for the wrong
...
parent node. r=tschaub (closes #1066 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9306 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-18 22:00:36 +00:00
ahocevar
2aa7f22926
* added stroke, fill and graphic symbolizer properties (all boolean) to
...
control whether or not to render a stroke, fill and graphic.
* added a defaultsPerSymbolizer property to OpenLayers.Style to allow
for extending incomplete symbolizers with defaults for stroke, fill or
graphic. This also makes Format.SLD read/write round trips possible
without modifying empty or incomplete <Stroke/>, <Fill/> and <Graphic/>
constructs. r=tschaub (closes #1876 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:35:13 +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
ahocevar
8b0208ae44
Fixed ElementsIndexer to not stop at elements that are not currently
...
rendered. Thanks Adam Borrows for catching and describing this and the
patch which does exactly the right thing. r=me (closes #1986 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 16:29:00 +00:00
ahocevar
b1c11b9814
changed the renderer's getRenderLayer method to getRenderLayerId, which
...
always works even if the layer is not added to a map. Also removed an
unneeded map.events.unregister from Control.SelectFeature. r=elemoine
(closes #2022 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 13:43:53 +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
0379e028ba
Adding support for backgroundWidth and backgroundHeight properties on symbolizers. If not provided, background graphics are rendered with graphicWidth and graphicHeight values (or pointRadius if not provided). r=ahocevar ( closes #1968 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 23:56:09 +00:00
pgiraud
be82c1ef6e
don't re-append the geometry node if it is already there, a regression is fixed with this patch, r=ahocevar (Closes
...
#1066 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-26 14:54:16 +00:00
ahocevar
fb9d8e912a
modified logic to determine when a multipart geometry is fully rendered. Thanks to elemoine for the suggestion how to resolve the issue, thanks to igrcic for testing and turning it into a patch, and thanks to tcoulter for additional testing. r=me ( closes #1782 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-24 17:03:24 +00:00
ahocevar
f130df8ee7
Make sure that backgroundGraphic icon is deleted on feature destroy, even if no indexer is being used. r=crschmidt (Pullup #1718 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7996 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 12:58:35 +00:00
ahocevar
bbf739319c
non-functional change: added missing stub method nodeTypeCompare
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7953 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 21:11:10 +00:00
ahocevar
4255028c6a
Bringing back the pre-r7652 behavior that allows changing the node type for features that have already been rendered. This is important when re-rendering a feature with a new style, e.g. when switching from externalGraphic to graphicName point symbolizers. r=elemoine ( closes #1662 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 08:31:05 +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
ahocevar
9d1bcce4e5
Let's take care that background graphic nodes of features with backgroundGraphic style get removed properly when the style is changed to display: "none".
...
This solves the backgroundGraphic issue of #1709 , the remaining issue with externalGraphic will be fixed by #1675 .
Thanks jstern81 for the patch, and I am truly impressed by jstern81 finding the right spot in the codebase that needs to be fixed -- as an OpenLayers newcomer.
Tests added by myself. r=me. (references #1709 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-01 21:46:26 +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
3791712a10
maxZIndex becomes NULL when the last feature is removed, p=pvalsecc, r=me ( closes #1670 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7712 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 12:23:59 +00:00
Frédéric Junod
0493525660
remove local scope variables from global namespace. ( closes #1674 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 10:32:49 +00:00
ahocevar
9588f25ce5
Stroke style of features can now be specified. Both SVG's
...
stroke-dasharray and VML's dashstyle properties are allowed in the new
strokeDashstyle symbolizer property. For VML, which does not support
custom dash styles, one of the 5 matching pre-defined dash styles will
be guessed. The patch also adds support for the stroke-dasharray
property in SLD. r=crschmidt (closes #1126 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:56:17 +00:00
ahocevar
197043d249
fixed event handling and rendering of graphicName symbols for Safari and Opera. r=crschmidt ( closes #1653 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:35:35 +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
ahocevar
19ac2bec2d
added semicolon to fix single file build
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 17:47:27 +00:00
ahocevar
3dcc30a24c
added new graphicName symbolizer property, which allows to render well-known graphic symbols named "square", "cross", "x" and "triangle", in addition to the existing "circle". Thanks Tim for the tweaks and the example. r=tschaub,elemoine ( closes #1398 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7634 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 17:02:10 +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
pgiraud
eac4ff0c84
we forgot to take Geometry.Collection into account when erasing geometries, r=elemoine ( Closes #1621 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-18 07:18:27 +00:00
Tim Schaub
737fd7682a
Correcting doc bug for elements renderer. Thanks zarn.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-08 14:58:43 +00:00
euzuro
136a37bf2f
replacing tabs with spaces. no functional diffs here.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-29 00:38:47 +00:00
ahocevar
85d06c5137
VML and SVG renderers behave differently with zero strokeWidth. r=tschaub ( closes #1435 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6513 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 22:38:15 +00:00
ahocevar
e8d8dfccb7
New minimumSymbolizer object on Renderer.Elements, which defines only those properties that are needed to ensure that nothing breaks. r=tschaub ( closes #1345 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-17 14:49:37 +00:00