Commit Graph

228 Commits

Author SHA1 Message Date
Antoine Abt
188be77570 Merge pull request #140 from aabt/outline
Add label outline to SVG and Canvas renderers
2012-01-17 04:45:50 -08:00
Antoine Abt
71d9d36266 when removeText, remove its outline too 2012-01-12 10:41:34 +01:00
fredj
cbfb68f397 Change all 'Parameter:' to 'Parameters:' in documentation. Non functional change 2012-01-12 09:32:49 +01:00
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
Antoine Abt
be585c5f23 Add support for SVG renderer ( Heavily inspired from rdewit’s patch http://trac.osgeo.org/openlayers/ticket/2965 ) 2012-01-05 17:32:00 +01:00
Antoine Abt
5be7e7f844 don’t duplicate defaults in renderers 2012-01-05 10:26:05 +01:00
Antoine Abt
0ff9d54d5c better alignment 2012-01-04 11:00:29 +01:00
Antoine Abt
6be48e9ef9 Basic support for canvas only (patch from trac #3503) 2012-01-04 10:59:51 +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
towa48
a1b6644b2a Prevent duplicate node title in SVG renderer. 2011-12-08 12:11:39 +03:00
fredj
03b8406746 Canvas.getFeatureIdFromEvent: return undefined instead of null 2011-12-07 12:08:04 +01:00
fredj
71fbfff02a return undefined instead of false from getFeatureIdFromEvent 2011-12-07 11:59:53 +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
6dc36e90ac Declaring inRange variable. No functional change. 2011-10-25 18:52:00 +02: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
tschaub
cb74ede41b Handle features without bounds.
Updates to tests to work with new wrap dateline code.  Canvas renderer needs to handle geometries without bounds as well.
2011-10-11 14:48:10 -06:00
ahocevar
b56af5a5cf Tests for setExtent; improved comments. 2011-10-08 14:34:59 -04:00
ahocevar
281ae3dfe7 new calculateFeatureDx method which is used by both Canvas and Elements renderers. 2011-10-08 12:26:19 -04:00
ahocevar
f2fcb5a95c Canvas renderer needs to return false from setExtent 2011-10-08 12:21:51 -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
ahocevar
868757501f deal with the dateline in the SVG renderer. Not yet fully functional. 2011-10-02 15:40:13 -06:00
tschaub
b82a24ef36 Determine how many worlds away we are instead of simply wrapping. 2011-09-30 13:22:29 -06:00
tschaub
9ab440e615 Calculate x-offset for features outside the world bounds. 2011-09-29 19:51:20 -06:00
tschaub
f5f93ac947 Don't render if feature doesn't intersect renderer extent in a warped sense. 2011-09-29 19:50:11 -06:00
ahocevar
8bf0d74291 reverting accidently committed changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-12 04:31:16 +00:00
ahocevar
22bd5fa546 also consider the resolutions array if no zoomOffset is provided. r=bartvde (closes #3485)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-12 04:26:32 +00:00
Frédéric Junod
0b8a98d9a6 handle features with null bounds in OpenLayers.Renderer.Canvas.drawFeature. p=arublev,me r=erilem (closes #3442)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-03 15:47:06 +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
Frédéric Junod
dfa86d3c20 remove unneeded destroy and initialize function. r=ahocevar (pullup #3341)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12050 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 11:02:11 +00: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
ahocevar
d6698e3771 fixing a typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-28 15:52:37 +00:00
Antoine Abt
6ce9feed03 round coordinates of externalGraphic in Canvas renderer, prevent Gecko to blur images p=pgira,me r=ahocevar (closes #3305)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-19 14:02:44 +00:00
Bruno Binet
c0112c9bc6 fix regression introduced in [11881]: redraw is needed for unrendered features to be properly cleared. r=erilem (closes #3224)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-04 12:08:25 +00:00
Éric Lemoine
81342b4b1f the canvas renderer may mess up when rendering external graphics, r=erilem (closes #3264)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-21 07:55:19 +00:00
Tim Schaub
d711e36ed6 Making it so the Canvas renderer does not draw features with display "none" or those with geometries outside the renderer extent. p=me,ahocevar r=erilem (closes #3224)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-06 15:35:24 +00:00
Éric Lemoine
79b70e6dd4 avoid defining the same variable multiple times, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 19:27:52 +00:00
ahocevar
5995202f3a working around drawImage issue on Android 2.1 devices. r=erilem (closes #3243)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 15:12:44 +00:00
ahocevar
0527f120a8 Removing unused variables and function. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-04 07:58:13 +00:00
Tim Schaub
cf311ee532 Making the canvas renderer keep track of a pending redraw. With this change we properly redraw even if the last feature in a batch has no geometry. p=me,ahocevar r=ahocevar (closes #3225)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11860 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 05:04:17 +00:00
Tim Schaub
62dd64c1c9 Simplifying hit detection for external graphics rendered with canvas. With this change, events within the graphic bounds will be considered hits (previously only events over visible pixels in the external graphic were considered hits). This simplification gets around same origin limitations. r=erilem (closes #3238)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 04:58:49 +00:00
Tim Schaub
bb9a11a469 Making it so the canvas renderer returns true after rendering a feature. This saves an extra draw for every moveTo. p=vog,me r=me (closes #3225)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11851 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 22:25:06 +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
ahocevar
174078bca9 adding support for line breaks to SVG, SVG2 and Canvas renderers. Also adds vertical alignment support to Canvas. p=vog,fredj,me r=me (closes #2193)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:58:28 +00:00
Frédéric Junod
33d330c0db font style support for feature label. r=erilem (closes #3051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11744 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 09:54:00 +00:00