Commit Graph

  • f53ea737f1 Add a KaMapCache Layer class. Similar to the Layer.TileCache class, this layer allows access to a web-accessible pre-cached Ka-Map Layer. Patch from Pedro Simonetti (CLA on file). r=me, (Closes #1518) crschmidt 2008-09-04 19:17:47 +00:00
  • d2ac6cacfd Add a KaMapCache Layer class. Similar to the Layer.TileCache class, this layer allows access to a web-accessible pre-cached Ka-Map Layer. Patch from Pedro Simonetti (CLA on file). r=me, (Closes #1518) crschmidt 2008-09-04 19:17:47 +00:00
  • d19ec0da99 fix a somewhat broken FixedZoomLevels.js functionality -- the 'maxZoomLevels' property if set on a layer was not getting processed correctly. This patch fixes that issue, as well as adding a cole-slaw-sized blerb of comments explaining the rules of precedence wrt resolution setting for 3rd party layers (those who subclass FixedZoomLevels). Thanks to tschaub for poking me to clarify this previously messy territory, and for cr5 for kindly taking the time to review my patch. (Closes #1182) euzuro 2008-09-04 18:35:40 +00:00
  • 19bffb0092 Give VE its missing zoom-level (resolution). Thanks to TIM for finding this and pointing it out and thanks to cr5 for the quick review. (Closes #1181) euzuro 2008-09-04 16:57:56 +00:00
  • 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) ahocevar 2008-09-04 08:31:05 +00:00
  • 819dc62d09 fixing regression committed in r5280. applyDefaults() again allows for an undefined value as the 'from' parameter. thanks tim for report and review. (Closes #1716) euzuro 2008-09-04 02:19:41 +00:00
  • 4783dd5a45 add warning comment to wfs-t example. thanks for suggestion, o anonymous user. (Closes #1311) euzuro 2008-09-04 01:18:27 +00:00
  • d9e161f4d0 Allow layer.destroy to be called twice without failing for the vector layer. r=elemoine (closes #1697) Tim Schaub 2008-09-03 19:16:29 +00:00
  • 6277216053 Adding HTTP protocol. Give a vector layer the HTTP protocol to create, read, update, and delete features via HTTP. This can be subclassed by protocols that extend HTTP. Thanks for the collaboration (and great tests) on this elemoine - good working with you guys. r=elemoine,me (closes #1652) Tim Schaub 2008-09-03 19:10:47 +00:00
  • c12cb25aee New vector rendering for better performance and less renderer specific limitations. r=elemoine (closes #1675, closes #1656, closes #1631, closes #1431, closes #1709) ahocevar 2008-09-02 17:17:52 +00:00
  • ede7bef13c Adjust how the parameters are calculated for the GETVISIBLEMAPEXTENT call for overlays so that existing parameters are safely overwritten with the required parameters for this call. r=me (Closes #1647) Paul Spencer 2008-09-02 15:46:35 +00:00
  • f8d3e41105 Tiled MapGuide layers require different base assumptions for DPI and inches per unit in order to report the correct coordinates. The example is updated with a clear explanation of how to make these changes per-application. r=me (Closes #1511) Paul Spencer 2008-09-02 15:43:57 +00:00
  • 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". ahocevar 2008-09-01 21:46:26 +00:00
  • 274cd26c5a Don't check this.locked twince. r=euzuro (Closes #1712) Frédéric Junod 2008-09-01 06:02:54 +00:00
  • be8c90012e Fixing the sizing issues with the popups -- all this time, the 'size' parameter we were passing in to init a popup has been the *content* size, not the actual size of the popup. This confusion has stemmed from the fact that we weren't ever differentiating between the two. Now we are. Rename that parameter 'contentSize' in all the constructors. NOTE that this does not *break* API, it is merely renaming a variable. As such, no one should see any difference... other than the fact that autosized popups now stay their correct size when opened and closed repeatedly. Big thanks to jpulles for finding this bug and filing an accurate, informative, and detailed bug report. Thanks to ahocevar and crschmidt for reviewing. (Closes #1586) euzuro 2008-08-29 16:28:20 +00:00
  • d5bd6d59f2 use empty moveTo function to prevent tiles from actually being requested. (closes #1701) ahocevar 2008-08-29 10:11:54 +00:00
  • 8f1b84a8e1 To test real-life conditions, we cannot just use a bogus function to deactivate the control. (closes #1710) ahocevar 2008-08-29 09:27:29 +00:00
  • 07ac8f322a bubbling up the 'closest' parameter to the higher-level map object api calls zoomToScale() and zoomToExtent(). Includes thorough tests. r=cr5 (Closes #1250) euzuro 2008-08-29 06:08:32 +00:00
  • ec2b9b5289 improving the biceps of getStyle(). Now if you pass it a null object, it will not die. r=cr5 (Closes #1051) euzuro 2008-08-29 00:46:45 +00:00
  • 27526e6a0c Adding registerImageListener() function that sits around and waits until images load in our popups... and when they do, it calls updateSize() so that the popup is sized correctly. thanks for the sharp review cr5 (Closes #1469) euzuro 2008-08-28 22:05:46 +00:00
  • 3007b23621 Bubble out the code that handles the re-sizing of the popup into an APIMethod: updateSize(). Other change is that now instead of using the 'contentHTML' string property to autosize, we will now use the actual contentDiv's 'innerHTML' property. This is possible because in the setContentHTML() function, we switch around the order and set the conentDiv.innerHTML *before* calling updateSize(). Seemingly minor, this change actually does wonders towards distancing us from the horrendous idea that the 'contentHTML' property was in the first place. Now, if users go in and fudge with the contentDiv DOMElement directly, they can still benefit from the auto-sizing. In fact, 'contentHTML' can be totally ignored altogether. joy. All tests pass, including an eyeballing of the acceptance test examples/popupMatrix.html in ff2 and ie7. Mil gracias to cr5 for the speedy review (Closes #1708) euzuro 2008-08-28 20:04:17 +00:00
  • 2d286b7ccc Clear bounds of geometries when reprojecting. Patch wwork by myself, tschaub, ahocevar. r=ahocevar. (Closes #1658) crschmidt 2008-08-28 18:41:00 +00:00
  • 1b71180f14 fix reproj example crschmidt 2008-08-28 16:41:59 +00:00
  • 3dd6bdce66 bring changes to protocol base class, r=fredj (closes #1677) Éric Lemoine 2008-08-28 13:33:11 +00:00
  • d77bf63360 add a requires on parent class, ND comments fixes Frédéric Junod 2008-08-28 12:27:39 +00:00
  • 59826983c6 made permalink control more configurable by adding an argParserClass property and separating the logic for generating the key-value pairs from the div and link generation. Original patch by tcoulter. r=euzuro,me (closes #1489) ahocevar 2008-08-27 19:33:49 +00:00
  • 2a521ffcb2 Made the Feature handler more robust to things that are related to changing layer order on the map, by registering an event handler that will bring the handler's layer back to the top of the layer stack in the DOM. Contains a manual test. r=elemoine (closes #1628) ahocevar 2008-08-27 14:02:21 +00:00
  • 8e0876488b Add a moveend event to layer. By registering to that event (instead of that at the map level) strategies need to check that the layer is in range and active before fetching new features. r=ahocevar (closes #1678) Éric Lemoine 2008-08-27 06:27:22 +00:00
  • 72bf882b62 Controls should (by definition within OL) stop downs (if they care) and allow ups to propogate. The default behavior of the Feature handler broke this rule, and as a result, some aspects of ragging a box control failed when letting go over a feature. This corrects the behavior. r=ahocevar. (Closes #1293) crschmidt 2008-08-26 23:35:31 +00:00
  • 17160f49e0 Add support in OL for right-click capturing, including dbl-right-clicks (for zooming out in navigation control). Thanks to David Martin for this nice patch and the great 8 foot austrian for his review (Closes #1359) euzuro 2008-08-26 23:27:04 +00:00
  • 091d3cfbeb GeoRSS fails on large line/poly nodes in FF. Use concatChildNodes to get all the text into one string before parsing. Includes manual test. r=ahocevar. (Closes #1614) crschmidt 2008-08-26 23:24:44 +00:00
  • 319c8f87ef Exceptions in Firefox are slow. (The costs of the lovely exception.stack, most likely.) Don't depend on exceptions for parsing XML, then: instead, use an if/else. 3x speed up of WMC parsing in FF. r=ahocevar (Closes #1642) crschmidt 2008-08-26 23:11:03 +00:00
  • 75b129191b rule.value2regex does now unescape double escape. Patch by tcoulter. r=me (closes #1453) ahocevar 2008-08-26 18:03:41 +00:00
  • 0eadc40e27 Keep the 'loadstart' event from firing twice on the Layer.Text. r=elemoine, cr5 (Closes #1696) euzuro 2008-08-26 17:17:19 +00:00
  • 00192b64ab Added support for different projections for main map and overview map. Patch by bartvde. Modifications to the original patch: * caclulation of resolution factor no longer depends on proj4js, * created a member variable for the resolution factor and moved the calculation of the resolution factor to createMap(), * created acceptance test (tests/manual/overviewmap-projection.html). r=me (closes #1620) ahocevar 2008-08-26 14:54:48 +00:00
  • acb003453f Update calculateInRange: Only turn layers off if they have some scale-related properties set directly in their creation options. By default, layers will be "always on", with an overridable "alwaysInRange" parameter. crschmidt 2008-08-26 14:27:36 +00:00
  • 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. crschmidt 2008-08-26 14:22:59 +00:00
  • 4fcd61f276 Clear point bounds after changing coordinates. Prevents strange behaviour of IE when doing getBounds(). r=elemoine (closes #1690) ahocevar 2008-08-26 07:39:21 +00:00
  • afecf46652 Small patch to allow an 'id' property to be custom-set on controls -- without being overrided by the default random id generator. Thanks to Stephen I for the bug report. r=elemoine (Closes #1687) euzuro 2008-08-22 13:23:16 +00:00
  • 52a5173326 forgot to commit modified tests (references #1679) ahocevar 2008-08-18 13:20:01 +00:00
  • 5e9965a922 forgot to commit modified examples (references #1679) ahocevar 2008-08-18 12:57:32 +00:00
  • 8f45e0572e "disable z-indexing of elements in the Elements renderer by default". r=elemoine (closes #1679) ahocevar 2008-08-18 12:53:06 +00:00
  • 73eb0d5745 use t.eq instead of t.ok when comparing values ahocevar 2008-08-16 10:52:01 +00:00
  • 7a462b74ee Give the map a size to pass the tests on IE 7 Frédéric Junod 2008-08-08 14:39:17 +00:00
  • f086ba17b4 keep the cursor style to 'move' if the cursor is above a feature. r=elemoine (closes #1673) Frédéric Junod 2008-08-08 13:34:59 +00:00
  • 3791712a10 maxZIndex becomes NULL when the last feature is removed, p=pvalsecc, r=me (closes #1670) Éric Lemoine 2008-08-08 12:23:59 +00:00
  • 0493525660 remove local scope variables from global namespace. (closes #1674) Frédéric Junod 2008-08-08 10:32:49 +00:00
  • e0ac42ac5c Update copyright year, wrap long line, generate api doc, fix mailing list url. (closes #1618) Frédéric Junod 2008-08-08 07:09:14 +00:00
  • d7ab2c0f60 Layer.Vector.removeMap must deactivate the strategies, r=fredj (closes #1649) Éric Lemoine 2008-08-05 13:59:12 +00:00
  • 39201a0427 Adding OpenLayers.Strategy.Fixed: A simple strategy that requests features once and never requests new data. r=elemoine, (Closes #1664) Frédéric Junod 2008-08-05 11:55:24 +00:00
  • 4be8c169d4 test Strategy.activate and Strategy.deactivate Frédéric Junod 2008-08-05 11:44:36 +00:00
  • 18af32a5ac Remove JSDOC from CLASS_NAME property, (see #853) Frédéric Junod 2008-08-05 05:54:47 +00:00
  • 14119a6811 Fix a typo in Layer.Vector.destroy and add unit tests for protocol and strategies construct/destroy, r=crschmidt (closes #1659) Frédéric Junod 2008-08-05 05:39:11 +00:00
  • a3ffb5734c OpenLayers.Strategy destroy() nullify options property. r=elemoine (closes #1657) Frédéric Junod 2008-08-04 12:25:47 +00:00
  • 397de6fc6a "Format.GeoJSON does not parse features with null geometries", r=elemoine (Closes #1145) crschmidt 2008-08-04 10:38:01 +00:00
  • 21191ad0b9 if scales is set on the map, you cannot use minScale and maxScale on the layer, p=pgiraud, r=me,euzuro (closes #1199) Éric Lemoine 2008-08-04 09:20:23 +00:00
  • 9e83c720d9 Test if OpenLayers.Protocol::destroy() nullify options property Frédéric Junod 2008-08-04 09:11:19 +00:00
  • 91f3c5e652 Improve getRenderedDimensions to take into account a CSS class. Refactor some popup code to take advantage of this, to provide a better hint to the getRenderedDimensions call as to what is going on. Patch from sbenthall, r=me, includes a manual acceptance test (only because the testing framework makes these kinds of things hard). Manually confirmed to work with the sundials.html example, tested with that and manual test in IE6, IE7, FF2-Win FF3-Mac FF2-Mac Safari-Mac Opera-Win, and in all browsers it worked. (Hooray!) Nice one, sbenthall. (Closes #1500) crschmidt 2008-08-03 18:47:52 +00:00
  • cdd4c864ea Flipped a return value here; this should be 'true', not 'false'. (See #1655) crschmidt 2008-08-03 12:24:18 +00:00
  • 693e6d07e3 Fix for Feature handler uses getFeatureFromEvent on mousemove even without hover callbacks; r=ahocevar (Closes #1655) crschmidt 2008-08-03 02:06:31 +00:00
  • f0e9c1c6a5 removed wms layer from externalGraphic test. Makes test faster. ahocevar 2008-08-03 01:30:29 +00:00
  • 8bd5eee49f simplified vector-features-performance test ahocevar 2008-08-03 00:30:30 +00:00
  • d437dec91c Since the Sundials is our primary KML + bubbles example, put in some naive Javascript <script> injection protection, so that people are at least aware of the issue. This will search for <script and if it exists, escape the content so that it doesn't execute. crschmidt 2008-08-02 21:56:25 +00:00
  • f1882f0efa "panTo should use tween if new center is in the current bounds + a ratio". Add a bounds.scale method (takes a ratio and an optional center) and call it from the panTo to give a ratio we can pan inside of. Patch by sbenthall, r=me,elemoine (Closes #1341) crschmidt 2008-08-02 01:56:36 +00:00
  • 61225ed98f Fixing an obvious bug in Ajax.js: when we upgraded Prototype, we missed a pair -> extras, caught by 'falstaff'. (Closes #1559) crschmidt 2008-08-02 01:44:26 +00:00
  • 711d909a14 Update VE script location to new version. crschmidt 2008-08-01 22:24:44 +00:00
  • 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) crschmidt 2008-08-01 22:21:50 +00:00
  • ba561a9fb5 Improve docs; explicitly mention that this transform is *in place* crschmidt 2008-08-01 22:09:20 +00:00
  • 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) ahocevar 2008-08-01 21:56:17 +00:00
  • 7148b10123 do not ignore style.rotation if set to 0 any more. r=crschmidt (closes #1654) ahocevar 2008-08-01 21:49:44 +00:00
  • 197043d249 fixed event handling and rendering of graphicName symbols for Safari and Opera. r=crschmidt (closes #1653) ahocevar 2008-08-01 21:35:35 +00:00
  • eddfa62c1f Use getAttributeNS instead of getAttribute. Non-functional change. (references #1650) ahocevar 2008-08-01 21:12:56 +00:00
  • a59e7f0f4e fixed rendering but in FF3 when resizing graphicName symbols. r=crschmidt (fixes #1650) ahocevar 2008-08-01 18:43:31 +00:00
  • 2b8cc7e0fd "WMC: queryable seems implemented but does not actually work", patch from Bart, tests by me, r=me, (Closes #1447) crschmidt 2008-08-01 18:30:55 +00:00
  • 7f38f22d8f Refactor backBuffer tile code out of generic Tile base class into Tile.Image to make it nicer when subclassing Tile for other needs. (Closes #1645) r=elemoine. Paul Spencer 2008-08-01 18:25:28 +00:00
  • e7ebdc8aa0 Non unique HTMLElement in Control, fix put together by sbenthall. Tests pass, etc. (Closes #1396) crschmidt 2008-08-01 18:21:56 +00:00
  • 76170bf821 making the test div smaller so I don't have to scroll two things to run a specific test. crschmidt 2008-08-01 18:15:30 +00:00
  • 232b635b12 replace all spaces with '', so that it matches in SVG + FFox crschmidt 2008-08-01 18:12:09 +00:00
  • 6f73b412c2 Get our VirtualEarth layer working again with the latest (6.1) version. Backwards compatible with earlier versions thanks to soft insistence of cr5. Thanks to funkyc for the co-sleuthing. r=cr5 (Closes #1540) euzuro 2008-08-01 15:34:50 +00:00
  • 558cd57e41 backing out patch for r7647 as it breaks framedcloud popups. (See #1586) euzuro 2008-08-01 05:06:30 +00:00
  • 48e8a981d1 typo in comment. Paul Spencer 2008-08-01 03:03:25 +00:00
  • f3283e9212 Adding gml specific attributes to feature in gml parsing. p=sbenthall r=me (closes #1328) Tim Schaub 2008-08-01 01:30:39 +00:00
  • 714b1d7363 Unrequire that which does not exist. Tim Schaub 2008-08-01 00:35:02 +00:00
  • 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) euzuro 2008-08-01 00:17:59 +00:00
  • d4a62c630a Adding a filter format for version 1.0.0 filter encoding. The sld parser extends itself to use readers and writers from the filter parser. r=me (closes #1605) Tim Schaub 2008-07-31 23:34:19 +00:00
  • 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) Tim Schaub 2008-07-31 21:27:35 +00:00
  • 5191dac459 Take css borders into account when drawing the box. This has to be done for every browser, except IE in quirks mode. r=crschmidt (closes 1593) ahocevar 2008-07-31 21:21:10 +00:00
  • d3151ccb40 Updated Control.KeyboardDefaults tests, but not the Handler.Keyboard tests. crschmidt 2008-07-31 20:49:59 +00:00
  • c953579eb9 Fix for non auto-size popups that were progressively expanding each time they were opened. a little investigation showed us that there was some unfortunate ambiguity with the 'size' property, which was alternatively being used as 'size' and 'contentSize'. cheers to seb for an elegant solution r=cr5,me (Closes #1586) euzuro 2008-07-31 20:40:00 +00:00
  • a2905538d8 add anonymous username to url to prevent basic auth challenge when running tests. (Closes #1460) Update by madair, r=me Paul Spencer 2008-07-31 18:47:29 +00:00
  • 19ac2bec2d added semicolon to fix single file build ahocevar 2008-07-31 17:47:27 +00:00
  • 09b4073636 * Fixes to the Keyboard Handler to make it work better -- * drop keypress event (not used, registers as keydown in IE< which results in double events) * return evt instead of evt.keyCode || evt.charCode, so apps can do whatever they like best * adjust ModifyFeature to new API * Adjust KeyboardDefaults to new API, and include a new set of keyCodes in switch statement to catch more cases * Include keyboard defaults test in list-tests. crschmidt 2008-07-31 17:45:16 +00:00
  • 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) ahocevar 2008-07-31 17:02:10 +00:00
  • 9bdd7bc77a Alphabetize test list. Tim Schaub 2008-07-31 16:21:00 +00:00
  • 03c7e5f742 Add simplified chinese translation from avlee. (Closes #1643) crschmidt 2008-07-31 15:11:32 +00:00
  • 66a4c6fb0e Caching array length instead of accessing it with each iteration. r=crschmidt (closes #1636) Tim Schaub 2008-07-31 04:44:25 +00:00
  • 89b10da8db Fix for WMC does not read/write metadataURLs. This matches the style of other similar properties in the code, and has a negligable (<5%) impact on parsing speed in Firefox/Safari. patch from bartvde, (Closes #1452) crschmidt 2008-07-31 00:00:27 +00:00
  • 2d1e406e20 add a geometry intersection speed test crschmidt 2008-07-30 23:53:10 +00:00
  • 0372a110f8 make link look clickable crschmidt 2008-07-30 23:08:41 +00:00
  • 504e952081 Adding a WMC speed test crschmidt 2008-07-30 23:08:09 +00:00