Compare commits

...

1651 Commits

Author SHA1 Message Date
bartvde
2d3f43ed66 Tagging the 2.9 rc1 Release
git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.9-rc1@10147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-26 16:45:55 +00:00
bartvde
2150a2c783 Branching for the 2.9 Release
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.9@10146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-26 15:14:59 +00:00
Tim Schaub
20cbb95feb Avoid pink in primary example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-25 17:07:21 +00:00
Tim Schaub
14ac071f20 Demonstrate the control of z-index in different render intents.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-25 17:04:26 +00:00
Tim Schaub
e7d3e64908 Adding an example of rule based style.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-24 18:27:57 +00:00
Tim Schaub
3de62b703a Adding multi property to the DrawFeature control. If true, geometries will be cast to multi-part counterparts before features are added to the target layer. r=ahocevar (closes #2542)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-23 17:49:13 +00:00
bartvde
ff8b356638 fix up Layer.Vector tests in IE which were broken as of r10039, r=elemoine (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-23 08:19:11 +00:00
pgiraud
180eb8485f let's remove unrequired tests, r=bartvde, (Closes #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-22 16:44:16 +00:00
bartvde
48cc4b138b reverting r10112 Spelling of API methods getURL and setUrl of imagelayers is inconsistent and confusing, see ticket:2354
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-22 07:29:35 +00:00
ahocevar
f4fbc96036 fixed KML parsing for cases where a line break is only before or after a CDATA block. r=bartvde (closes #2398)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-21 21:10:33 +00:00
Tim Schaub
1f77d278ef Demonstrating that graphicXOffset works the same in IE and FF.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-21 18:00:33 +00:00
ahocevar
7632e54a4d fixed rotation center for non-square symbols in non-defs mode (Webkit). r=bartvde (closes #2499)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 21:50:39 +00:00
ahocevar
35168dc219 fixing rotation so previously rotated geometries will be rotated back if the rotation symbolizer attribute is not set any more. r=bartvde (closes #2500)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 21:33:36 +00:00
Tim Schaub
a5bb2b01b3 Adding tests for encoding & decoding URI components to avoid future regressions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 03:46:49 +00:00
Tim Schaub
5038090d74 Being liberal in what we accept in query strings. A properly encoded '+' should be '%2B' in a URI component. A properly encoded ' ' (space) should be '%20'. When we encounter a '+', we can safely replace it with ' ' before properly decoding the remainder of the component. This follows the convention that '+' is used widely to represent a space in a URL. r=bartvde (closes #2527)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 03:06:22 +00:00
Tim Schaub
fcfb22920b Reverting r10130 to avoid double decoding (see #1704).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 02:48:55 +00:00
Tim Schaub
d324395de6 Test to demonstrate regression introduced in r10130 (see #1704).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-20 02:47:32 +00:00
bartvde
a1db2ca642 Malformed URI sequence in Firefox when using special characters in url, p=jaj@gecko.no, r=me (closes #1704)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 20:57:37 +00:00
Frédéric Junod
1faed26393 extend Protocol.HTTP for MapFish and FeatureServer. p=elemoine, r=bartvde,me (closes #2393)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 15:12:50 +00:00
Frédéric Junod
fe9aa59b91 remove unused mapRect variable, add missing semicolons, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 13:34:45 +00:00
crschmidt
3304c6cb0e "MousePosition control should support mouseOut event", r=bartvde,
initial patch cmoullet, (Closes #2404)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 13:34:14 +00:00
Frédéric Junod
cca74e7635 fix semicolons and remove a global var
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 13:22:56 +00:00
Frédéric Junod
27234b07ff mark Element.getDimensions as deprecated and remove the workaround in Map.getCurrentSize. p=bbinet, r=me (closes #2414)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 12:38:29 +00:00
bartvde
223547e227 fix up Format/CSWGetRecords/v2_0_2.html tests in IE6, non-functional change (closes #2537)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 12:30:23 +00:00
bartvde
6ecdf6c1aa fix up Control ScaleLine tests in IE6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 11:52:42 +00:00
bartvde
1c51a13903 fix up tests for Google Layer if there is no valid key (closes #2535)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 11:22:13 +00:00
bartvde
c1409ee57d fix up ArcGIS93Rest Layer tests (closes #2533)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 10:45:27 +00:00
bartvde
ba91df7f1b fix up tests in Layer.html after clone method was changed, since the clone now represents the original in its current state, and not the state at creation, two tests had to be adapted, non-functional change (closes #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 10:02:08 +00:00
Frédéric Junod
48ba06b294 remove unneeded layerswitcher div and add a transitionEffect
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:47:30 +00:00
Frédéric Junod
4ab6b7ec24 Layer.MapGuide.getURL: use map.getSize instead of map.getCurrentSize. r=bartvde (closes #2532)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:38:46 +00:00
Éric Lemoine
76983744da changes to WMSGetFeatureInfo so requests can be sent on click,
rightclick, and dblclick, r=bartvde (closes #2528)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:35:53 +00:00
Frédéric Junod
37e0c0b4f5 LinearRing.getCentroid: return null if the geometry has no components. r=pgiraud (closes #2530)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:05:12 +00:00
bartvde
c54dc76d15 when select feature control is destroyed and layers parameter was an array, the root container is not moved correctly, p=jorix, r=ahocevar,me (closes #2502)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 09:00:41 +00:00
Frédéric Junod
1757d4082e deactivate on clear. r=bartvde (closes #2471)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 08:46:36 +00:00
bartvde
fc4e05dd83 canvas and textAlign: middle not recognized, I made one change to original patch to not include the default value in LABEL_ALIGN since I did not see the purpose of adding that, p=fredj, r=me (closes #2439)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 08:14:48 +00:00
bartvde
3e5bd85849 Spelling of API methods getURL and setUrl of imagelayers is inconsistent and confusing, p=marcjansen, r=me (closes #2354)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10112 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-19 07:54:11 +00:00
Frédéric Junod
dc5fa3c612 add missing semicolon, remove global variables. r=bartvde (closes #2529)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-18 13:30:33 +00:00
ahocevar
e7b0857e31 Give the ScaleLine control a geodesic option. Setting this to true will provide an accurate scale bar in Spherical Mercator maps. r=bartvde (closes #1890)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-18 13:26:02 +00:00
bartvde
1dd852ef09 Layer.WFS missing OpenLayers.Util.upperCaseObject(params), p=pdziemiela, r=elemoine,me (closes #2362)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-18 13:19:42 +00:00
ahocevar
a036ffff1b reverted previous comment change - the comment was correct, we are dealing with kilometers here. non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 23:12:38 +00:00
bartvde
bc1246877e use layer.filter in Strategy.Fixed, p=pspencer, r=tschaub (closes #2152)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 21:22:51 +00:00
bartvde
e061da04c9 fix bug in panzoombar slider, p=sowee, r=me (closes #2384)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 21:16:01 +00:00
bartvde
1d6c1f437e change property zoomBarDiv to zoombarDiv to match the actual code in PanZoomBar, reported by Gerardo, non-functional change (closes #2188)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 20:46:47 +00:00
bartvde
4e2d70b770 support pointRadius for canvas renderer, p=gregers, r=me (closes #2126)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 20:31:58 +00:00
bartvde
90c6a020c7 add 2 more resolutions to Bing Maps, p=fredj, r=me (closes #1893)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 20:21:38 +00:00
ahocevar
891b12160c fixed comment - distVincenty returns meters, not kilometers. Non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-17 17:47:18 +00:00
bartvde
bc84b54343 bbox strategy should call loadend when aborting, p=fvanderbiest, r=me (closes #2504)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-16 15:16:19 +00:00
Frédéric Junod
fd768cf170 fix all examples title. non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-12 07:44:02 +00:00
bartvde
6fa1a14456 Change domain name in ArcIMS samples, p=dzwarg, non-functional change (closes #2514)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-11 17:15:25 +00:00
ahocevar
94c4837475 Fixed typo in LayerSwitcher. Thanks Pierre for the quick review response. r=pgiraud (closes #2512)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-09 09:59:09 +00:00
ahocevar
3d4d2de615 added rotation to "select" intent - helps us to find renderer rotation issues
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-05 06:51:44 +00:00
ahocevar
22f0f933fb Added Layer.Zoomify. This is a late follow-up on the FOSS4G 2009 sprint
in Sydney. Thanks Petr for the hard work on this. p=klokan, r=me (closes 
#1285)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-04 08:41:18 +00:00
ahocevar
8adcc155fb Added Map::addControls method. Yet another quality patch from Marc, with everything done right plus unit tests. p=marcjansen, r=me (closes #2399)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-02 21:39:23 +00:00
Tim Schaub
a27c552554 Switching to a proxy that allows POST.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-03-01 17:12:00 +00:00
bartvde
ac60e4fcf6 load events not working properly in OpenLayers.Tile.Image.IFrame, r=fvanderbiest (closes #2406)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-23 17:16:49 +00:00
Tim Schaub
09a858559b Adding clone method to the Google layer. r=ahocevar (closes #2473)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10081 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-20 20:14:53 +00:00
ahocevar
2eb866658a fixed visibility issue with allOverlays:true. r=pgiraud (closes #2328)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10079 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-17 18:12:29 +00:00
Frédéric Junod
876fdebec9 OpenLayers.Util.getParameters: decodeURIComponent the keys, not only the values. r=elemoine (closes #2327)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-17 06:59:49 +00:00
Frédéric Junod
662564957c Move the control.div styling from the code to style.css. r=elemoine (closes #2476)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10070 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-16 08:21:25 +00:00
ahocevar
e21dc76468 hide Terms Of Use for invisible Google Layers using a negative offset,
because during GMap2 initialization, we don't have control over 
style.display. r=fredj (closes #2328)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-16 08:05:52 +00:00
pgiraud
b165d015e1 adds a zoomBoxEnabled boolean option in Control.Navigation, r=ahocevar, (Closes #2416)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10067 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 13:08:28 +00:00
pgiraud
7a546bf5c5 fixed the unit tests on OpenLayers.js (broken since r9935), patch from Andreas who found a nice and clean way to bypass the cache system on _getScriptLocation for the tests, r=me,fredj (Closes #2389)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 12:41:23 +00:00
bartvde
5c03ebd729 change comment for maxFeatures in OpenLayers.Control.GetFeature
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 10:30:40 +00:00
pgiraud
7179166603 adds a new getVisibility method in the Feature.Vector class, used in the SelectFeature control this method now allows us to tell the select feature box handler wether to select or not the features, r=ahocevar, (Closes #2418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 09:05:49 +00:00
ahocevar
6b7fd781ee fixed VML renderer so it does not change fillColor on node._style
anymore when rendering externalGraphic. r=fredj (closes #2485)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10063 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-15 08:19:37 +00:00
ahocevar
e17dc78e1d now that we truncate instead of rounding, graphics with odd width are shifted .5 pixels to the left (to the right before that change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-13 17:31:13 +00:00
ahocevar
fbc9a6f43a fixed regression with broken polygon fills. r=crschmidt (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-11 15:57:26 +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
Tim Schaub
83297678ba Allowing layers, center, and zoom to be set in the layer constructor. r=ahocevar (closes #2480)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10044 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 20:14:02 +00:00
ahocevar
2e47542fbe give map::getResolution a fallback from baseLayer to the 1st layer if in allOverlays mode. r=tschaub (closes #2479)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10043 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 19:05:58 +00:00
Tim Schaub
e5e4d49d33 Destroying what we create.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10042 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 18:43:20 +00:00
ahocevar
5050814fa4 remove acceptance test again, because this can easily be shown in a unit test instead (see #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10041 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 13:01:14 +00:00
ahocevar
15de885540 Acceptance test checking for proper clone() behavior (see #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10040 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 12:53:45 +00:00
ahocevar
6811dc3745 Fix initial offset and visibility issues in VML renderer; also make sure that all floats are converted to integers (previously using toFixed(), now using (num | 0)). p=tschaub,me, r=tschaub,me (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 07:04:31 +00:00
ahocevar
b19261d417 Update size of invisible Google layer before making it visible. r=tschaub (closes #2475)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 06:58:21 +00:00
Tim Schaub
74aaf479a5 Making this closer to a positive assertion.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 23:01:47 +00:00
ahocevar
ec8e2146ec manual test showing a regression (see #1797)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 20:24:59 +00:00
ahocevar
0af99e0de7 Give the GetFeature control a beforefeaturesselected and featuresselected event. p=komacke, r=me (closes #2442)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 12:30:02 +00:00
bartvde
777ef007ad Make Format.SLD work against ArcGIS Server, r=tschaub (closes #2166)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10034 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 06:38:54 +00:00
bartvde
1b3af5d26d add ability to write out a WFS Transaction without a geometry, r=tschaub (closes #2033)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 06:26:06 +00:00
Éric Lemoine
07437865db change da-DK.js to UTF-8, p=adube, r=me (closes #2472)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-09 05:46:23 +00:00
Frédéric Junod
2ba1de77f8 add 2 fixed resolutions to the Google layer. r=bartvde (closes #2429)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-08 15:35:31 +00:00
Frédéric Junod
d14f3c6c31 remove global and unused variable. r=bartvde (closes #2459)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-06 14:47:19 +00:00
ahocevar
b2a1dee791 changing google.css so our maps are also terms of use compliant in IE. r=tschaub (closes #2466)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 20:19:56 +00:00
Tim Schaub
db153e199a Correctly parse feature attributes when the attribute name matches the feature type name. r=bartvde (closes #2435)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10027 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 20:17:59 +00:00
Tim Schaub
2d61186deb Respecting fractional zoom when desired. Allowing string argument to map.zoomTo. r=bartvde (closes #2180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 19:48:29 +00:00
Tim Schaub
52f34e0baf Improving the PanZoomBar behavior so that when you click on the bar after dragging to the top, the map doesn't re-zoom on mouse up. r=me (closes #1861)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 19:16:51 +00:00
bartvde
8521ebb7c0 Format.WMC: protect against MinScaleDenominator of 0, r=tschaub thanks tschaub for the updated patch, tests still pass in FF 3.5 and Safari 4 (closes #2028)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 18:13:24 +00:00
Tim Schaub
36d96126eb Ensuring that setVisibility is called during setBaseLayer for layers where visibility is true. (With allOverlays true, a layer doesn't have to be visible to beocome the base layer - twisted huh?) r=ahocevar (closes #2290)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-05 16:38:34 +00:00
Tim Schaub
06d2b4229d Making it so the Map constructor doesn't fail when the provided viewport element isn't displayed. r=ahocevar (closes #2461)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 19:49:10 +00:00
Tim Schaub
929e6b323c Reworking the Google layer so that a shared GMap object is used for all Google layers on a single map. This reduces the DOM overhead and gets rid of map resizing issues. Excellent solution by ahocevar. r=me,ahocevar (closes #1797).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 19:18:53 +00:00
Tim Schaub
77ffdf7248 Give all elements position for IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10020 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 17:54:12 +00:00
Tim Schaub
37e881bc54 Making it so OpenLayers.Util.getResolutionFromScale returns undefined resolution when given a falsey scale. r=ahocevar (closes #2464, see #2462)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10019 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 17:02:23 +00:00
Tim Schaub
ae73ca0679 Including required stylesheet.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10018 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-04 00:25:19 +00:00
Tim Schaub
78a2289d6a Update to multiple Google acceptance test to demonstrate issue with initially visible layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10017 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 23:55:04 +00:00
Tim Schaub
e3561c3ceb Adding manual acceptance test for multiple Google layers (see #1797).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 18:35:38 +00:00
Tim Schaub
5c7d3e5632 Looks as if /proxy no longer supports POST.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 17:23:12 +00:00
Tim Schaub
a5848fc84d Preserving center and scale when switching base layers. This improves behavior when the map wraps around the domain of the coordinate reference system or when changing between layers in different projections. r=ahocever (closes #2457).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 17:09:17 +00:00
Tim Schaub
af1e754546 Keeping a reference to the event pane when a layer is removed from the map. The pane is set in initialize and set to null in destroy. r=ahocevar (closes #2456)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10013 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 16:28:29 +00:00
ahocevar
ec455e81e1 fixed typo that broke fontColor rendering in VML.js. Thanks paco for spotting this. r=fredj (closes #2231)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 14:43:19 +00:00
crschmidt
f927d79977 add 4-line OSM example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 12:22:40 +00:00
Frédéric Junod
c75e16e5f2 Parse the KML LabelStyle and use the color and opacity value. Create a parseKmlColor function to avoid code duplication. r=pgiraud (closes #2413)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 10:23:19 +00:00
pgiraud
2100d63846 we were missing a break statement in the KML parseStyle method, tests are modified accordingly, r=fredj (Closes #2448)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-03 09:35:45 +00:00
Frédéric Junod
6223d7fd82 Add a cumulative mode in MouseWheel handler. r=ahocevar (closes #2450)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-01 08:42:17 +00:00
ahocevar
9b728d048d fixed encoding issue in the example description (see #2433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-31 14:23:47 +00:00
ahocevar
cb0dffc045 Created a TransformFeature control and added a documentDrag option to the DragFeature control. r=elemoine (closes #2433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-31 14:08:36 +00:00
Frédéric Junod
7a78237bdd add missing semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9980 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-28 11:37:58 +00:00
Éric Lemoine
5edcc97240 cannot unselect on clickout when selecting by drawing a box, r=pgiraud (closes #2204)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-28 08:07:09 +00:00
Frédéric Junod
153cba8147 New fontOpacity option for vector feature style. r=pgiraud (closes #2438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 15:31:53 +00:00
Frédéric Junod
86eb16a208 Use style.label as placemark name if available. r=pgiraud (closes #2441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 15:27:04 +00:00
Frédéric Junod
1f481f3d38 Don't create Folder name or description if foldersName or foldersDesc are null. r=pgiraud (closes #2417)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 14:44:35 +00:00
Frédéric Junod
e5aab2453d set a default EPSG:4326 externalProjection to the KML, OSM and GPX formats. r=pgiraud (closes #2424)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 14:36:46 +00:00
Frédéric Junod
c1f9945838 Extract the kml outline attribute. r=pgiraud (closes #2412)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-27 14:05:37 +00:00
Frédéric Junod
822e8f5485 don't calculateInRange if it's not needed. r=elemoine (closes #2400)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-22 08:13:11 +00:00
Éric Lemoine
e562626f87 make OverviewMap.destroy more robust, r=fredj (closes #2430)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-22 07:35:22 +00:00
Frédéric Junod
8cbac47177 Cast zoom level to integer. r=pgiraud (closes #2180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-20 11:05:42 +00:00
ahocevar
ca8222a13c Rotate point geometries only. Committed version differs from the patch (=== instead of == for all geometry type checks). r=tschaub (closes #2423)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-18 12:44:50 +00:00
ahocevar
da664350fe fixed rotation for browsers that don't support defs/use. Committed version modified from patch version as suggested by tschaub. r=tschaub (closes #2402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9953 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-18 12:34:56 +00:00
Frédéric Junod
65bed91e4e layer argument was undefined
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 13:03:42 +00:00
pgiraud
14749daa74 finally, this is the good version of the unit tests for the #2320 ticket, sorry for the noise
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 11:02:08 +00:00
pgiraud
5c397b8d0c I forgot to ad the unit tests file in the commit for #2320
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 10:59:52 +00:00
Frédéric Junod
e8d8aa7d47 don't pass the layer to the feature constructor
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 10:24:06 +00:00
Frédéric Junod
9911bb55ce fix tests for buggy webkit. (see #2402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 10:00:46 +00:00
pgiraud
cca8894b91 added a slideFactor property in the PanPanel control patches from elemoine and me, r=bartvde (closes #2320)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-13 08:40:41 +00:00
Frédéric Junod
311f47da78 Missing semicolon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-12 10:20:41 +00:00
Frédéric Junod
eda2a80187 comment fix, no functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-11 09:00:44 +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
Tim Schaub
44ba385429 Removing any onImageLoadError class name from images when they successfully load. r=ahocevar (closes #2407)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9940 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-08 21:14:04 +00:00
ahocevar
9066c0e960 workaround for webkit versions that have problems with defs/use. r=crschmidt (closes #2402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9937 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-08 16:00:56 +00:00
Frédéric Junod
c64c2e4296 Cache the function result if scriptLocation is ''. r=elemoine (closes #2389)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9936 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-07 08:26:29 +00:00
Frédéric Junod
871a790f3f cache the result of the OpenLayers._getScriptLocation function. r=ahocevar (closes #2389)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9935 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-07 07:22:05 +00:00
ahocevar
8a74ad8ed5 longer timeout to avoid failing test on slow machines
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9934 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-06 16:46:53 +00:00
Tim Schaub
bae2fa59ed Document rotation property for point symbolizers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9932 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-05 22:13:29 +00:00
ahocevar
f6b00d7ced re-added the layer prefix property that got lost with r9883. r=bartvde (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9931 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-01-04 17:59:24 +00:00
Éric Lemoine
2619586558 add missing semi-colon, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 22:23:28 +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
Éric Lemoine
be246326ee test that "featuresremoved" listeners are passed the expected features when all the features of the layer are being removed, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 22:05:10 +00:00
Éric Lemoine
52e055294f reorg of test_Layer_Vector_removeFeatures, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-27 21:44:13 +00:00
bartvde
fcc2057b42 forgot the actual example, should have gone in with r9920
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9921 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-23 11:35:57 +00:00
bartvde
728fcdcda2 adding example for using the Sensor Observation Service client, r=ahocevar (closes #2333)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-23 11:35:26 +00:00
bartvde
3a6ac9b83f add Protocol for Sensor Observation Service r=ahocevar (closes #2373)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9912 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-21 14:37:08 +00:00
bartvde
2c23d9ff25 add parser for Sensor Observation Service GetFeatureOfInterest method, r=ahocevar (closes #2347)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-21 14:31:32 +00:00
Tim Schaub
e99979ffe5 Adding a missing verb.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-19 00:07:25 +00:00
Tim Schaub
e95b023b5e Unconfusing NaturalDocs by putting 'Note:' on a separate line.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9908 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-19 00:06:17 +00:00
Tim Schaub
2ddb4c1927 Doc menu update (futile, I know).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 22:41:02 +00:00
Tim Schaub
7bbacbc7cc Marking events.on and events.un as part of the API. Adding examples for both. If this is not the concensus (that these are part of the API) revert this change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 22:20:49 +00:00
Frédéric Junod
793396a4cb add missing requires (OpenLayers.Format.WMSCapabilities namespace)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9903 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 14:18:36 +00:00
Éric Lemoine
321a237d2f overview map control destroys drag handler too late, r=ahocevar (closes #2383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 08:23:38 +00:00
Tim Schaub
f54fd67504 Adding an Atom parser. Thanks sgillies for the patch (and patience). r=me (closes #1366)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-17 00:38:13 +00:00
crschmidt
2449b7029c GML v3 is also a dependancy.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 20:48:55 +00:00
crschmidt
3ee6c4663c add missing requires statement.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 20:39:33 +00:00
bartvde
cc4b914fff add format for Sensor Observation Service GetObservation operation, r=ahocevar (closes #2372)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9898 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 15:29:41 +00:00
bartvde
b948eb163b adding parser for Sensor Observation Service (SOS) GetCapabilities interface, r=ahocevar (closes #2337)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 14:25:08 +00:00
ahocevar
f5ff990898 removed redundancy (1.0.0 leftover) when parsing srs. r=bartvde (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 12:23:27 +00:00
bartvde
31189f1e45 add WMS 1.3 GetCapabilities parser, r=ahocevar (closes #2294)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-16 10:24:12 +00:00
bartvde
e9264d89eb rewrite WMS GetCapabilities parser, tests now pass in IE, r=ahocevar (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-13 15:43:15 +00:00
ahocevar
e6f4a27b93 fixed tests by pulling the geoserver example into the main html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-10 22:11:16 +00:00
ahocevar
30b936399a fixed dtd url to avoid failing tests in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-10 15:13:42 +00:00
Frédéric Junod
6770cffdac form.method is upper case in chrome and lower case in FF.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9880 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-10 07:38:59 +00:00
bartvde
fdb924ebfb make WMSGetFeatureInfo Control WMS 1.3 compatible, r=ahocevar (closes #2355)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 19:08:55 +00:00
ahocevar
f28ebc2a02 added required layer url to fix failing test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 17:38:42 +00:00
ahocevar
fe126f123f fixed failing test by parseFloat'ing the frame styles
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9877 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 17:29:21 +00:00
Tim Schaub
11924d0d0f Only zoom by integer values with changes in the mouse wheel. r=bartvde (closes #2376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 15:34:19 +00:00
bartvde
711d412f88 WMSGetFeatureInfo control: add support for mutiple WMS services, r=ahocevar (closes #2091)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 14:29:48 +00:00
Éric Lemoine
b655b14f01 NavigationHistory - move the code for getting the current state from an anonymous function to a method of the class, r=bartvde (closes #2377)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 11:51:55 +00:00
Tim Schaub
42f06c259b Separating docs from shortdesc.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:36:22 +00:00
Tim Schaub
03a6de0fb7 Removing this for now. Resurrect it if someone can get this service working with GetFeature requests via POST.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:26:14 +00:00
Tim Schaub
e6c6f93477 Going with one WFS-T example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:13:21 +00:00
Tim Schaub
e0be3f2e65 Updating the wfs-states example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 04:04:52 +00:00
Tim Schaub
e10e39b19c Putting the canvas renderer bit in its own example. Using the Vector layer for WFS. Extracting the relevant code and providing an easy to open link for viewing the source.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 03:11:13 +00:00
Tim Schaub
a23f2229cf Taking down the openmnnd.html example since http://prototype.openmnnd.org/ says it is no longer maintained.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-09 02:10:47 +00:00
Frédéric Junod
4ff1ece2e4 Use array.indexOf native function when available. p=arno, r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-04 08:07:53 +00:00
Frédéric Junod
610c2b9933 method is upper case in code, update test (error reported by chrome)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9858 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-12-04 07:53:41 +00:00
bartvde
ec3d804af4 make OpenLayers.Layer.WFS and OpenLayers.Layer.GML deprecated and provide instructions on what to do now
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9849 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-30 10:15:16 +00:00
Éric Lemoine
40206dc8cf a change to Util.getParameters, which accidentaly slipped in [9757], makes the tests fail, reverting that change. Please join me in saying thanks to our unit tests for catching this :-) r=ahocevar (closes #2357)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-29 21:47:16 +00:00
bartvde
e60dee85b9 Feature.destroy does not remove marker from layer, p=gregers, r=me (closes #2181)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-27 15:54:03 +00:00
bartvde
95055aa457 Bad Encoding in Catalan translation breaks IE6, p=edgemaster, r=me (closes #2161)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-27 13:44:37 +00:00
bartvde
0038def935 use setVisibility instead of directly setting the visibility property, p=sbenthall (closes #2111)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9845 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-27 13:31:25 +00:00
Éric Lemoine
5018aaa4ba provide full names of loadURL and parseXMLString in the API docs, no functional change, thanks David Potts for spotting this
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9843 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-25 15:08:02 +00:00
pgiraud
7b9de2be30 typo in the doc comments, no functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-24 17:29:59 +00:00
Éric Lemoine
9e81d4d332 the WFS 1.0 standard does not support specifying the SRS name (srsName) in GetFeature requests, but GeoServer has specific support for this, this patch introduces a boolean option (add srsNameInQuery) to force the addition of srsName, initial patch from fvanderbiest, r=bartvde (closes #2228)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-23 15:56:56 +00:00
Tim Schaub
d9a982f169 Exposing the documentDrag property on the Navigation control. r=ahocevar (closes #39)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-18 05:42:17 +00:00
bartvde
081ce883fb create an option to cancel adding a layer, r=tschaub (closes #2121)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-17 07:34:51 +00:00
Tim Schaub
f57e19ae2d Parse gml:boundedBy elements on features as feature.bounds instead of geometry.bounds. This fixes issues when GML comes without a geometry and it is a more correct representation of the element. r=bartvde (closes #2255)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-16 22:25:46 +00:00
bartvde
10920f6f93 add parsing of boundedBy in Format.WMSGetFeatureInfo, r=elemoine (closes #2329)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-16 10:44:02 +00:00
ahocevar
ebc5d7c021 added option to the MouseWheel handler to trigger up/down events only
when wheel is released. r=elemoine (closes #2345)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9799 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-16 10:38:26 +00:00
bartvde
33e39a205a fix up Graticule test in IE, missing var keyword
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-12 19:28:11 +00:00
bartvde
12c83b533d adding limited support for reading SimpleData from KML ExtendedData SchemaData, keeping structure the same as current ExtendedData support, patch=joh, r=me (closes #2062)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9795 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-12 15:28:20 +00:00
pgiraud
1b95a25ee1 adds the ability for the user to give map options when reading a WMC document, those options are taken into account with higher priority\n this patch also introduces the new util method isElement, r=me,elemoine, thanks Eric (Closes #2339)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9794 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-12 13:43:40 +00:00
ahocevar
c9df8f4d43 Added documentDrag option to the DragPan control and Drag handler.
When set to true, this allow pan-dragging while outside the map. 
Thanks vmx for the initial patches. r=vmx, bartvde (closes #39)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9791 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-10 11:14:28 +00:00
bartvde
01debb1c53 Create a possibility to refresh a layer every N seconds: OpenLayers.Strategy.Refresh, excellent patch by krisgeus, r=me (closes #2317)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9790 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-09 14:43:58 +00:00
bartvde
e77a804559 add setLayer function to SelectFeature control so that we can change the layer attached to the control on the fly, r=ahocevar (closes #2340)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9789 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-08 16:58:33 +00:00
crschmidt
5fd5085eba forgot to make a variable global.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-03 15:28:33 +00:00
crschmidt
7907a81ae5 Add dynamic text layer example, with BBOX strategy, SelectFeatureControl,
and popups.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-03 15:26:49 +00:00
bartvde
e003972959 Have Layer.WMS support WMS version 1.3 with the axis order sequence, r=elemoine,crschmidt,ahocevar (closes #2284)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9775 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-03 14:01:51 +00:00
Éric Lemoine
1e87b26029 provide slideFactor default value in the doc, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9774 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 16:15:14 +00:00
Éric Lemoine
4ca45ced61 the broken.img is no longer used by the library, remove it, thanks rdewit for catching that (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9773 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 13:54:54 +00:00
pgiraud
6f17fa1c9a give the radio buttons for the baselayers in the layer switcher control a name depending on the layerswitcher, this avoids problems with several maps and several layer switchers in the same page, r=bartvde (Closes #2331)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9772 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 12:24:03 +00:00
Éric Lemoine
6568eb4d8a do not change the src of broken images, as this prevents from being able to right-click on the image and see the server error, p=rdewit, r=me (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 09:55:18 +00:00
bartvde
d9fd39d547 make spatial filter configurable for OpenLayers.Control.GetFeature, p=rdewit, r=me (closes #2325)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-11-02 07:12:53 +00:00
bartvde
cf4c14a1e4 clean up duplicate code block from the fix for ticket 2256
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-30 17:23:47 +00:00
bartvde
5119ffa50e GetFeature doesn't handle Handler.Box case when result of user interaction is a pixel, patch by bjornharrtell, r=me (closes #2256)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9768 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-30 14:28:54 +00:00
Éric Lemoine
6839605b0f theme LayerSwitcher with CSS, r=ahocevar, p=tmcw,me (closes #1632)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-29 15:45:27 +00:00
Éric Lemoine
ab42111aac code cleanup - remove unused variables and declare local variables, p=avlee, r=me (closes #2326)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-27 12:15:22 +00:00
Éric Lemoine
316136b346 [9732] broke CSW GetRecords tests, this commit fixes them, patch from bbinet
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9765 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-27 11:04:04 +00:00
ahocevar
4e6c3b1f3e reverted change from r9754 because it breaks applications that register an event before the marker is drawn (see #2258)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-26 20:41:56 +00:00
ahocevar
dbcab22339 fixed memory leak in the PanZoom control. Thanks rcoup for the patch and the test. p=rcoup, r=me (closes #2323)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9763 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-25 17:36:10 +00:00
ahocevar
56382e8e49 Manual memory leak tests that should have been committed with r9759 and r9760. Thanks rcoup for setting them up. (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9761 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-25 01:41:12 +00:00
ahocevar
c67d1f5952 2170_tileEvents.html: fixed memory leak with tile events. p=rcoup, r=me (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 09:27:14 +00:00
ahocevar
ee737577f7 2170_anonfuncs.diff: created functions returning true and false instead of using anonymous functions all over. p=rcoup, r=me (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9759 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 09:23:24 +00:00
ahocevar
f000057659 making pink tiles a css matter. p=rdewit, r=me (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9758 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 05:57:41 +00:00
ahocevar
6d43a28da6 added Graticule control and Util.getFormattedLonLat function. Thanks madair for this excellent patch. p=madair, r=me (closes #1083)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9757 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 05:36:34 +00:00
ahocevar
a864838e96 call layer.getImageSize with the tile bounds to support layer implementations
with different tile sizes at the extent edges. p=klokan, r=me (closes #2324)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9756 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 05:11:51 +00:00
ahocevar
839348a3b2 added labelXOffset and labelYOffset symbolizer properties. Thanks madair for the original patch, and thanks jlacroix for turning it into symbolizer properties so nicely. p=jlacroix, r=me (fixes #2312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 04:41:36 +00:00
ahocevar
fd514e8435 fixed memory leak in Marker.js. With manual test. p=rcoup, r=me (closes #2258)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 04:21:02 +00:00
ahocevar
6c213ba86b removed empty file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 03:30:30 +00:00
Éric Lemoine
6e508f5cd6 Save strategy should preserve feature.url when transforming, p=pwr,me, r=me (closes #2215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-24 01:55:55 +00:00
bartvde
caff5d5261 give PanZoomBar control an option to force fixed zoomlevels even if the map has fractionalZoom, patch by marcjansen, r=me, (closes #2288)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9751 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-23 23:31:15 +00:00
Schuyler Erle
4031b304a6 Merge r9745 through r9748. i18n updates from translatewiki.net. Closes #2310.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9750 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-20 23:43:26 +00:00
pgiraud
5b3f6f68d3 added some css to actually show how to customize the panPanel and zoomPanel example look and feel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9737 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-09 14:02:47 +00:00
bartvde
13c5f5ac4c clean up unused code in Format.WMC.v1, correct minor spelling mistake, non functional change, see ticket:2251 for details
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9736 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-09 09:55:04 +00:00
Éric Lemoine
9711381289 remove an inrelevant comment, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9735 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 20:59:04 +00:00
ahocevar
e264e8c6c4 added Layer.WMS.Post for WMS request params exceeding the maximum url length for GET requests. Thanks ingo for this excellent work! It is an honor to commit such a high quality patch. p=ingo, r=elemoine,me (closes #2224)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 18:13:55 +00:00
Tim Schaub
6dabe0646e Adding some serious enhancements to the WMC format. With this, OL map and layer objects can be created from WMC context objects and vice versa. Thanks for the great patch bbinet. r=me (closes #2251)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 17:24:54 +00:00
Tim Schaub
039618366f Reading and writing the 'escapeChar' attribute for Filter Encoding 1.1.0. r=ahocevar (closes #2301)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9732 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 17:02:54 +00:00
Tim Schaub
bff91d251c The attribution control no longer shows duplicate attribution text. r=crschmidt (closes #2300)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9731 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 17:00:40 +00:00
ahocevar
ab2b2356f1 "Create an urlAppend function that appends strings to urls and handles ? and & appropriately". r=crschmidt (closes #2297)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 16:48:50 +00:00
crschmidt
3e0b053009 Fix for Missing @requires directive in Layer/XYZ.js results in broken custom
singlefile-builds, (closes #2299), thx marcjansen. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 14:29:18 +00:00
crschmidt
0cced02fec add requirement for format/text (Closes #2298), thx marcjansen.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 14:04:53 +00:00
ahocevar
e13078b64a removed duplicate definition of unselectAll. Thanks fredj for finding this one. r=tschaub (closes #2229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9727 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 12:58:15 +00:00
ahocevar
fa324ec7f3 fixed regression with style missing in graphicRotate method. r=tschaub (closes #2198)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-08 12:49:27 +00:00
bartvde
5a9e1fe0b4 allow WFS protocol to use a different outputFormat, for instance json, patch by rdewit, r=me (closes #2107)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-07 18:21:59 +00:00
ahocevar
7919d2a314 removed duplicate inclusion of OpenLayers/Format/SLD/v1.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9723 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-07 13:54:50 +00:00
Éric Lemoine
b2056fd141 fix documentation, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 19:41:20 +00:00
Tim Schaub
d1cecf3be1 Adding an option to avoid duplicate attribution.
Thanks Marc Jansen for this nice contribution.  Without wanting
to gush, I think this should be a model contribution because:

 1. it is a simple change
 2. with a nice example that clearly demonstrates the benefit
 3. it includes tests!
 4. and Marc wrote a note to the dev list with links to the ticket

r = me (closes #2266)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@9720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 18:46:06 +00:00
bartvde
11b38e5419 Format.WFST.v1: Query writer can be removed, r=tschaub (closes #2249)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 17:15:19 +00:00
bartvde
10398c5865 GetFeatureInfo control does not send required FORMAT parameter, r=tschaub (closes #2201)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 17:10:32 +00:00
ahocevar
2c2bf63c3f removed trailing commas to fix example for IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-06 08:12:04 +00:00
Tim Schaub
f7143f7e02 Deal with dash arrays that come in with extra spaces at the end. r=ahocevar (closes #2271)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:36:51 +00:00
Tim Schaub
7e821da0b5 Write out stroke dash style and linecap in SLD. r=ahocevar (closes #2270)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:34:16 +00:00
Tim Schaub
a84e06a075 WMSCapabilities format should call initialize on the XML format. r=crschmidt (closes #2269)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9705 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:32:25 +00:00
Tim Schaub
8c094a8977 Use a unique id for the map viewport. r=crshmidt (closes #2259)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 22:29:01 +00:00
bartvde
79aad5a1b4 When writing a WMC, bounds should not be rounded to a predefined precision, original patch by bbinet, r=me (closes #2242)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 14:30:00 +00:00
Éric Lemoine
86bd389152 allow protocols to be configured with a default filter, p=aabt, r=me (closes #2292)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9702 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 12:14:37 +00:00
Éric Lemoine
2633f9ba88 GeoJSON input should accept 3D coords, p=sgillies, r=me (closes #2070)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9700 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 09:21:07 +00:00
Éric Lemoine
5fad952e8a add formats for CSW GetRecords and GetDomain requests, p=bbinet, r=me (closes #2132)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9699 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-05 08:15:48 +00:00
ahocevar
3fa2971816 some love for the ve example: removed non-existent WMS layer, show animationEnabled option, fixed marker addition/removal.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 20:08:11 +00:00
ahocevar
d7a37c67b7 make selectors for Save button more specific so they also work in a Panel with displayClass set to olControlEditingToolbar. Non-functional change (fixes #2287)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 19:54:18 +00:00
ahocevar
449ea29086 added option to turn of animation. r=crschmidt,tschaub (closes #2286)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 19:47:31 +00:00
Frédéric Junod
8c3562e3ad onMapResize takes no parameters, no functionnal changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9695 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 09:39:23 +00:00
Frédéric Junod
e0167bdeec Update the VirtualEarth layer size when the map is resized. r=ahocevar, p=Matthew D. Diez (closes #2285)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9694 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-01 09:37:27 +00:00
crschmidt
7a9e54afdc change docs slightly. report by jeff adams. (Closes #2276)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-21 18:22:40 +00:00
Tim Schaub
6c4556666e WMSCapabilities inherits from and requires XML (no functional change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-18 18:29:20 +00:00
Tim Schaub
8c3b6cc4b5 As with Google and VE, we should pull in SphericalMercator here. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-18 16:47:52 +00:00
Paul Spencer
6088de516c (Closes #2146) enhance createLiterals to merge context, attributes and pass attribute name through to context functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-17 17:17:11 +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
Paul Spencer
3fcda4df56 (Closes #2148) enable vector features to be selectable from their text node. r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-17 12:05:38 +00:00
Tim Schaub
21b680868f Spelling correction in Google example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-16 02:13:15 +00:00
Tim Schaub
4102871392 As we do for the other proprietary providers, let's pull in SphericalMercator with VE. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9668 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-16 00:15:39 +00:00
ahocevar
93eccfc003 Fix for rendering custom symbols with aspect ratio differnt than 1.
r=pgiraud (closes #1836)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-14 10:25:54 +00:00
Tim Schaub
7f240d3ba9 Adding more complete WMS capabilities parsing. Thanks trondmm for the comprehensive patch. Some minor changes by me - including leaving the srs member value an object. r=me (closes #2164)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 22:48:56 +00:00
Tim Schaub
912a12c0b8 Typos that IE doesn't like (no functional change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9660 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 20:23:48 +00:00
Tim Schaub
361f6065a7 Adding a runner for WMS capabilities parsing benchmarks.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 20:02:21 +00:00
Tim Schaub
f8c2889947 Adding more extensive parsing of WFS capabilities documents. Thanks fvanderbiest for the great patch. r=me (closes #2245)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 19:17:10 +00:00
Frédéric Junod
bdabaa86f9 fix comment, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-11 08:12:24 +00:00
Éric Lemoine
e6a2c4c7de tests on GetFeature control fail, thanks fvanderbiest for the initial
patch, non-functional change (closes #2261)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-10 06:50:45 +00:00
Tim Schaub
9945381043 Making invisible the factbook-overlay as it is not working.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-08 17:09:04 +00:00
crschmidt
9970eaff16 add events to strategy.save: start, success, fail. r=elemoine, (Closes #1902)
(It is possible Save may need extension for additional events; this should be
a new ticket.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-08 13:06:15 +00:00
ahocevar
19057eedd8 Replaced the no longer existent Boston Freemap with the tiger-ny demo that ships with GeoServer. Thanks to Billy Thoen for making us aware of this issue.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9641 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-03 14:28:27 +00:00
Éric Lemoine
ef1952e953 make WFS protocol and format more robust, r=ahocevar (closes #2237)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9636 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-09-02 06:17:19 +00:00
Tim Schaub
f3f6974eb6 Adding back the WMS overlay. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-25 20:05:18 +00:00
Tim Schaub
8e73b3f8db Avoid pink tiles on example.html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-24 20:22:28 +00:00
Frédéric Junod
b9bcc0b7f8 use OpenLayers.Protocol.Response.success function, r=elemoine (closes #2227)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-19 06:34:54 +00:00
Éric Lemoine
f587b05d35 in OpenLayers.Request call the "complete", "success" and "failure" callbacks from within a separate method, this allows executing the callbacks from outside and at the time it lmakes the most sense to the application, p=fvanderbiest, r=me (closes #2218)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-13 19:47:08 +00:00
Éric Lemoine
d83376de64 add changelayer event to mergeNewParams function, r=bartvde (closes #2179)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-13 06:31:47 +00:00
Frédéric Junod
2b9bd25530 trigger an event when the layer's opacity change. r=elemoine (closes #2112)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-10 06:10:29 +00:00
Tim Schaub
c1a0d405e4 Proper handling of null and undefined attribute values in WFS transactions. r=ahocevar (closes #2222)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9615 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-07 22:35:55 +00:00
bartvde
5964a8db60 fix up sequence of elements in Web Map Context 1.1 Format when writing, thanks trondmm for the catch and initial patch, r=tschaub (closes #2174)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-07 15:59:43 +00:00
ahocevar
01d4330c81 In standalone mode, allow only dragging of sketch vertices or the point
selected for modification. Thanks tschaub for the improved patch. 
r=tschaub (closes #2219)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-05 23:33:26 +00:00
Éric Lemoine
868f886cad make the point1 and point2 variables local to the getSortedSegments method, no functional change, p=igrcic (closes #2217)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-05 07:28:08 +00:00
Schuyler Erle
0f35a3a434 Applying bobkare's patches to Norwegian language support from #2212. Closes #2212.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9605 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-31 18:38:15 +00:00
Schuyler Erle
ed6790e652 Merged from roberthl's branch again. This time all tests pass. ;)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9604 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-31 16:34:04 +00:00
ahocevar
77ea74cc2c added getBounds() to mockup geometry. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-30 22:27:23 +00:00
crschmidt
e5a577b062 larger, not smaller
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-30 14:43:31 +00:00
crschmidt
f0c5e94403 Add better documentation for the 'ratio' property of WFS layers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-30 14:36:44 +00:00
Éric Lemoine
6012498ae8 in the select-feature.html example, when checkboxes are changes, reactivate the select control only if the "box" property changes, we do not need to reactivate the control when the "clickout" property changes, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-29 06:31:35 +00:00
Tim Schaub
6f18a6abd0 Stopping double clicks on the panel control. Thanks for the patch sbenthall. r=me (closes #2069)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-29 04:20:57 +00:00
ahocevar
1f3d495a12 fixed docs for clickTolerance, which also affects hover requests. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-28 14:39:58 +00:00
ahocevar
8fdd423104 provide a standalone mode for the ModifyFeature control. Thanks tschaub
for the fix in deactivate() and the tests. r=tschaub (closes #2199)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9591 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-27 18:00:36 +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
8b741bc666 Adding an autoActivate property for controls. If this is set to true, the control will be activated when it is added to a map. This is true for the Navigation, NavigationHistory, KeyboardDefaults, and Panel controls. False for others. r=elemoine (closes #2200)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9589 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 21:58:39 +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
Éric Lemoine
f7a2efe2bf make updateSize not call setCenter if map has no center, and remove unused code, r=tschaub (closes #2105) (closes #2114)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9587 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 12:49:13 +00:00
Éric Lemoine
1faae2a2a2 allow proxy host function, r=tschaub (closes #2128)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9586 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 12:44:33 +00:00
Tim Schaub
f838aa3a03 Ensure that sld elements are written in the sld namespace. r=bartvde (closes #2087)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-23 20:53:14 +00:00
crschmidt
2564da4403 Revert r9582, which breaks OpeNLayers trunk. Tickets 2158 and 2159 need to
be reopened.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-23 16:08:33 +00:00
Schuyler Erle
547371f107 Merge r9410 and r9520 from
source:/sandbox/roberthl/openlayers/lib/OpenLayers/Lang. These patches import
the latest work from the MediaWiki translation team, and only impact the
language files. This closes #2158 and #2159. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-23 15:29:19 +00:00
ahocevar
82cbb8c7cb fixed getParameterString to handle null/undefined values correctly. r=elemoine (closes #2157)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 21:11:03 +00:00
bartvde
2c8ec98643 correctly parse ScaleHint values from WMS GetCapabilities response, thanks elemoine for the testcase, r=elemoine (closes #2150)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 12:32:31 +00:00
bartvde
f4d60b89a8 add parsing of layer name in WMS DescribeLayer format, r=elemoine (closes #2027)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 12:18:02 +00:00
Éric Lemoine
feb29516b3 WMSGetFeatureInfo: add beforegetfeatureinfo event, p=fvanderbiest, r=me (closes #2127)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 09:07:37 +00:00
Éric Lemoine
4e77c9648a add missing semi-colons, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-20 08:53:00 +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
cb71201350 Different layer order.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9551 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-14 16:18:47 +00:00
Tim Schaub
1b4d654ff8 Demonstrating the use of the rebranded Virtual Earth API.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9550 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-14 16:03:07 +00:00
Tim Schaub
ca23e49707 Add an example that demonstrates the use of a popup with the WMSGetFeatureInfo control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-10 17:43:37 +00:00
Tim Schaub
d6d824b389 Typo in docs. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-26 15:15:28 +00:00
Tim Schaub
1e35173c2b If the pan tween is playing when the map is destroyed, stop the tween. r=pspencer (closes #2156)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-26 01:01:00 +00:00
ahocevar
9d74c087ce added parsing of Attribution, KeywordList and MetadataURL to
WMSCapabilities. Thanks tschaub for the improvements to my original 
patch. r=tschaub (closes #2145)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-23 20:34:27 +00:00
ahocevar
253a8bbaf7 added extractStyles:true for KML input
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-16 14:17:00 +00:00
ahocevar
ef739e42c3 Support for IE8 standards mode. Thanks ahayes, crschmidt, pspencer and madair, who all provided patches and valuable research to make this happen. r=crschmidt,ngerber999,Quelbs,ksgeograf (pullup #1910)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9476 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-13 08:55:44 +00:00
crschmidt
3fd553cdf4 Fix two missing semicolons. Thanks to ksgeograf for the catch. No functional
change. (Pullup #2134)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 20:06:12 +00:00
crschmidt
8765b0199f Commit bug for missing 'exact' in ArcXML format parser, from dzwarg. Includes
manual test. Thanks! (Pullup #2117) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 20:03:12 +00:00
ahocevar
be1d375bf7 How and where do I create tickets for IE7 bugs? No idea, so we are fixing it here. r=crschmidt (pullup #2135)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 15:45:49 +00:00
ahocevar
a20a209f0e changed wfs url to a working one
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 09:02:41 +00:00
ahocevar
cad1839201 Updated server url. Thanks akrherz for making us aware of the new url (closes #2129)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9467 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-12 06:54:25 +00:00
ahocevar
81ea635430 satisfy Opera 9.27 by escaping curly braces in regular expression. r=crschmidt (pullup #2103)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-11 17:24:48 +00:00
ahocevar
d6a3c508a1 Fixed the scope of onSelect, onUnselect,... when scope is not specified.
r=crschmidt (pullup #2115)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9419 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-06-01 16:27:02 +00:00
ahocevar
553f05d293 Another fix for the problem with resized Google layers that were previously invisible. Has the GMaps API changed in the meantime? At least this fix (listening for the "load" event) feels like it makes more sense than the previous one (listening for the "tilesloaded" event). r=pgiraud (closes #1797)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9418 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-29 07:59:10 +00:00
Tim Schaub
94437d3e5f Making createUrlObject more reliable. Tests demonstrate what to expect. r=elemoine (pullup #2060)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-27 17:49:05 +00:00
crschmidt
ebaa5066fc Fix a broken aspect of my change to the ArcXML code when cleaning it up:
missed an 'arcxml' -> 'response' change. Caught by dzwarg, r=me, (Pullup #2110) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9412 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-26 16:59:40 +00:00
ahocevar
2bf02bda35 Better fix for SVG rendering issues when redrawing complex graphics. Thanks tschaub for the investigation and the original patch which pointed me into the right direction. r=tschaub (pullup #2101)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 22:02:05 +00:00
Tim Schaub
52a4d4f8cc Making it so createUrlObject casts all urls to absolute ones first. r=crschmidt (pullup #2060)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 18:27:26 +00:00
Tim Schaub
d178a7675b Using util method for array indexOf in TMS layer. r=crschmidt (pullup #2100)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9403 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 14:52:38 +00:00
Tim Schaub
16715f41f6 Using the cross-browser util method for array indexOf in the TileCache layer. r=crschmidt (closes #2099)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 14:50:43 +00:00
Tim Schaub
e946b0a7eb Store a reference to the bound mouse cache clearer so we can unregister it as a listener later. This solves an issue with slider events on the PanZoomBar. r=crschmidt (pullup #2054)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 00:20:36 +00:00
Tim Schaub
6b6ca2a125 Take care not to clobber any previously set window.$ value. IE, in its mysterious ways, sets $ to undefined if we have a conditional 'var $ = somefunc;' expression - even if the condition evaluates to false. Problem does not occur if expression is 'window.$ = somefunc;'. This makes OL play nicely with jQuery (among others) in IE. r=crschmidt (pullup #1391)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-21 00:17:20 +00:00
Tim Schaub
5f0d573ff5 Trivial change. Removing string concatenation. Reportedly changes things in minified build in IE6. (pullup #2093)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-18 19:49:10 +00:00
crschmidt
51b5095d48 Committing an updated fix for #1906. This fixes a 2.7->2.8 regression in
particular behavior with regard to determining the size of a popup. thanks
to the absolutely tireless work of gregers on this issue! Also, in case 
anyone was wondering? Browsers suck. (Pullup #1906)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-15 15:36:21 +00:00
Éric Lemoine
b768574d72 when allOverlays is true a hidden layer can cause a WFS request, testsed by bartvde, r=tschaub (closes #2072)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-12 06:18:00 +00:00
ahocevar
0ec407ca04 use event-based checkResize not only for invisible layers, but also for layers that have not finished loading. r=pgiraud (pullup #2075)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-05-07 07:49:38 +00:00
Tim Schaub
5a8b116d10 To abort loading of any previous image when we destroy the image tile, we set the src to the location of blank.gif. r=crschmidt (pullup #1978)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-30 22:07:26 +00:00
ahocevar
b98dba227e Fix GMap initialization sequence when resizing previously invisible
layers. r=tschaub (pullup #1797)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-30 21:52:08 +00:00
crschmidt
6785e06150 Fix broken comma (Pullup #2066)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-29 11:41:00 +00:00
ahocevar
51b1937aa6 fix for urls with same host in createUrlObject in IE. r=tschaub (pullup
#2060)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-27 20:57:14 +00:00
crschmidt
0811578965 Accidentlaly added reference to nonexistant ArcGISCache layer in r9240;
back out. (no functional change) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-20 15:24:35 +00:00
crschmidt
b34325588c Roll back r9115, which breaks things, until we have time to not make it break
things. This whis was committed with the intention of supporting things like 
#1285, which also didn't get into 2.8, I don't think this will be a problem.
All tests still pass, and now the gutter example works. (Closes #2052) 
(See #1496)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@9308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-20 12:00:35 +00:00
ahocevar
cf0ca6d2fc Changed ordering example to show the effect of zIndexing without
yOrdering.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9307 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-19 08:53:25 +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
Tim Schaub
6570f44d7c Removing the wait cursor if no request is sent by the control. In the case of hover, this tries to remove what doesn't exist (which causes no harm) - but the same is done when hover actually results in a request. r=bartvde (closes #2051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9305 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-17 16:35:17 +00:00
Tim Schaub
57600b2c81 proxy chasing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-16 23:20:15 +00:00
ahocevar
fd299eb552 Fixed refreshing of features in VML renderers when moving renderer roots
(e.g. by deactivating the SelectFeature control). Thanks Kris Geusebroek 
for reporting this. r=elemoine (closes #2048)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-16 06:59:19 +00:00
Tim Schaub
d54440b0e9 Touching up WMSGetFeatureInfo. Requests are now sent out with correct case on request parameter. Requests are only sent out if there are layers to query. The control has a single format with configurable options. Requests can be made in cases where layer url differs from control url. The control url property is optional. In cases where it is not provided, the url of the first eligible layer will be used. Tests pass and example works (for the first time) in IE as well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-15 23:44:29 +00:00
Tim Schaub
cd815bc2a2 The tests for WMSGetFeatureInfo were duplicated, though not exactly the same, in r9159. The first batch did not pass and the second did, so I'm removing the first. (see #2007)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9297 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-15 08:43:57 +00:00
Tim Schaub
2bb58ebb24 Documenting the default projection for the map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 19:28:39 +00:00
Éric Lemoine
d1ab118f91 a typo in the ND comments of Format/WMSCapabilities/v_1_1_1.js, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 12:13:23 +00:00
Éric Lemoine
625766b492 type in the version string of WMSCapabilities
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 11:15:46 +00:00
ahocevar
1c319bc4a7 Fixed a regression introduced by r9271. Now Format.Text works as
described in #1844. r=tschaub (closes #2043)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-14 07:22:55 +00:00
Tim Schaub
4b9393c809 Giving the openmnnd example a title header and correcting a typo. Thanks for the report tmtisfree. (closes #2045)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 22:50:21 +00:00
ahocevar
946969c356 added ND comments for the new fill, stroke and graphic symbolizer
properties. Non-functional change.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 20:30:36 +00:00
crschmidt
99559b51f7 add an example of accessing an ESRI 9.3 tiled map cache using the XYZ layer
in spherical mercator mode.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 15:18:29 +00:00
crschmidt
491e9e45a5 mike adair, for mapguide layer and some other work
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9282 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:40:17 +00:00
crschmidt
af18408539 Adding David Zwarg, for #213
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:38:54 +00:00
crschmidt
49d10d37c8 Tim Coulter for #1901 and several others
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:38:04 +00:00
crschmidt
74522391a0 add bartvde for dozens of fixes over the past several months
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9279 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:36:45 +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
crschmidt
13e42ec59b Adding robert coup, re: r9262 / #1895
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 13:34:25 +00:00
Tim Schaub
a247995670 Giving the examples a title makes them searchable. Consistent style makes things look less like a total hack job. The title header and shortdesc make our little example index thing work.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-13 08:22:55 +00:00
ahocevar
4664edacc8 better backwards compatibility -- only create the root container if
Control.SelectFeature constructor was called with an array of layers. 
r=crschmidt (closes #1666)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 21:14:22 +00:00
ahocevar
976b4703b5 mocking up map in a different way so tests won't break with the new
class-based cursors.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9273 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 18:39:06 +00:00
crschmidt
da3a4b272a Fix for "OL is breaking Google API Terms", patch by pwr, r=me, (Closes #1858)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 16:05:19 +00:00
crschmidt
29a23731ab FIx style support in format.text to allow a set of style defaults.
Also, add an extractStyles option that can be configured to false to allow
th use of stylemaps. r=ahocevar (Closes #1844)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:40:46 +00:00
Tim Schaub
29ba60eb59 Snap immediately on starting a sketch. r=ahocevar (closes #2039)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:38:41 +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
crschmidt
70c3fd077d Fix for typo in geoesic measurement thingy. (Closes #2042)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-12 15:24:56 +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
Tim Schaub
119f9bc635 Whitespace change only.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 16:34:09 +00:00
Tim Schaub
06a27dc36f Make it so the measurepartial event is triggered only if measure isn't coming soon. This keeps you from having to do a quadruple click to finish in IE when a reflow is triggered by the measurepartial listener. r=crschmidt (closes #2037)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9263 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 16:09:00 +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
Tim Schaub
dd556be0be Correct spelling for sketch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-10 15:27:08 +00:00
Tim Schaub
736b3ff08c Since we now can have delayed map rendering, take care to only apply attributes to the map viewport element (map.div may change). Some deprecated controls still modify style properties of map.div. If you use a combination of deprecated controls and delayed rendering, you may get unexpected results. r=ahocevar (closes #1901)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 22:03:41 +00:00
Tim Schaub
1fd32e0ff8 Allowing users to better customize cursors for controls. Thanks to bartvde for the original patch and inspiration to get it done. Thanks ahocevar for the IE fix. r=ahocevar (closes #1484)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 21:59:53 +00:00
Tim Schaub
cf81c29d31 Making OpenLayers.String.trim work for multiline strings. Thanks etdube for the patch. r=me (closes #2034)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:26:42 +00:00
Tim Schaub
b296b083be Updating the meaninglessly named sundials example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:12:52 +00:00
Tim Schaub
0c49c8faa0 Marking the save method on the Save strategy as an API method. This was a clear oversight (not making it an API method).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:03:07 +00:00
Tim Schaub
d51ea434ca Removing stray console call.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 19:01:22 +00:00
crschmidt
2e3f22809d fix for insufficient mocking which resulted in an error being thrown on
teardown by IE; add a .destroy() to the mocked renderer. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 16:18:30 +00:00
ahocevar
3222fd3618 Updated example to use a simpler dataset with data from a maintained
demo server. Thanks dwins for putting this together.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 12:57:31 +00:00
crschmidt
2b7e8f5198 Add support for ArcIMS/ArcXML to OpenLayers.
Thanks for the killer effort from David Zwarg from Avencia in building this, 
and for Tim Schaub from OpenGeo for his excellent review. r=me,tschaub
(Closes #213)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-09 00:15:48 +00:00
Tim Schaub
08077f0f42 Adding methods for getting geodesic measures from geometries. Assuming geometries can be transformed into Geographic/WGS84, getGeodesicLength and getGeodesicArea should return reasonable 'on the ground' metrics. Use getLength and getArea for the planar metrics. r=crschmidt (closes #1819)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 23:12:24 +00:00
crschmidt
5f335f4207 patch had added these two files twice. FIx that. (no real change.) Thanks
edgemaster for pointing it out.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 20:11:20 +00:00
Tim Schaub
0e858fa4af Sending a response object along to the user callback after a commit that issues multiple requests. Thanks for the collaborative patch work crschmidt. r=crschmidt,elemoine (closes #1973)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 17:52:55 +00:00
crschmidt
861a9c10f5 adding XYZ layer (and OSM laayer) to OpenLayers. r=fredj, (Closes #1950)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-08 06:54:16 +00:00
Tim Schaub
87a2f0d47e adding newline to style.css - no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 21:26:03 +00:00
Tim Schaub
194474999c And replacing it with use of supported controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 20:48:08 +00:00
Tim Schaub
f2f118ad90 Reverting unintentional changes in r9234. Meant to just change the controls example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 20:43:27 +00:00
Tim Schaub
e72da4f74e Removing use of deprecated control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 20:38:11 +00:00
crschmidt
0e05f90932 Remove Icon-specific code from Markers Layer, patch by meek,me,
r=euzuro.  (Closes #818)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9233 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 15:21:39 +00:00
Tim Schaub
c1f9d60985 Vector tests broke with r9164. Fixing tests by mocking up calculateInRange instead of just inRange. (closes #1939)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 14:11:19 +00:00
Tim Schaub
ed5420b678 Adding a persist option to the measure control. This passes the same to the sketch handler. The cancel method on the control calls the same on the handler. Patch from dwins. Tests from me. r=me (closes #2029)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-07 02:03:57 +00:00
Tim Schaub
d3d80a02a9 As a result of the changes in #1634, the symbolizer for the temporary rendering intent was exposed. This was a bit uncharacteristic for OL symbolizers given its 4px stroke width and eye melting yellow hue. After some agreement on the mailing list that this should be changed, I'm changing it. The temporary symbolizer is now a 2px cyan thing. Would be nice to have a more involved design process, but I'm feeling a bit desperate about this one not knowing when the release candidate will go out - and not wanting to be embarassed by the garish yellow. Reopen if this is objectionable. r=ahocevar (closes #2032)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9224 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 23:12:40 +00:00
ahocevar
f59eceef71 create UserStyle in a way that propertyNames cache will be generated.
Thanks sonicx for catching this. r=tschaub (closes #2000)
r=tschaub


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9223 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 23:08:08 +00:00
euzuro
a685884a4f remove stray console.log() from test. breaks in all non-FF browsers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9222 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 22:31:37 +00:00
euzuro
143f72a8e5 Allowing the popup-panning FF hack to be disabled as it causes bad effects when a popup contains flash content. not thrilled with the property name but can't really think of anything better myself. patch by gregers r=me (Closes #1941)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 22:29:27 +00:00
ahocevar
f52c7c955e forgot to add WFSCapabilities.js and test in my previous commit. Thanks
tschaub for spotting this (see #1988)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9220 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 22:13:05 +00:00
ahocevar
e3103362ee added WFSCapabilities format. Original patch by tschaub, r=tschaub,me
(closes #1988)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:32:46 +00:00
Tim Schaub
043bbab2ca Documenting events that are not fired.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9218 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:32:14 +00:00
ahocevar
3841155621 fixed aspect ratio rendering in IE to not break rotation any more.
r=pgiraud (closes #1836)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:21:18 +00:00
Tim Schaub
85974d11a0 Take care not to change layer visibility when changing layer draw order (allOverlays only). r=ahocevar (closes #2004)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 21:15:39 +00:00
Tim Schaub
ebb7a08325 Adding a format for parsing WMS capabilities docs. r=ahocevar (closes #1176)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 18:55:20 +00:00
Tim Schaub
64b4752592 Not that it needs to be this way, but because it is generally safer, set non-default resolution related properties on the map instead of on the layer. (closes #2031)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 18:29:48 +00:00
Éric Lemoine
f5269f8acd BBOX strategy register for layer visibilitychanged, r=tschaub (closes #1835)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 11:50:30 +00:00
Éric Lemoine
bcf29b8a65 SelectFeature should allow panning the map when over features, without activating click method at the end of drag, r=tschaub (closes #1824)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-06 11:46:15 +00:00
Tim Schaub
f372bd3fd1 Wrapping json.write in a try/catch to guard against possible failures reported in one case on IE. If anybody cares to get to the bottom of this properly, see the test case attached to the ticket. r=me (closes #1826)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 23:58:16 +00:00
crschmidt
b0f71c2702 Fix for GeoJSON + Reprojection problems for GeometryCollections. Original
patch/ diagnosis by ibolmo, refactored by me. Includes manual test. 
(Closes #2024)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 20:26:35 +00:00
Tim Schaub
d1898d1a7d Making it so format.getChildValue concatenates all simple content (except for GeoRSS format). Use getChildValue instead of concatChildValues. Adding a number of other format methods for those who do manual dom traversal. Original patch from dparker. r=me (see #1846)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 19:17:49 +00:00
ahocevar
e1b1c814de create attributes with null value for empty attribute nodes.
Original patch by milovanderlinden, simplified by tschaub. r=me
(closes #1556)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 16:52:26 +00:00
ahocevar
467dff424c Added geometry parsing for Mapserver output. Thanks bartvde for the
patch. r=elemoine,me (closes #1976)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 16:42: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
pgiraud
49774f6ab5 SelectFeature now takes a hilightOnly config options, that way user can hover features without actually selecting
them, combining two differents controls will allow to separate hover and click events, patches from ahocevar, 
elemoine and 
pgiraud, reviewers are ahocevar, elemoine and pgiraud


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 10:28:41 +00:00
euzuro
b625337018 clear timer for rightclicks so that we don't fire single right click event after double rightclick event. thanks for the excellent find and fix, itbeyond. r=me (Closes #1995)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9175 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 01:34:58 +00:00
euzuro
1bf80712a6 fixing improper api name.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-03 01:19:10 +00:00
Tim Schaub
b2258606dc To have a functioning map with all overlays, set the map.allOverlays property to true. With all overlays, the map derives projection, resolution, and max extent information from the lowest layer in the draw order (map.layers[0]). To change the layer order, use map.setLayerIndex or map.raiseLayer. r=ahocevar,elemoine (closes #2004)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-02 16:40:52 +00:00
Frédéric Junod
3c863c8c2f mergejs: Remove white space around filename. No functional change. (closes #2026)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-02 10:35:21 +00:00
Éric Lemoine
4254d1efdf Control.GetFeature should abort requests with protocol.abort() instead of response.priv.abort(), r=ahocevar (closes #1999)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9165 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 16:25:35 +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
ahocevar
5b61fdafd1 fixed ProxyHost path
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 16:00:54 +00:00
ahocevar
f37ee550f4 Changed example to follow our well known structure. Now it also works in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 15:59:52 +00:00
ahocevar
bfc17248e9 Fixed styleNames creation for layers with mixed strings and arrays.
Thanks dwins for spotting this and the quick patch, which, btw, was 
perfect (i.e. with unit tests that show the problem). r=me (closes #2025)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 15:39:58 +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
59c49eb98e Added WMSGetFeatureInfo control. Thanks dwins for the patch. I made the
following modifications:
 * WMSGetFeatureInfo class was contained twice in WMSGetFeatureInfo.js. 
Removed one.
 * Fixed @requires
 * Added vendorParams option (with test) to allow for e.g. adding custom 
params like RADIUS
 * Changed the clickPosition key in the getfeatureinfo event parameter 
to xy to comply with other event parameters in OpenLayers
 * Modified concatenation of layerNames and styleNames as proposed in my 
previous comment
 * Made a separate handleResponse function from the previously closured 
callback function and added xy to the scope
 * Fixed some ND comments, especially removed links (<..>) from object 
types that cannot be linked (e.g. {String})
 * Inserted line breaks where lines exceeded 80 chars
 * Fixed test for format option, because this is now formats and has a 
different type
 * Fixed tests in the example (this is no US census data)
 * added ProxyHost and absolute WMS url to the example
 * removed custom format from the click handler in the example so users 
can also see the simpler instantiation with the default formats
r=me (closes #2007)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-01 09:13:23 +00:00
Tim Schaub
85888788ea Consistent list type for layer events.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:16:05 +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
Tim Schaub
fe0ddf9f21 Various other ndoc tweaks for controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:05:30 +00:00
Tim Schaub
deaa52477b Fixing up ndocs for ZoomPanel.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:59:41 +00:00
Tim Schaub
8ba31e4a91 Consistent event type listing for controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:57:08 +00:00
Tim Schaub
ffe3f90ffb NaturalDoc menu updates.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:52:53 +00:00
Tim Schaub
a8c1973d27 Making example header like others.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:42:15 +00:00
Tim Schaub
a6e84ae192 Adding an events instance to the OpenLayers.Request object. Register listeners for complete, success, or failure events. These events are triggered after every request is issued. Original patch from tcoulter. Changes from ahocevar, elemoine, and me. r=me (closes #1933)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:41:16 +00:00
Tim Schaub
2ab6c404e1 Adding the ability to change the aspect ratio of features while resizing with the modify feature control. Thanks for the patch rdewit! r=me (closes #1975)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:36:11 +00:00
Tim Schaub
ef23accd13 Allowing for multiple feature types in a GML doc. Thanks bartvde for the patch and tests. r=me (closes #1838)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:22:48 +00:00
ahocevar
0c1fe31b0a added missing semicolons; while at it also introduced some array length caching and simplified var assignments. Non-functional change. Thanks rot for spotting this. (closes #2019)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 16:39:28 +00:00
ahocevar
61b5293692 Added WMSDescribeLayer format. Thanks bartvde and sbenthall for the patch. I made some minor modifications:
* changed file structure to match other formats (i.e. put version 1.1 parser in a WMSDescribeLayer subfolder)
 * fixed a type in the example which showed owsURL instead of owsType
r=me (closes #1201)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 15:06:02 +00:00
Éric Lemoine
cf5aa98cce minimize triggerEvent code path when no listeners, r=tschaub (closes #2014)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-28 16:17:54 +00:00
Tim Schaub
8bac39243f Removing an unnecessary var and adding a semicolon. Just running jslint on some random files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-28 02:07:57 +00:00
ahocevar
44ab482e89 addad namedLayersAsArray option to Format.SLD.v1. Patch by tschaub and
me, r=tschaub,me (closes #2005)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 08:39:15 +00:00
Tim Schaub
a9e087b5b9 Writing sld:Mark fill and stroke in cases where graphicName is not provided. r=ahocevar (closes #2008)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 02:02:58 +00:00
Tim Schaub
84fa9dd1ae Adding gml namespace to SLD format for writing spatial filters. r=ahocevar (closes #2006)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-27 02:00:15 +00:00
Tim Schaub
cd899ab11e Changing the draw feature example to use the default drawing behavior. To enable freehand drawing, use the shift key.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-26 15:35:11 +00:00
crschmidt
05658f1231 Add a panDuration property to the map. This allows for a workaround for
VirtualEarth panning with markers which causes drift, using the 'novibrate'
example. Tests continue to pass. r=me (Closes #1947)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 21:38:57 +00:00
Tim Schaub
807706219b Adding a slideRatio property to the PanZoom control. Setting this will cause the pan buttons to pan the map by a ratio of the map dimensions. A slideRatio of 0.5 will cause pan up to pan by half the map height. Thanks for the patch and tests sbenthall. r=me (closes #1998)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 20:27:51 +00:00
Tim Schaub
273c7ab5d2 r9113 came with one minor typo in the PanZoom tests. Tests now pass. (see #1949)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 20:17:32 +00:00
pgiraud
2ee964ba55 Added missing requirement, no functional change, patch from aabt (Closes #2003)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-24 09:52:17 +00:00
ahocevar
3be75cc8d9 Improvements to the WMSGetFeatureInfo format which was not able to parse
some Mapserver responses. Thanks adube for the patch. r=me
(closes #2002)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-23 20:20:47 +00:00
Tim Schaub
3e55ef6aa3 Adding a threshold property to the cluster strategy. If a threshold set, clusters will only be created if the number of features in a group meets or exceeds the threshold number. r=elemoine,crschmidt (closes #1815)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-23 17:34:28 +00:00
ahocevar
85dc3a9880 made global variable features in parseData local. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-22 20:35:12 +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
crschmidt
5c26d578ca In order to make subclasses of Layer which support edge tiles which are of a
size which is not the same size as all the tiles on the layer (as is the case
in Zoomify layers), change Tile.Image to use the size passed in on construction
instead of this.layer.tileSize. All tests still pass, should have no functional
change for all existing layers. patch by pascalou, r=me (Closes #1496)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-22 00:11:45 +00:00
ahocevar
fdb267987b Fixed rendering issues in (vector) layers when map div has dir="rtl"
set. 
r=crschmidt (closes #1778)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-21 21:38:42 +00:00
ahocevar
7130992b16 better cleanup for ZoomBar and PanZoomBar. Fixes a memory leak.
r=crschmidt (closes #1949)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-21 20:13:26 +00:00
crschmidt
65e4ce3e47 add logic in Layer.WFS to prevent sending a BBOX when a 'filter' parameter is
active. This behavior is unsupportd in WFS, given an error message, so this
is a way to protct people aganst that. However, users should be aware that the
best way to do this probably to use Protocols and Strategies right now; 
this is a fix for those getting caught out by this issue until they can
switch. Originla patch by Jachym, r=me (Closes #1734)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9112 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-21 13:24:40 +00:00
Tim Schaub
f06b11d878 Deciding that setCenter deserves a bit of docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-20 17:47:20 +00:00
ahocevar
0a6ea3125d always include field type in DescribeFeatureType fields. With
modifications from tschaub. r=tschaub (closes #1202)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-20 17:26:40 +00:00
Tim Schaub
7e35022dff Updating the sundials spherical mercator example a bit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 23:34:56 +00:00
ahocevar
567d32f35f Suport for tooltips on externalGraphics using the graphicTitle
symbolizer property. Only supported in IE and FF. Patch by zspitzer, 
modified by me (added some docs, moved code that sets the title tag so 
it gets executed for externalGraphics. p=zspitzer, r=me (closes #1946)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 18:53:15 +00:00
crschmidt
e49f1435bc Fix for autoSize popups too big when panMapIntoView is false, r=euzuro,
(Closes #1957)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 17:33:27 +00:00
Éric Lemoine
22af9d6412 permit abstract classes (an abstract class being a class without an "initialize" method) as parent classes, final patch from tschaub, r=tschaub (closes #1987)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9091 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-19 14:29:12 +00:00
Tim Schaub
66b4cd65f6 Don't remove the drag control's reference to the feature on up. This is intended to solve issues with fast dragging. Thanks for the patch bjornharrtell. r=me (closes #1196)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9090 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 21:56:53 +00:00
crschmidt
c6a7dd235d Add ExtendedData support to KML. r=tschaub, patch mine + his comments,
thx to rdewit for initial help/pointers, (Closes #1955)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9089 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 18:15:47 +00:00
Tim Schaub
baf260c6f1 Adding an option to make the bbox strategy more agressive. Thanks for completing the tests crschmidt. r=crschmidt,igrcic (closes #1830)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9087 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 17:42:14 +00:00
Tim Schaub
eb03ccc02d Modifying the loader script to check more carefully for the location of OpenLayers.js - allowing folks to have scripts called things like foo-OpenLayers.js. r=crschmidt (closes #1888)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:57:41 +00:00
crschmidt
6708f691e2 in situations where a framed popup has a minSize set which isn't big enough
to hold all the blocks, it is possible that the popup will throw an error.
Though this is a configuration error, it is unlikely to be run across in
typical development, so we'll be nice to the user and protect them from
this mistake. (Closes #1891)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:47:37 +00:00
crschmidt
2c177fc85c Adding a ruler, contributed by smcmurray. Not used anywhere, but if someon
wants it, they can have it. (Closes #1913)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:43:25 +00:00
crschmidt
5e387191d5 make zoomWorldIcon an APIProperty. (Closes #1985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-18 15:34:38 +00:00
Tim Schaub
5497e3a272 Additional ndocs for geometry.equals.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 18:31:46 +00:00
Tim Schaub
b505822fd1 Additional ndocs for geometry.move.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9072 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 18:26:15 +00:00
Tim Schaub
576e931dac Adding support for cloning rules and filters. r=ahocevar (closes #1919)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 16:08:12 +00:00
ahocevar
7fa74f1b0b examples for #1901
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 12:34:41 +00:00
ahocevar
082107b2a0 Added alternatvie way to initialize the map object, without passing a
div to the constructor. Original patch by tcoulter, modifications by
me and tschaub. r=tschaub (closes #1901)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 10:56:54 +00:00
Tim Schaub
7af042ac7f Adding more support for sld:TextSymbolizer parsing. Reading TextSymbolizer, Label, Font, Halo, and Radius. Writing symbolizer fontWeight and fontStyle as sld:CssParameters. Writing sld:Halo and sld:Radius. r=ahocevar (closes #1984)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-17 00:14:26 +00:00
pgiraud
291d2e27f6 mapnik layer declared twice, removing the first one
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9057 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-16 08:59:04 +00:00
Frédéric Junod
cea2bdd3a1 set Protocol read, create, update, delete and commit APIMethod. r=tschaub (closes #1660)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-16 07:05:56 +00:00
Tim Schaub
483c6ea4e6 Rolling back the parts of r9051 that were not really part of #1987. These changes will come with a review of #1556. Thanks to elemoine for catching this. (see #1987, #1556)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9053 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-16 04:23:41 +00:00
Tim Schaub
f9e9eb61ae Modifying bounds.intersectsBounds to it catches bounds intersections where corners of one bounds are not contains in the other bounds. Thanks for the review. r=sderle (closes #1951)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-15 03:44:22 +00:00
Tim Schaub
49d6463f4e r8455 introduced good changes to Class.js that gave us useful instanceof results. This change also made is so that people using the Class function to extend from non-OL constructors were unwittingly modifying their prototypes (by giving them an initialize property whose value was undefined). By ensuring that the parent prototype has an initialize property already, we don't add anything unexpected. r=crschmidt (closes #1987)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-15 01:31:11 +00:00
crschmidt
8df8106a51 fix for Layer.GML has some problems with load events r=tschaub (Closes #1747)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9050 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-14 17:06:46 +00:00
crschmidt
2a8015775b Add support for georss:box parsing, and parsing of summary as fallback for
'content'.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-14 17:05:38 +00:00
Tim Schaub
13833e0a67 Unmixing line endings. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 20:04:34 +00:00
ahocevar
086506b926 use String(boolean) instead of encodeURIComponent(boolean) to convert boolean to string. r=tschaub,crschmidt (closes #1982)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 18:42:13 +00:00
Tim Schaub
4975ed8fd1 Adding missing semicolon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 16:48:27 +00:00
crschmidt
ece39fb1b5 Fix missing semi-colon in Geometry.js, pointed out by rod in trac.
(No functional change.) (Closes #1981)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9030 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 14:27:53 +00:00
crschmidt
458461c779 Give the WMS Layer an option to turn off the 'magic' of changing format and
baseLayer state, since that magic can sometimes be problematic. Patch by
part, cleaned up a bit by me, r=me, (Closes #1980)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9029 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 14:19:11 +00:00
ahocevar
d2c0182fd9 Preserve aspect ratio for custom symbols in the vml renderer. Original
patch by fredj, refactored by me, r=pgiraud. (closes #1836)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-12 13:19:06 +00:00
Schuyler Erle
e89774d568 Fix #1951 by rounding all floats passed to Bounds.initialize() and
LonLat.initialize() to 14 significant figures.

Added an OpenLayers.Util.toFloat() function, and changed the LonLat constructor
and the Bounds constructor to truncate all float parameters to 14 significant
figures to avoid numeric comparison errors caused by floating point precision
loss. See the comments around the definition of
OpenLayers.Util.DEFAULT_PRECISION for how it works.

Also refactored Bounds.intersectBounds() for readability, and added a
Bounds.touchesBounds() in the process. After tweaking the tests for
Layer.SphericalMercator and Format.WKT (because they were expecting too many
significant figures), all tests pass.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@9022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 22:45:32 +00:00
Tim Schaub
9afcb939be Add docs to clarify that distanceTo measures distance on x-y plane only.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 19:24:56 +00:00
crschmidt
b682f76f95 Mark calculateInRange as an API property. (comment only)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 17:31:52 +00:00
Tim Schaub
f65e76db2d That yellow was melting my eyeballs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9013 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 14:57:00 +00:00
Tim Schaub
713cfb600b updating wms url for imagery
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 14:17:07 +00:00
Tim Schaub
47a66ceff5 Working imagery.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 14:14:28 +00:00
Tim Schaub
f80fc57b8d proxy chasing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9009 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 13:51:10 +00:00
Tim Schaub
b00989cbd8 Adding tooltips.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 13:48:40 +00:00
Tim Schaub
be06680e85 proxy chasing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 13:38:19 +00:00
crschmidt
8586e460a0 update mapguide layer example and tests to use a more stable server. No
functional change. (Closes #1757)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 06:22:24 +00:00
crschmidt
a058555c62 remove synchronous behaviour for MapGuide overlay layers with newer MapGuide.
Patch by madair, reviewed by kseograf with comments, r=me (Closes #1756)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 06:19:41 +00:00
crschmidt
718495bcec Add Mapguide Layer http served tile support. Patch from madair, positive
comments on usage from community members, r=me. (Closes #1622) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-11 06:15:30 +00:00
ahocevar
612e95793c Added GetFeature control to get features based on spatial filters
created by clicking or dragging boxes on the map. Thanks tschaub for the 
review and the final patch with valuable improvements. r=tschaub
(closes #1936)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9003 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 23:31:53 +00:00
Tim Schaub
9e3bf16b0d Marking the api.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9001 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 22:36:37 +00:00
Tim Schaub
8c0d034516 Add a control that acts as a split agent. The control can be configured to listen for edits on any source layer or can create a temporary sketch layer for creating a split source. Source features will be used to split targets on a target layer. The deferDelete option tells the control to modify feature state instead of destroying split features (for use with a save strategy and a protocol that persists changes). r=ahocevar (closes #1972)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8998 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 22:06:19 +00:00
ahocevar
7db0265495 added fromWMSLayer convenience function to Protocol.WFS. Thanks tschaub
for the improved patch. r=tschaub (closes #1937)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8993 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 20:11:07 +00:00
crschmidt
c1315bbb0c "Unsetting tile.src causes browsers to stop loading tiles more reliably",
r=tschaub, (Closes #1978)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 18:09:27 +00:00
crschmidt
10bc8f5726 "Switching between google layers after map resize", after map size change, as
is used by mapfish and others, the google map can get confused as to its size
and not resize correctly. This patch changes that so that the check happens on
moveTo, so we know if the map has resized. The checkResize is a cheap call in
the default case. r=me, patch by gregers, (Closes #1797)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 18:07:53 +00:00
Éric Lemoine
4a4cc13e86 "hanlerOptions" should be "handlerOptions" in the options passed to the Haldler.Click ctor, thanks to Erwin Poeze for catching this, no funtional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8986 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 15:31:46 +00:00
crschmidt
5b4746aca6 fix duplicated tests in WMSGetFeatureInfo.html (double-patch applied)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 13:23:55 +00:00
euzuro
04dfe9c552 Make the derivation of the '_contentDivPadding' value safe in the case where the popup is already added to the map's containerDiv. (Closes #1938)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8980 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 05:14:01 +00:00
crschmidt
fe20406714 Add patch to build tools to allow comments in build profiles. patch from
jwpage, r=me (Closes #1541)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 04:09:30 +00:00
crschmidt
861ef81552 fix for WFS-T delete and update have improper typeName. Includes tests.
Vague +1 from tschaub. WFS format now matches the more modern WFS-T v1 format
as confirmed by cargo culting the WFS-T tests. (Closes #1787, #1471) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 04:04:59 +00:00
crschmidt
676475d902 "Always zoom in/out while drawing the zoom box." Patch from jachym, tested
and example added by vdeparday. r=me. (Closes #1771)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-10 03:50:01 +00:00
Tim Schaub
1ed1584320 Style constructor accepts a rules array. These rules will be added to the style. r=ahocevar (closes #1964)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 22:26:05 +00:00
Tim Schaub
a10b319413 Add split method for linestring and multilinestring geometries. Use for splitting one geometry with another. Optionally performs a mutual split. r=ahocevar (closes #1929)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 22:19:07 +00:00
Tim Schaub
837efd0b9c Loading strategies now trigger loadstart and loadend events. r=crschmidt (closes #1840)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 22:17:23 +00:00
crschmidt
97f4ad54a3 tileOrigin is gone, remove it from tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8972 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-09 15:55:34 +00:00
Tim Schaub
f64d554a38 Removing dash that ndoc misinterprets.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8967 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 22:24:31 +00:00
crschmidt
e4b161efd1 kill extra comma in example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8963 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 19:24:09 +00:00
Tim Schaub
4d1d172be0 The style:'default' hack is no longer needed here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 18:28:59 +00:00
Tim Schaub
7ed1aaea29 Add logging for vertexmodified and sketchmodified to modify example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 17:58:00 +00:00
crschmidt
fff6be4920 Add a string format speed test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 17:42:41 +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
d2656e002a Fix for "WFS.setOpacity() doen't work properly". (Closes #1868) r=elemoine
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8952 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-06 13:14:34 +00:00
Tim Schaub
9b6894644b Adding a snapping agent for snapping geometry components to existing components while editing. r=ahocevar (closes #954)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 23:04:07 +00:00
crschmidt
930adf45c0 Fix to display only one unit on scaleline in IE. Previously, this worked in
most browsers, but not IE. Includes a test, tested on IE6 and IE7. Patch
by zspitzer, r=me, (Closes #1478)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:46:58 +00:00
crschmidt
b72748e2c6 Fix silly typo in @requires statements.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:23:23 +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
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
Tim Schaub
a8c6c2c159 Documents for a few more symbolizer properties.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 23:40:55 +00:00
Tim Schaub
9e73bd82d7 The getVertices method now returns all points, endpoints only, or all except endpoints. r=crschmidt (closes #1966)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 15:46:00 +00:00
Éric Lemoine
95206bdeae enable programmatically calling the clickFeature metod of the select feature control, r=crschmidt (closes #1449)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 12:45:24 +00:00
crschmidt
1b370297d4 change url for shrinksafe service. (Closes #1568)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 12:41:35 +00:00
crschmidt
95c178adf2 A brilliant patch adding better documentation to all of our controls from an
unnamed contributor on OpenLayers trac. (Closes #1751)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 06:30:15 +00:00
crschmidt
92fe77f25c removing untriggered popupopen, popupclose events from the map docs.
These events were never fired. (Closes #1746) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 06:28:25 +00:00
ahocevar
47bcb9bd8d Possible fix for an issue in IE6 that causes this.element.scrolls to be
nullified while being created in getMousePosition. This behavior seems 
to be due to a bug in IE6 (it appears that two event handlers are 
running in separate threads, which should never happen). The 
proposed patch does nothing but improve the coding style of setting 
scrolls and lefttop, and it seems to fix the issue. p=rdewit, r=me 
(closes #1952)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8936 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 15:27:39 +00:00
Éric Lemoine
15efd8db2f add abort method to wfs protocol, r=tschaub (closes #1943)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8933 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 11:13:22 +00:00
Frédéric Junod
a0678fa739 Layer.TileCache, Layer.TMS: support a subset of server resolutions. r=tschaub (closes #1944)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8932 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 08:21:01 +00:00
crschmidt
4dc36e4d80 "Remove unused 'tileOrigin' code from TileCache layer", (Closes #1076). Though
the idea behind this is good, having the code here and unused is not the right
thing to do. (See #1302) for a better attempt at what this should actually be.
The reason this code exists is almost certainly a carggocult from Layer.TMS,
which *does* have a tileOrigin, and I'm pretty sure tschaub started by copying
from that. r=me, though it's mostly just docs. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 02:32:11 +00:00
crschmidt
05887ecf50 fix for WFS Layer getDataExtent always pulls from markers subclass, r=tschaub
(Closes #1725)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8929 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-02 02:06:01 +00:00
Tim Schaub
0a62e921b2 Adding support for writing wfs:Query with limited property names. Patch from bartvde, tests and mods from me. r=me,ahocevar. (closes #1827)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 23:04:16 +00:00
ahocevar
a80e1e52c2 Cast values containing numbers into Number objects in Filter and SLD
format to ensure correct comparison of scale denominators against map 
scale  and filters against features. Introduces a new 
OpenLayers.String.numericIf function. r=fredj,tschaub (closes #1874)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 22:19:17 +00:00
crschmidt
e58d820685 tiny update to natural docs based on patch from anonymous submitter.
(Closes #1963) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8926 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 20:50:30 +00:00
Tim Schaub
80fa2b789b Correcting what was the result of a patch applied twice - thanks for the catch elemoine. r8920 added the WMSGetFeatureInfo format with the class definition repeated (and slightly different). (see #1812)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8925 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 20:35:05 +00:00
Tim Schaub
fecda8f089 Adding a keepData option to formats. If true, formats will be given a reference to the parsed data (named data) after a read. Use this when you need to access part of the structure that was not extracted in creating features (for example). Note that for versioned parsers, the data property is available on format.parser.data. Thanks for the patch sky. r=me (closes #1753)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8924 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 16:37:07 +00:00
Tim Schaub
c7afe8e134 Triggering loadstart and loadend events for the Image layer. Thanks for the excellent patch sky. r=me (closes #1700)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 16:07:50 +00:00
Tim Schaub
654291ecff Adding layerParams property to WMC options. This lets WMC users set params to be used on WMS layers that are different from the WMS layer defaults and not present in the WMC doc. Thanks for the patch bartvde. r=me (closes #1513)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 15:32:47 +00:00
Tim Schaub
97e55039ea Adding support for reading and writing spatial filters with Within, Contains, and Intersects elements. Thanks pvalsecc for the original patch. r=ahocevar (closes #1959)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8921 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 05:40:21 +00:00
ahocevar
9359cf0dc1 WMSGetFeatureInfo class with tests. Should have gone in with my previous
commit, but forgot to svn a. (see #1812)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 00:19:17 +00:00
ahocevar
f7deb57384 Added WMS GetFeatureInfo format. This new format can read GML, Mapserver
and Arc* style feature info results. Thanks crschmidt and 
tschaub for testing and improvements. p=bartvde, r=tschaub,me (closes 
#1812)
r=tschaub,me.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-01 00:16:17 +00:00
crschmidt
2733d8d6a3 Fix to ArcGIS tests in Safari; copy params for each test, so they're not
contaminated by other tests. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8918 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 22:20:41 +00:00
crschmidt
dd393122aa Create a Layer class to access the ArcGIS 9.3 Map Export service. Patch by
Jeff Adams, from Avencia. r=me. Tested with the default service, and several
other example map services from ESRI (like
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/export).

Note that I don't believe this takes advantage of map caches; if we create a
seperate layer for that, we should probably create a Layer.ArcGIS. namespace.

(Closes #1749)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 21:53:22 +00:00
Tim Schaub
4d2d90ca51 Filter formats inherit from GML formats. WFST formats inherit from Filter formats. This lets you do things like set xy on the filter format if you specify an srsName for which wy is false. r=crschmidt (closes #1962)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8916 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 21:45:01 +00:00
Tim Schaub
a55bef1cba Symbolizer property docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8913 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 21:00:34 +00:00
Tim Schaub
2d8489f6f2 Updated gmap key.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 19:50:22 +00:00
crschmidt
932d579447 Change ordering of termsOfUse/copyright removal, so we get the right CSS class
names. Patch from #1858. (See #1958). r=me 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 18:14:12 +00:00
crschmidt
d9e466f645 Fix from gregers, patch cleaned up by Erik for, "Util.getRenderedSize does not
calculate with inherited style". Includes manual regression test. r=me, (Closes
#1906). CLA on file.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 18:00:10 +00:00
crschmidt
1f39c4dbd1 Per discussion a month ago with erik, he agreed with pgiraud that
framedCloud.css was unneccesary. Combining this into theme/default/style.css,
and removing from examples. Only changes examples and theme, so committing
without review. (Closes #1750)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 17:44:27 +00:00
crschmidt
bfaf22f22d Fix broken positionBlocks, which cuased overlaps. This is neccesary to easily
handle semi-transparent alternatives to the main framedcloud image.

r=me, (Closes #1737) 



git-svn-id: http://svn.openlayers.org/trunk/openlayers@8904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-28 14:06:31 +00:00
Éric Lemoine
5a68638971 remove unused variables, no functional change, thanks to pvalsecc for catching those as part of #1959
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-27 15:15:30 +00:00
crschmidt
b625e9f12f Fix for "BaseTypes.String.Format does not support sub-elements", patch + tests
from rdewit, r=me, (Closes #1956)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-27 00:44:20 +00:00
Éric Lemoine
f04f203499 ghost features stay displayed with select feature control, r=pgiraud (closes #1865)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-26 15:19:43 +00:00
Tim Schaub
218ab8c9c6 Updating the WFS protocol demo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-25 22:02:50 +00:00
Tim Schaub
3eddc6cc44 Passing the temporary rendering intent to the temporary sketch layer. Related Point.js changes in r8831. r=elemoine (closes #1634)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8890 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-25 14:38:26 +00:00
crschmidt
31dd2e65bd Followup to r8519; fix styleurl parsing as well. Includes new KML modifications
to examples to show styleurls in action. r=me (Closes #1796)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-21 13:43:21 +00:00
Tim Schaub
d4c94eb1e6 Adding copyright notice.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-21 04:30:28 +00:00
crschmidt
dd27c501d8 make panMethod an API property. Since this is the only way to turn off animated
panning, it makes sense to support users who want to change this.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-19 19:54:37 +00:00
Éric Lemoine
dbc6e54403 OpenLayers.Class is not a constructor, trivial, non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-18 06:31:01 +00:00
Éric Lemoine
d8a8526cde add missing semi-colon, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-18 06:26:35 +00:00
Tim Schaub
55f40e224a Adding a WFS protocol. This allows for creating, reading, updating, and deleting features via WFS. Huge thanks to ahocevar for the test writing and review. r=ahocevar (closes #1648)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-18 00:07:43 +00:00
crschmidt
8274b648e8 Yahoo! Maps API supports more zoom levels. Use them by default. (Closes #1384)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-17 12:05:39 +00:00
ahocevar
8e7c7d5528 Add WFSDescribeFeatureType format. This work is based on bartvde's owsformats sandbox. The unit tests were directly taken from that sandbox and only modified to reflect the slightly modified output format of this rewrite. Thanks to Bart for his initial work and the good discussion on the dev list. r=elemoine (closes #1202)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8858 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-15 21:58:20 +00:00
Tim Schaub
df920a88d5 Adding getVertices method to all geometries. Call with nodesOnly true if you only want endpoints (of lines and multilines). r=crschmidt (closes #1192)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 22:49:03 +00:00
Tim Schaub
dd70dceef9 Correcting what was a mistake in r8805. Original patch was good. The autoPan property should default to false. Apologies for the failing tests. r=crschmidt (closes #1770)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8841 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 22:45:52 +00:00
crschmidt
5cc2445a6a geometry.resize returns obj for chaining. r=tschaub, (Closes #1931)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8840 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 22:28:22 +00:00
Tim Schaub
3274491b95 Adding distanceTo method to all geometry types. This calculates the shortest distance between any two geometries. For geometries that are entirely contained within polygons, the distance returned will be the distance to the nearest edge. Set the edge option to false to return 0 in cases where one geometry contains another. Details about the distance calculation can be returned by setting the details option true. Details include information about endpoints of the shortest segment between the two geometries. r=ahocevar (closes #1907)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-05 17:43:34 +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
f4bae0a011 Adding support for a modify callback in the sketch handlers. This lets controls know about each sketch modification as a sketch is being drawn. Also a bit of a refactor of the sketch handlers to share sketch geometry parts. r=ahocevar (closes #1903)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 22:45:16 +00:00
crschmidt
112debe5f5 resetBackBuffer should hide the backBufferTile as pat of resetting it.
Patch from ksgeograf, r=me,pagameba. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 20:55:11 +00:00
Tim Schaub
6f38974fc3 Parsing emtpy attributes in GML as empty strings. Thanks for the patch bartvde. r=bartvde,me (closes #1927)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 18:33:13 +00:00
Tim Schaub
a84a9c1144 Adding a strategy for saving newly added or modified features. Setting the auto property to true gives you auto-saves with every addition/modification. Setting auto to a time (in seconds) gives periodic auto-save of all new/modified features. By default, the save method must be called to trigger save. r=ahocevar (closes #1924)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 00:57:26 +00:00
Tim Schaub
7582cc076e Refactor SLD format a bit to use methods from XML format. The SLD format (v1.0) now inherits from the filter format (v1.0.0). r=ahocevar (closes #1843)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-04 00:53:58 +00:00
ahocevar
85a59b21ac fixed a caching issue with asynchronous requests in IE. r=igrcic, tschaub (closes #1896)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 23:09:39 +00:00
Tim Schaub
f9939f1cfe Filter enhancements. Adding support for serializing filters with Filter Encoding 1.1. Adding matchCase attribute to filters with binary operators. Refactoring filter formats to use methods from base XML format. r=ahocevar,adube (closes #1790)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8812 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 22:28:48 +00:00
ahocevar
ebed733327 Create Fill and Stroke nodes only for PolygonSymbolizers that actually have fill and stroke symbolizer properties. r=tschaub (closes #1879)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8811 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 22:25:37 +00:00
Tim Schaub
64f2c94c29 Adding a test to confirm that reading of boundedBy works for GML 2 as well (see #1918, #1613)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8809 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 21:01:32 +00:00
Tim Schaub
9ecfc61fb5 Changes to GML 2 and 3. GML 3 now supports gml:Curve, gml:Surface, and the multis - with options to write the deprecated elements. Now reading boundedBy on features as geometry.bounds. Corrected lowerCorner and upperCorner elements. Added ability to build without the old gml parser. r=ahocevar,adube (closes #1918)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8808 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 19:49:06 +00:00
Tim Schaub
742b066aa7 Add an autoPan property to the overview map. Set this to true if you want the extent marker to return to the center of the overview map after you drag it. Thanks for the patch jachym. r=me (closes #1770)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8805 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 00:52:07 +00:00
Tim Schaub
3edb925487 Strategies that request data (fixed and bbox currently) should transform geometries when the layer projection is different than the map projection. This adds reprojection support to the Fixed and BBOX strategies. Given more strategies that request data, we will likely want to extract out the common parts. r=elemoine (closes #1841)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8804 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 00:12:27 +00:00
Tim Schaub
0a5204533d Restoring order to the universe.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-30 22:51:35 +00:00
Éric Lemoine
a107ab04e4 Add the "readWithPOST" boolean option to OpenLayers.HTTP. If "readWithPOST" is true then read operations are done using POST requests instead of GET. This is useful when one needs to send lots of data as part of the request. p=aabt, r=crschmidt,me (closes #1917)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-30 16:24:38 +00:00
crschmidt
f4c0923bf5 Fix broken documentation.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-30 11:59:40 +00:00
ahocevar
8f77f9e511 boolean values of xml nodes need special treatment in IE. r=crschmidt (closes #1883)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-29 16:01:12 +00:00
Éric Lemoine
88fd0519ea make it easier to change the delay passed to the delay_call func, test only, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-29 12:39:37 +00:00
crschmidt
32ca128b18 Simple fix to KML style parsing (from Edgemaster). This change makes getStyle
return clones. Since the results of getStyle are extended later in the code
by the inlineStyle, this fixes a case where kml.styleUrl symbolizers can 
be changed by <Style> blocks attached to features which share a style.
r=me. (Closes #1578)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8776 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-28 02:07:09 +00:00
crschmidt
256f027c7c Commit a change to the Strategy/Fixed to behave more like GeoRSS/Text/GML
layers, and not load by default if the layer is not visible. Includes tests.
Default Behavior can be changed with 
'OpenLayers.Strategy.Fixed.prototype.preload=true;'. With review from elemoine,
comments from tschaub, review from me. Patch by Edgemaster. (Closes #1852) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8775 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-28 01:43:04 +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
euzuro
e6b48e3dd8 Seems odd to not expose the 'markers' property on this layer. I have buyin from cr5. If anyone has vehement opinions on this, yell and i'll roll back
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-24 18:12:21 +00:00
Tim Schaub
fc40bbaa05 These too, right? Unimplemented property docs (see r8752).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8761 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-23 19:06:38 +00:00
crschmidt
12096ace6b Remove hover* properties from documentation. Leaving in code for now, but so
far as I can tell, these would depend on support from some specification, and
the only code on the web which mentions them are duplicate copies of OpenLayers
documentation.

We should probably remove these from the corresponding style blocks as well. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-23 12:03:32 +00:00
Tim Schaub
e20f0f8cb9 Updating docs for bbox ratio.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8737 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-22 15:48:58 +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
dd47a376aa change website build script to ix typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-21 12:54:31 +00:00
Tim Schaub
89431424fb Adding a convenience method for creating a WKT format and creating geometries with WKT strings. r=crschmidt (closes #1908)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-17 01:32:17 +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
Éric Lemoine
1f6b239c80 fix Handler.Feature API doc, the handler received a single OpenLayers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8684 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-16 07:17:05 +00:00
Tim Schaub
37cca38958 Reverting changes from r8664 that were inadvertently committed to the trunk. This gets the SelectFeature control tests passing again. (see #1666)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-15 21:30:39 +00:00
ahocevar
34599e7f50 updated sandbox with singleroot.3.patch from #1666
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-14 23:16:53 +00:00
pgiraud
94203ec0f8 decrease numZoomLevels to 2 to ensure that people will not zoom too much, and feel disturbed
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-13 14:09:15 +00:00
ahocevar
8b08f79898 no longer overwrite "display" symbolizer properties set by the user in
Style objects. r=elemoine (closes #1898)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8620 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 16:22:56 +00:00
crschmidt
e1d294193a test commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8619 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 13:51:50 +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
ahocevar
54cd400e9a added limited support for OGC expressions for SLD Opacity, Size and Rotation. r=tschaub,crschmidt (closes #1875)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 12:27:27 +00:00
Éric Lemoine
68ad14a047 Handler.RegularPolygon doesn't always call the "done" callback, r=tschaub (closes #1857)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 09:12:37 +00:00
Tim Schaub
6724cefe5f Adding Danish translation strings from ksgeograf. Thanks for the contribution. r=me (closes #1801)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8615 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 06:27:18 +00:00
Tim Schaub
fe0f4f9060 Adding support for scale calculations for all units supported by the PROJ.4 and CS-MAP libraries. Thanks for the patch madair. r=me (closes #1821)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 06:14:17 +00:00
Tim Schaub
438418c5bb Using the extent provided to the image layer constructor as the default maxExtent. To set a custom maxExtent (as always), use the maxExtent property of the options argument. r=me (closes #1867)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-09 05:35:07 +00:00
Éric Lemoine
27e9f855e9 Add support for GeoJSON Bounding Box/Envelope, r=crschmidt (closes #1878)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-05 14:23:01 +00:00
Tim Schaub
850d69a02f Take care not to handle features without a layer. These are typically destroyed features - but could be some other sort of miscreants. Thanks for the report igrcic. r=crschmidt (closes #1806).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-01-05 04:46:34 +00:00
crschmidt
20907c7fa5 Iceweasel doesn't fall into the Firefox bin, but should.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:20:57 +00:00
crschmidt
63fe95f519 turn off launching windows when running tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:17:53 +00:00
crschmidt
1399653947 Since opening window is the bane of our auto-testing existence -- browsers not
configured to allow popups, and so on -- add an option to turn off opening new
windows. Patch the tests to check for open_window before using it, and bail out
of tests early if they can't find it. By default, the auto-tests.html file will
not allow any window opening. This gives us *slightly* smaller test coverage,
with fewer false positives on test failures. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:16:35 +00:00
crschmidt
850d96ae72 update config to match test_ol.py
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 17:01:49 +00:00
crschmidt
1bdce44f92 Capture KeyboardInterrupt, and stop all tests.
And configurability of max test timeout


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 16:53:53 +00:00
crschmidt
8624b3f7fb add server/url to config.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-27 11:49:48 +00:00
crschmidt
e4257b5d0f add timeouts for tests; if nothing has changed in MAX_TEST_LENGTH, then
give up, because the browser probably crashed doing something. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8566 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 23:48:36 +00:00
crschmidt
ec295698b6 fix bugs in writing out failures
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8565 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 22:57:55 +00:00
crschmidt
9eda04e31c update; now supports configuration
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 21:30:52 +00:00
crschmidt
40e5c856b6 First step towards automating running of tests via selenium-RC. (Still need
to set up some selenium-RC servers before this is a 'real' thing.)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8563 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 17:41:17 +00:00
crschmidt
70f04dcf62 Fix for #1837: IE7 fails to reset tile's backgroundcolor after failure to load
tile image. r=me, patch by eirik.wahl, (Closes #1837) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8562 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 16:20:18 +00:00
crschmidt
315b8c2d30 more comments on sources for terms.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8559 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-26 14:23:23 +00:00
Tim Schaub
dfe1282442 Allowing zero fill opacity to be written in SLD docs. The SLD format deserves a bit more of an overhaul (given changes to OL.Format.XML), and we've got decent changes sitting around in various sandboxes, but this is a simple fix for a small problem. r=ahocevar (closes #1884)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-24 00:10:16 +00:00
crschmidt
1161049ed5 Roll back changes from r8530: As Tim points out (See #1880), this breaks many
tests and other aspects of OpenLayers. This patch should not have been 
committed. For now, revert the change, and then we can discuss a better
solution. (Rolling back change without review.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8548 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-23 23:20:59 +00:00
Tim Schaub
40fb641a52 The createElementNSPlus method should append non-null values to the newly created node. Thanks for the quick review. r=crschmidt (closes #1883)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-23 20:58:28 +00:00
crschmidt
4a4e7b7e07 fix for KML element "fill" is unsupported, patch by rdewit, r=me, tests by me,
(Closes #1724)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-21 15:01:11 +00:00
crschmidt
e2319ffa12 parse waypoints last, so that they're on top. patch by Edgemaster, r=elemoine,
(Closes #1763) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-21 14:43:58 +00:00
crschmidt
34959835fb Map should deactivate removed controls, removal of pythonic lack of ';' caught
by elemoine in his review. (Closes #1880)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8530 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-21 14:42:41 +00:00
crschmidt
998d03770b Build profiles have recursion now, so we remove the extra classes that are
already handled by dependancies.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-20 15:50:08 +00:00
crschmidt
bc82e37fcf make the map bigger to show the toolbar.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-20 15:16:31 +00:00
Éric Lemoine
a587ef353e make my picky editing happy and add missing semi-colons, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-19 14:56:48 +00:00
crschmidt
e7bbf3d6f9 NetworkLinks were not parsed, even is maxdepth was set. Fix that and add a
test to make sure it doesn't regress.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-19 13:01:11 +00:00
Tim Schaub
10d55cb523 Correcting getResolutionForZoom and getZoomForResolution in the fractional zoom case. Thanks Bart for catching the backwards logic, for the careful debugging, and for the great patch with tests. r=me (closes #1863)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-18 17:03:44 +00:00
Éric Lemoine
f4e616342c minor doc error & enhancement in Control.MousePostion, p=aabt, r=me (closes #1872)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-12 08:37:48 +00:00
Éric Lemoine
67f51ad972 it was reported on the mailing list that the hover handler doc isn't sufficient, fix that, thanks for reporting this Mika, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-10 20:04:29 +00:00
Tim Schaub
304b2cf3ea Cluster strategy should register for moveend on the layer instead of zoomend on the map. p=elemoine,me r=me (closes #1834)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-06 20:54:51 +00:00
Tim Schaub
f9c814a34a Named mark definitions need to be stored on each renderer root. This change gives each defs node a unique id based on the renderer id. r=ahocevar (closes #1849)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-06 20:50:50 +00:00
Tim Schaub
da07d0df2f Correct copy/past error.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-05 15:36:44 +00:00
ahocevar
6c64cb20d9 removing accidently added folders. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-05 11:33:32 +00:00
ahocevar
68c2cbcebd Made instanceof reflection work for class hierarchies. r=elemoine,pvalsecc (closes #1802)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8445 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-05 11:31:29 +00:00
ahocevar
59bf4105bd added ND comments, removed unused arguments from getBoxCharacteristics. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-04 21:28:57 +00:00
Éric Lemoine
887ad9677c PanZoomBar: slider can still get out of panzoombar area, all unit tests pass, p=bartvde, r=me (closes #1864)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-12-03 08:27:01 +00:00
Éric Lemoine
8c06729f6b #1774 Ability to cancel a Protocol request, r=fredj (closes #1774)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8420 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-28 16:09:40 +00:00
Frédéric Junod
274afe0a5f Keep the Util.alphaHack function result in a cache. r=pgiraud (closes #1825)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8419 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-27 14:23:11 +00:00
Éric Lemoine
b694095a89 moveend never triggered for base layers, p=tschaub,me r=tschaub (closes #1831)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-25 09:37:21 +00:00
Éric Lemoine
8b2f674ec9 change method name from "downFeature" to "down" in the ND of the "down" method, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-25 08:04:51 +00:00
crschmidt
04831a0c99 Add more zoom levels to Google example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-25 03:57:01 +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
crschmidt
ca30d3df62 map.getCenter() should return a cloned center, so that (for example)
transforming the center doesn't break the map. patch by edgemaster,
r=me, (Closes #1853)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-23 22:31:12 +00:00
crschmidt
ccbbcd5759 update plan
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8409 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-23 21:31:31 +00:00
crschmidt
6a3db477f0 remove doubled up test_map_center.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-23 21:25:37 +00:00
Frédéric Junod
d695c29269 Fix a memory leak in Tile.Image when using AlphaHack. r=crschmidt (closes #1848)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8407 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 15:04:52 +00:00
crschmidt
d64cec2db2 tabs -> spaces: whitespace only, no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 14:55:21 +00:00
crschmidt
bdf6aad1bb tabs -> spaces (whitespace only: no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 14:54:32 +00:00
crschmidt
a000a3d545 rtept and trksegs should be ignored in parsing GPX. Patch from Edgemaster,
r=me. (Closes #1842)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-21 14:49:44 +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
euzuro
05cd192ba3 give popups a 'closeOnMove' option. if set to true, the popup will close itself as soon as the map is pan/zoom (move)ed. patch by jrf, euzuro review by elemoine, cr5. (Closes #1726)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-19 15:51:18 +00:00
Tim Schaub
d5950d4b29 Draw and modify controls now set feature state. No longer do we need to check feature state in app code in cases where features are created or modified with these controls. r=elemoine,ahocevar (closes #1833)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-16 18:26:39 +00:00
Tim Schaub
1566fc252e r7682 removed hover element, update should not assume it exists
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8376 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-15 21:31:56 +00:00
crschmidt
cc4446af86 add docs to build script
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8365 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-14 21:52:23 +00:00
Tim Schaub
0841822725 Please do not set delays under 1 second when testing rendering in a new window.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8356 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-14 16:20:01 +00:00
Frédéric Junod
b415cbbccb fix comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8351 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-14 10:23:25 +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
Frédéric Junod
e547d61472 fix comment block. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-12 10:17:25 +00:00
Tim Schaub
ea3443c6bc Requiring the base class for WMC.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:54:22 +00:00
Tim Schaub
f877eb4bd4 Typo in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:52:10 +00:00
Tim Schaub
e444a05a18 Updating build requirements for SLD format.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:51:01 +00:00
Tim Schaub
2153c9e51b Adding more explicit requires directives.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 20:48:26 +00:00
crschmidt
782b052590 Don't run eventpane setMap test in FF, since FF2 and FF3 return different
results.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 15:18:32 +00:00
crschmidt
93d8fa3a9a Add more comments to NavToolbar.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-11 12:12:15 +00:00
Tim Schaub
c4609c6dea The cluster strategy should check the map resolution instead of trying to get resolution from the layer. There are many cases where the values differ. r=crschmidt (closes #1820)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-10 22:25:33 +00:00
Tim Schaub
e520aea515 Adding a check to make sure features have a geometry before entering the cluster algorithm. r=crschmidt (closes #1816)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-10 22:23:17 +00:00
Éric Lemoine
7c0fadd14a ModifyFeature makes SelectFeature control behave/become like ModifyFeature, patch=bjornharrtell,tschaub, r=tschaub,me (closes #1741)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-07 08:46:02 +00:00
Tim Schaub
d82f73e9e7 Excuse me for the hastily modified patch (in r8286). It was centerLonLat that I meant to nullify in a different location. The original patch was good - and the review by elemoine was solid. I just tweaked the patch upon reading his comment and failed to pay attention to what I was doing. So, bounds center is cached and all is well. Thanks for catching this crschmidt. (closes #1814)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-06 00:42:37 +00:00
Tim Schaub
b9dac66274 Caching bounds center location. r=elemoine (closes #1814)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 22:23:26 +00:00
crschmidt
d9adcf5a4e Support changing the modification key used to draw the zoomBox, from Jachym
with minor modifications. (Closes #1769)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 21:53:34 +00:00
Tim Schaub
b916be5489 The feature handler should not handle destroyed features. Or any features without a layer for that matter. r=elemoine (closes #1806)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 21:23:55 +00:00
Tim Schaub
0d2760831d Adding a test to show that we can stop feature modification from an event listener.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8282 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-05 17:44:51 +00:00
crschmidt
ea9643c56e Update auto-tests from run-tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 23:19:34 +00:00
Tim Schaub
b020e0279a Adding requires directive for SLD v1. No functional change. Thanks for the catch Bart. (closes #1810)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 16:22:02 +00:00
Tim Schaub
9573f18756 Slightly more realistic mock features. Still no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8256 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 05:28:47 +00:00
Tim Schaub
b9874cdff9 Fewer chars to read. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 05:23:43 +00:00
Tim Schaub
f4f5414800 Updated request docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 01:10:17 +00:00
crschmidt
c1fefd942d use correct layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-03 23:03:15 +00:00
crschmidt
03101401b9 Change the sundials example to also hae a google layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-03 22:12:57 +00:00
Tim Schaub
de272ebf28 Adding titles to title-less examples for googlebot.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-03 19:14:55 +00:00
Tim Schaub
a006d6446c Adding Catalan language dictionary from Oscar Fonts. Thanks for the contribution! r=me (closes #1799)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8239 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 17:02:48 +00:00
Tim Schaub
ab427cdca5 Adding Spanish language dictionary from Miguel Montesinos and Oscar Fonts. Thanks for the contribution! r=me (closes #1798)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8238 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 16:58:39 +00:00
Frédéric Junod
3b2bebd5fa set the CLASS_NAME to the complete class name (add OpenLayers.Layer.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 12:52:11 +00:00
crschmidt
3e89e524a1 FixedZoomLevels CLASS_NAME was wrong (included .js): correct it. (No functional
change, since everyone uses subclasses and the Class itself isnt actually 
wrong.) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-30 10:47:19 +00:00
Tim Schaub
ecd2556783 Marker icons should be moved when the map zoom changes. Thanks to avlee for providing a simple fix for this. r=euzuro (see #1759, closes #1766)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-28 23:51:05 +00:00
Tim Schaub
221ace9d90 Fewer characters to read. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-28 23:03:54 +00:00
Tim Schaub
6924534f47 Making sure the word 'style' appears in the style examples. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-28 03:03:19 +00:00
euzuro
84b65e5f8f fix propogate/propagate typo in click handler. thanks to chris r. for finding this, elemoine for the review. (Closes #1359)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-27 19:00:08 +00:00
euzuro
ad8201bed1 add updates to news.txt for 2.6 and 2.7 releases
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-27 16:58:29 +00:00
crschmidt
7c7809466a Fix a typo in documentation pointed out by MonkZ on IRC.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-24 22:17:46 +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
crschmidt
58fc08d574 Mark loadURL as an API function, since we treat it as one.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-23 14:49:33 +00:00
Tim Schaub
bc503a4e55 More short test names, still no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-22 22:13:48 +00:00
Tim Schaub
e3716d940d Shortening test names. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-22 22:12:41 +00:00
euzuro
a9a88f4200 bad spellings. no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-21 01:42:14 +00:00
crschmidt
cb1150ca88 add 'deprecated' comment to docs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-20 17:06:50 +00:00
Frédéric Junod
ad6d0bd997 Add missing semi-colons. (closes #1762)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-17 08:06:59 +00:00
Frédéric Junod
c7a7edce97 Separating jsdoc declarations. (See #1229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-10 12:36:31 +00:00
Frédéric Junod
ac65d44d1b remove unneeded layer declaration. r=elemoine (closes #1772)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-09 07:48:08 +00:00
Frédéric Junod
d37c42bcb5 Add missing semi-colons. r=pagameba (closes #1762)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-08 12:50:42 +00:00
Tim Schaub
ed719a9570 adding filter example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-05 05:05:50 +00:00
euzuro
8e3178984f getting rid of unnecessary, undocumented 'drawn' property on marker. replacing it with accessor function isDrawn(), and putting an isDrawn() in icon as well. all tests pass r=elemoine (Closes #1759)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8091 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-04 20:13:28 +00:00
Tim Schaub
2e4faa3861 Only load gears_init.js if you need it. r=many (closes #1758)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8089 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-04 13:17:00 +00:00
euzuro
fa5499beed correct the function name
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8088 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-04 12:58:40 +00:00
Frédéric Junod
6b6f207ae7 Add copyright headers and 'Inherits from'. Comments only modification.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-19 06:00:17 +00:00
crschmidt
9a4b0a11f1 "GML v2 fails in single file build in trunk", add dependancy on Format.GML
to prevent GML.v2 from getting blown away by later Format/GML.js inclusion
in single file build. r=tschaub (Pullup #1740)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-18 17:15:33 +00:00
Frédéric Junod
032c6c22ad fix typo in comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8032 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-18 13:25:36 +00:00
Tim Schaub
1a32d17112 We were breaking the firebug console in Firefox 3. This change makes things less efficient for browsers without Firebug (we loop through every script checking for firebug lite), but it fixes the console with OL and Firefox 3. If you open up the console in Firefox 3 and type 'window.console' you get an error about too much recursion (nothing to do with OL). So, we avoid touching window.console unless firebug lite has defined it. r=euzuro (see #1594)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8031 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 23:39:24 +00:00
Tim Schaub
9dd35b03b8 Strategy and protocol ndoc cleanup. (see #1738)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 17:30:01 +00:00
Tim Schaub
babc2a0410 Natural Doc menu changes. (see #1738)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 17:15:54 +00:00
Frédéric Junod
2111cb568f Fix incorrect function name in warning message.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-17 12:53:12 +00:00
euzuro
01682a6da7 Fixing erroneously set default for right-click handlers. Thanks to senior schmidt for pointing out this oversight on my part, and for the quick reviw. (Pullup #1735)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-16 16:23:43 +00:00
ahocevar
658953b130 Fixed fatal typo that broke getComponentString when working with two-point geometries. Added tests to check that everything works as expected now. r=pagameba (pullup #1730)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-15 11:51:50 +00:00
Tim Schaub
508ebc58c1 No functional change. Adding docs for list of default map controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 17:15:55 +00:00
euzuro
6dae5eb770 Fix misspelling
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 17:07:20 +00:00
euzuro
d8cafb1ad7 fix broken HTTP Protocol test. Need to re-assign overridden values. This was not breaking in FF because (for whatever reason) tests are executed in backwards order. When they are executed in forwards order (IE), we have a problem. No functional change. See #1652
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8009 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 16:32:52 +00:00
Éric Lemoine
8d8ee2087f these two files were erroneously not committed as part of [8005], thanks Erik for catching this (See #1699)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 16:06:55 +00:00
euzuro
7a5b401604 Added versioned GML Parser, on behalf of mr. tschaub. review=ahocevar. (Pullup #1639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 15:16:13 +00:00
Éric Lemoine
44ac8154c7 add Protocol.SQL.Gears, and go do editing while being offline! r=crschmidt (closes #1699)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 14:57:05 +00:00
ahocevar
523029f91d use a local coordinate system starting at (0,0) instead of coordinates just derived from the geometries, resetting it every time the resolution changes. r=tschaub (Pullup #1732)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 14:44:40 +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
3ad82c119a fixed ND comment typo (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-12 07:54:43 +00:00
Tim Schaub
33fbc1d22f Adding a BBOX strategy. This triggers requests for data within a bounding box. When the map bounds invalidate previous data bounds, another request is issued. Reads are triggered with a spatial filter, and protocols that understand how to deal with filters may serialize the filter to request a subset of the data collection. The HTTP protocol understands one filter - the bbox filter. So the BBOX strategy can be used in conjunction with the HTTP protocol to request data via http in a bounding box. Thanks for the collaboration and tests Eric. r=elemoine,crschmidt (#1731)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 17:39:41 +00:00
Frédéric Junod
1662f2adba Add missing @requires OpenLayers/Tile/Image.js. r=crschmidt (Pullup #1733)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 15:11:43 +00:00
ahocevar
48221f6d26 give the element a backgroundGraphic so we know that we need to remove the background element
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-11 13:11:09 +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
Tim Schaub
3295500c5c 80 is proxied to 8080 on the server
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7993 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-10 18:43:35 +00:00
crschmidt
8affa99d12 missing comma in list, pointed out by brentp
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7992 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-10 17:19:43 +00:00
Tim Schaub
bb26ddb2bb Print out denied host.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-10 15:00:25 +00:00
crschmidt
a0491afc61 Fix broken OSM layers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7988 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 19:51:08 +00:00
Tim Schaub
715c4001a9 Making the xml_eq test method ignore whitespace only nodes by default. This can be configured by setting the ignoreWhiteSpace option. (see #1639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7987 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 17:50:41 +00:00
euzuro
0fbc6c2500 Fix for Permalink's override-able createParams() function, which was designed to allow for input parameter values for center, zoom, and layers... but was actually only using the center value... zoom and layers were being taken from the map and the input parameters ignored. Big thanks to our anonymous poster for spotting this. r=ahocevar (Pullup #1489)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7986 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 15:53:09 +00:00
Éric Lemoine
4cf8b53027 Fix for "extra '?' is added to the URL by the LoadURL method", review and final patch from tschaub (closes #1616)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 06:55:19 +00:00
Tim Schaub
30ab46f265 Adding a geom_eq method for Test.AnotherWay. This can be used to test two geometries for equivalence. (see #1639)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7983 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 00:10:59 +00:00
Tim Schaub
a5687716b7 Adding readers and writers properties to xml formats. These will contain public functions used in serializing and deserializing various formats. Shorthand methods for calling these readers & writers are writeNode and readNode. r=ahocever (closes #1722)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 21:31:39 +00:00
Paul Spencer
8114c092b7 apply missing semicolons from r7975 (in 2.7 branch) to trunk
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 17:43:34 +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
Tim Schaub
846a48245f Updating comments in example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 19:03:45 +00:00
Tim Schaub
d0ffc2b022 Comment only. A bit of documentation for distVincenty.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 18:53:42 +00:00
Tim Schaub
29cdbe686d Adding a bit of explanation about this calcVincenty function, since distVinventy is not documented otherwise.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7972 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 18:49:54 +00:00
Tim Schaub
30050825b5 Missing change that should have been in r7965. r=me (see #1241)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 18:25:38 +00:00
crschmidt
e301cc2ab0 Measure includes a great circle distance, to emonstrate the ability to use
the geometry attached to the event to generate your own length measurement.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7970 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-06 16:09:13 +00:00
euzuro
f935c599d1 Added a control for drawing geometries and returning basic metrics (length / area). Patch by tschaub, review by elemoine. (Closes #1241)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 15:07:59 +00:00
euzuro
c7b8a5bce6 Sketch handler updates. Patch by tschaub, review elemoine (Closes #1698)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 15:06:04 +00:00
Frédéric Junod
629f370b75 don't redeclare the format property in Protocol.HTTP. r=elemoine (Closes #1721)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7960 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 07:34:56 +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
Éric Lemoine
6d74b489bb code committed in [7952] (ticket #1719) is missing a key/value pair in Lang/en.js, my bad: I had in my working directory but forgot to include it in the patch
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-05 06:23:31 +00:00
Tim Schaub
656a829f82 Allowing for geometries whose bounds cannot be intersected. Thanks for the quick review Andreas. r=ahocevar (closes #1720)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 23:12:09 +00:00
euzuro
4ae2e45083 Fixing example to only do the conditional inclusion on ie6 and below and adding some explanatory comments in the example file and also in the actual controls themselves. No functional change to library (only to example file)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 22:05:05 +00:00
Tim Schaub
c066796698 Adding support to the gml parser for serializing OpenLayers.Bounds as gml:Box. This gives the filter format (and the sld format) the ability to write spatial filters (that have bounds as a value). r=me (closes #1543)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 21:44:52 +00:00
ahocevar
d046680c65 the renderer also needs a nodeTypeCompare method
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 21:12:09 +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
Tim Schaub
89cc9f157f Adding OpenLayers.Filter.Spatial. Thanks to bartvde for the original patch. Thanks elemoine for adding the evaluate method and test. I'm putting this in so we can move on some other tickets. r=me (closes #1719)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7952 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 20:52:05 +00:00
Tim Schaub
c83403fa67 Space only, nothing to see here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 20:44:10 +00:00
euzuro
5084ea6a91 Add new ZoomPanel and PanPanel, a step towards a more easily customizable look for OpenLayers. Work on this ticket was done by a slew of contributors, and reviews as well. Thanks especially to tschaub for the ie6 trick and concomittant non-alpha images. (Closes #1400).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 19:21:59 +00:00
crschmidt
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)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 19:17:47 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 18:35:40 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 16:57:56 +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
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 02:19:41 +00:00
euzuro
4783dd5a45 add warning comment to wfs-t example. thanks for suggestion, o anonymous user. (Closes #1311)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-04 01:18:27 +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
Tim Schaub
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7940 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-03 19:10:47 +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
Paul Spencer
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-02 15:46:35 +00:00
Paul Spencer
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-02 15:43:57 +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
Frédéric Junod
274cd26c5a Don't check this.locked twince. r=euzuro (Closes #1712)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7914 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-01 06:02:54 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 16:28:20 +00:00
ahocevar
d5bd6d59f2 use empty moveTo function to prevent tiles from actually being requested. (closes #1701)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 10:11:54 +00:00
ahocevar
8f1b84a8e1 To test real-life conditions, we cannot just use a bogus function to deactivate the control. (closes #1710)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7893 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 09:27:29 +00:00
euzuro
07ac8f322a bubbling up the 'closest' parameter to the higher-level map object api calls zoomToScale() and zoomToExtent(). Includes thorough tests. r=cr5 (Closes #1250)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7889 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 06:08:32 +00:00
euzuro
ec2b9b5289 improving the biceps of getStyle(). Now if you pass it a null object, it will not die. r=cr5 (Closes #1051)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-29 00:46:45 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7887 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 22:05:46 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7886 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 20:04:17 +00:00
crschmidt
2d286b7ccc Clear bounds of geometries when reprojecting. Patch wwork by myself, tschaub,
ahocevar. r=ahocevar. (Closes #1658)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7885 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 18:41:00 +00:00
crschmidt
1b71180f14 fix reproj example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7884 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 16:41:59 +00:00
Éric Lemoine
3dd6bdce66 bring changes to protocol base class, r=fredj (closes #1677)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 13:33:11 +00:00
Frédéric Junod
d77bf63360 add a requires on parent class, ND comments fixes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-28 12:27:39 +00:00
ahocevar
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-27 19:33:49 +00:00
ahocevar
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-27 14:02:21 +00:00
Éric Lemoine
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)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-27 06:27:22 +00:00
crschmidt
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) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7873 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:35:31 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:27:04 +00:00
crschmidt
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) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:24:44 +00:00
crschmidt
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) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 23:11:03 +00:00
ahocevar
75b129191b rule.value2regex does now unescape double escape. Patch by tcoulter. r=me (closes #1453)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 18:03:41 +00:00
euzuro
0eadc40e27 Keep the 'loadstart' event from firing twice on the Layer.Text. r=elemoine, cr5 (Closes #1696)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 17:17:19 +00:00
ahocevar
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)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 14:54:48 +00:00
crschmidt
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.

To maintain the old behavior, set:
   OpenLayers.Layer.prototype.alwaysInRange = false;

r=euzuro
(Closes #987)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 14:27:36 +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
4fcd61f276 Clear point bounds after changing coordinates. Prevents strange behaviour of IE when doing getBounds(). r=elemoine (closes #1690)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-26 07:39:21 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-22 13:23:16 +00:00
ahocevar
52a5173326 forgot to commit modified tests (references #1679)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-18 13:20:01 +00:00
ahocevar
5e9965a922 forgot to commit modified examples (references #1679)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7782 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-18 12:57:32 +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
ahocevar
73eb0d5745 use t.eq instead of t.ok when comparing values
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-16 10:52:01 +00:00
Frédéric Junod
7a462b74ee Give the map a size to pass the tests on IE 7
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7714 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 14:39:17 +00:00
Frédéric Junod
f086ba17b4 keep the cursor style to 'move' if the cursor is above a feature. r=elemoine (closes #1673)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7713 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 13:34:59 +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
Frédéric Junod
e0ac42ac5c Update copyright year, wrap long line, generate api doc, fix mailing list url. (closes #1618)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7710 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-08 07:09:14 +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
39201a0427 Adding OpenLayers.Strategy.Fixed: A simple strategy that requests features once and never requests new data. r=elemoine, (Closes #1664)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 11:55:24 +00:00
Frédéric Junod
4be8c169d4 test Strategy.activate and Strategy.deactivate
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 11:44:36 +00:00
Frédéric Junod
18af32a5ac Remove JSDOC from CLASS_NAME property, (see #853)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-05 05:54:47 +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
Frédéric Junod
a3ffb5734c OpenLayers.Strategy destroy() nullify options property. r=elemoine (closes #1657)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7690 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 12:25:47 +00:00
crschmidt
397de6fc6a "Format.GeoJSON does not parse features with null geometries", r=elemoine
(Closes #1145)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7689 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 10:38:01 +00:00
Éric Lemoine
21191ad0b9 if scales is set on the map, you cannot use minScale and maxScale on the layer, p=pgiraud, r=me,euzuro (closes #1199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7688 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 09:20:23 +00:00
Frédéric Junod
9e83c720d9 Test if OpenLayers.Protocol::destroy() nullify options property
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7687 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-04 09:11:19 +00:00
crschmidt
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)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7684 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 18:47:52 +00:00
crschmidt
cdd4c864ea Flipped a return value here; this should be 'true', not 'false'. (See #1655)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7683 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 12:24:18 +00:00
crschmidt
693e6d07e3 Fix for Feature handler uses getFeatureFromEvent on mousemove even without
hover callbacks; r=ahocevar (Closes #1655) 

This means that On the SelectFeature control hover can no longer be set on the
SelectFeature control after the control has been initialized: must be passed at
initialize time. Example has been updated. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 02:06:31 +00:00
ahocevar
f0e9c1c6a5 removed wms layer from externalGraphic test. Makes test faster.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 01:30:29 +00:00
ahocevar
8bd5eee49f simplified vector-features-performance test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7680 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-03 00:30:30 +00:00
crschmidt
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. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-02 21:56:25 +00:00
crschmidt
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) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7678 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-02 01:56:36 +00:00
crschmidt
61225ed98f Fixing an obvious bug in Ajax.js: when we upgraded Prototype, we missed
a pair -> extras, caught by 'falstaff'. (Closes #1559) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-02 01:44:26 +00:00
crschmidt
711d909a14 Update VE script location to new version.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 22:24:44 +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
crschmidt
ba561a9fb5 Improve docs; explicitly mention that this transform is *in place*
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 22:09:20 +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
7148b10123 do not ignore style.rotation if set to 0 any more. r=crschmidt (closes #1654)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7672 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:49:44 +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
ahocevar
eddfa62c1f Use getAttributeNS instead of getAttribute. Non-functional change. (references #1650)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 21:12:56 +00:00
ahocevar
a59e7f0f4e fixed rendering but in FF3 when resizing graphicName symbols.
r=crschmidt (fixes #1650)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7669 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:43:31 +00:00
crschmidt
2b8cc7e0fd "WMC: queryable seems implemented but does not actually work", patch from
Bart, tests by me, r=me, (Closes #1447)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7668 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:30:55 +00:00
Paul Spencer
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7667 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:25:28 +00:00
crschmidt
e7ebdc8aa0 Non unique HTMLElement in Control, fix put together by sbenthall.
Tests pass, etc. (Closes #1396) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7666 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:21:56 +00:00
crschmidt
76170bf821 making the test div smaller so I don't have to scroll two things to run a
specific test. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:15:30 +00:00
crschmidt
232b635b12 replace all spaces with '', so that it matches in SVG + FFox
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 18:12:09 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7660 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 15:34:50 +00:00
euzuro
558cd57e41 backing out patch for r7647 as it breaks framedcloud popups. (See #1586)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 05:06:30 +00:00
Paul Spencer
48e8a981d1 typo in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7655 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 03:03:25 +00:00
Tim Schaub
f3283e9212 Adding gml specific attributes to feature in gml parsing. p=sbenthall r=me (closes #1328)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7654 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 01:30:39 +00:00
Tim Schaub
714b1d7363 Unrequire that which does not exist.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7653 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-08-01 00:35:02 +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
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 23:34:19 +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
ahocevar
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 21:21:10 +00:00
crschmidt
d3151ccb40 Updated Control.KeyboardDefaults tests, but not the Handler.Keyboard tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7648 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 20:49:59 +00:00
euzuro
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)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7647 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 20:40:00 +00:00
Paul Spencer
a2905538d8 add anonymous username to url to prevent basic auth challenge when running tests. (Closes #1460) Update by madair, r=me
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 18:47:29 +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
crschmidt
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.

Patch from tcoulter, work from Pedro Simonetti (See #1108), Paul Spencer,
myself. r=pagameba,me (Closes #1292)   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 17:45:16 +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
9bdd7bc77a Alphabetize test list.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7632 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 16:21:00 +00:00
crschmidt
03c7e5f742 Add simplified chinese translation from avlee. (Closes #1643)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7629 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 15:11:32 +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
crschmidt
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) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7626 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 00:00:27 +00:00
crschmidt
2d1e406e20 add a geometry intersection speed test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7625 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 23:53:10 +00:00
crschmidt
0372a110f8 make link look clickable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 23:08:41 +00:00
crschmidt
504e952081 Adding a WMC speed test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 23:08:09 +00:00
euzuro
11f5cdd634 oops. forgot to reenable this test after some debugging. good thing i went tab hunting. (no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:51:47 +00:00
euzuro
e5c79b378d last bit of tabs. sorry this was so clunky, in the middle of another patch. (no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:49:21 +00:00
euzuro
3a5a649984 yet more tabs. no functional changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7620 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:47:00 +00:00
euzuro
c0d29035f4 more tabs. ech. (no functional changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7619 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:41:21 +00:00
euzuro
c3798b198c tab. (no functional difference)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7618 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:37:47 +00:00
euzuro
d28f7450b4 tabbing, semicolon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 22:35:42 +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
crschmidt
61c528f3af Change getMousePosition to only be called automatically *if* the 'includeXY'
flag on the Events object is set to true. This ends up meaning that we save a
lot of unneccesary getMousePosition calls because (for example) the layer
doesn't need to include the .xy property. In addition, we add in speed
improvements via caching to the getMousePosition, courtesy the work from
pgiraud (which was worked on further by tcoulter) -- this results in
significantly improved getMousePosition performance improvements in 'real life'
situations that are more like the cases that people use OpenLayers, with a
higher number of containing divs (and also clearly demonstrate a gain in
performance even in the simple case.)

The end result is: 
 * In typical map movement over the map, (n / n+1) fewer calls to
   getMousePosition, where n is the number of active layers when dragging over
   the map.
 * In the simple case, 40% faster getMousePosition performance -- and in 
   more complex cases, significantly more performance improvements.

To drop the former improvement, which may affect some applications (as
described in the includeXY documentation) simply set:

  OpenLayers.Events.prototype.includeXY = true;

This will restore the 'every element has an xy property always' behavior
that was the case beore this patch. 

r=me,tschaub, work by pgiraud related to (See #1509), and (Closes #1459)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7615 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 21:23:19 +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
euzuro
eb417ff61c adding types to properties from the mousing improvements patch. No functional change, only documentation. (See #1509)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 18:40:23 +00:00
euzuro
5ac8bd6a89 fix broken register() on events r=tschaub (Closes #1502)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7610 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 17:10:04 +00:00
Tim Schaub
36d5f49f0d The Request functions now consider a request with null status as a sucessful request. This is relevant for the file 'protocol' where xhr status is never set. r=crschmidt (closes #1638)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 16:33:03 +00:00
crschmidt
bc06972aea patch for improved mousedragging. We were able to test this on my eeepc
and get a very obvious speedup in performance. This adds a configurable
'interval' to the dragpan control (and an interval to the 'drag' control,
defaulting to 0px). Patch put together by tcoulter. (Closes #1509) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 16:27:48 +00:00
crschmidt
7d3d615172 Fix for Inline KML styles extracted even though extractStyles is false,
from Edgemaster. r=me, tests=me, (Closes #1576)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7607 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 14:53:24 +00:00
pgiraud
b5c10debb1 Modified example short desc.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7606 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 13:18:29 +00:00
crschmidt
0185df1548 create an OSM based Sundials example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7605 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 12:58:21 +00:00
Tim Schaub
9d72a9bdce more less troublesome ie naming
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7604 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 04:10:50 +00:00
Tim Schaub
15a787c5ba test name for ie better
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7603 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 04:08:19 +00:00
crschmidt
0eae149071 Commit Dutch translation, from Bart (thx) (Closes #1425)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7602 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 03:45:31 +00:00
Tim Schaub
309877a48c Adding a featureadded event to the draw feature control event types. First tests ever for the draw feature control. Thanks sbenthall for the patch. r=me (closes #1508)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 03:41:22 +00:00
euzuro
b837fea7a2 small test fix to properly display message
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7600 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 02:28:25 +00:00
crschmidt
2d301f456b "use different server when IMAGE_RELOAD_ATTEMPTS > 1 && layer.url is an array".
Patch from brentp. (Closes #1291)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7599 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 02:02:36 +00:00
ahocevar
d41b6afec4 set center and baselayer in test_box, so we have the correct environment to do the actual test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7598 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 01:19:21 +00:00
crschmidt
8c59d55658 Redraw control.panel when toggle controls are activated. Patch by
sbenthall (yay), r=me, (Closes #895) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:40:32 +00:00
euzuro
0b58117c06 zoomToMaxExtent() and getMaxExtent() should be smarter if a 'restrictedExtent' property is set on the map. (Closes #1134)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:36:26 +00:00
Tim Schaub
27ce7fe099 Removing phantom array.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:35:13 +00:00
euzuro
94c264da1d make the zIndex of the map div 0 (unless otherwise specified by user). this fixes zindexing issues in FF3. (Closes #1635)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:15:34 +00:00
crschmidt
7736e12d33 Support for moving vector features a given number of pixels, or to a given lon/lat, using a move() method. Patch from sbenthall. (Closes #1326)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 23:30:32 +00:00
crschmidt
2ed6483121 Add mapguide docs metadata
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7592 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 23:28:31 +00:00
crschmidt
4fe8f349e5 Add Edgemaster to the doc/authors.txt file (Sorry!)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7591 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 21:02:39 +00:00
crschmidt
54482a0a2e Add GPX-parsing format, courtesy Edgemaster. (Closes #1272)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7590 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 21:00:02 +00:00
Tim Schaub
a88ad8dc50 Adding a box property to the SelectFeature control for selecting all features within a box. p=pgiraud, r=me,crschmidt (closes #1071)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7589 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 18:20:19 +00:00
Éric Lemoine
6c07bc7ff1 new RegularPolygon features can be invisible, p=me, r=crschmidt (closes #1577)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 18:13:08 +00:00
ahocevar
cab3f90411 sorry, had committed wrong versions of SVG.js and VML.js. Fixed now.(references #1157)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7587 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 15:25:56 +00:00
ahocevar
a0b8a41d5d made coordsize positive for vector renderers; seems to fixe some strange behavior in the vml renderer, and brings a performance gain by using this.size instead of calculating the size from extent and resolution every time. r=euzuro (closes #1157)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7586 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 15:12:48 +00:00
euzuro
6f2818252c reverting accidental commit from r7584
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7585 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 14:57:01 +00:00
euzuro
2fb730674a patch to make sure main openlayers map div has neither padding nor margin. done via css thanks to tim's fabulous new class manip patch. r=cr5 (Closes #1179)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-29 14:52:48 +00:00
Tim Schaub
357d65955a Adding functions to manage dom element class names. Use OpenLayers.Element.hasClass, addClass, removeClass, toggleClass for css class name management. r=pagameba,me (closes #1607)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7579 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 21:16:39 +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
crschmidt
5e8b9284a5 MultiMap's API seems to have all-but-disappeared from where we were using it
in the past; the only reference I can find is a' call us and get a quote' 
number. For now, just removing the tests from run-tests until we figure out
what to do.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 20:47:08 +00:00
euzuro
300697db04 Fixes the issue where a container div around the map is setting the text-align to something other than 'left'. for openlayers to work, the text-align for the viewport *must* be set to 'left', so we specify that in the default style.css. (Closes #1116)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-28 20:40:28 +00:00
ahocevar
a885313336 don't set the cursor to "inherit" in the VML renderer. r=pgiraud (closes #1624)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7554 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-21 14:37:44 +00:00
pgiraud
7c23659f24 handlers test are not reflecting the reality, we now simulate a click, move then click \n
that way geometry bounds are cleared, and the tests don't fail in IE6 anymore (See #1602), r=ahocevar,crschmidt (Closes #1623)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-21 13:57:07 +00:00
ahocevar
da1490dbe6 "Vector features won't draw in IE if features are very far outside the visible extent". r=elemoine (closes #1602)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7546 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-18 12:24:46 +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
Éric Lemoine
67a97a3f07 ND comment fix, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 19:23:22 +00:00
pgiraud
79552513ea the number of tests were wrong while launched in IE6, r=tschaub (Closes #1520)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 15:23:51 +00:00
pgiraud
98dc4001f4 removed extra comma (IE complains), no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 14:35:15 +00:00
pgiraud
bcf870a201 add a specific text-align css rule so that we don't have weird behavior of vector features in IE, r=elemoine,pagameba (Closes #1610)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-17 13:21:51 +00:00
Paul Spencer
eb06b8769b Closes #1617. Update docs to reflect correct property name for marker icon url, (thanks to Thomas Petazzoni for pointing this out). r=pagameba.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-13 11:54:25 +00:00
Éric Lemoine
896994fb22 fixing tests/Lang.html, p=fvanderbiest, r=me (closes #1601)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-11 19:32:38 +00:00
pgiraud
cf0f651442 typo, strokeRadius doesn't exist, it's meant to be strokeWidth
no functionnal change

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7487 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-11 11:44:10 +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
crschmidt
bd2de628d3 not sure if this is right, but adding in a link to the metadata about
each entry. This seems to fix the issue reported earlier, that the links
in the example list are broken.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-08 12:47:30 +00:00
Tim Schaub
49084f8045 Adding Traditional Chinese dictionary from Jian Ding Chen (timchen119). r=me (closes #1609)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 22:29:30 +00:00
Tim Schaub
ad5b0ef0a4 Build configurations with include sections don't need exclude sections.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 22:23:32 +00:00
Tim Schaub
746892e9d9 Looking a little harder for ElementTree.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 20:39:37 +00:00
Tim Schaub
d30cad92dc Adding a few example descriptions, removing a redundant example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 16:49:17 +00:00
Tim Schaub
44613c8c49 Unused function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 14:34:07 +00:00
Tim Schaub
514e4f8fa1 Adding title, id, updated, and author elements for valid atom.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 14:32:55 +00:00
Tim Schaub
c240ddc1b3 No additional markup in title or shortdesc please.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7469 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 13:44:56 +00:00
Éric Lemoine
5e36c6e107 getChildValue() on GeoRSS format is slow, p=edgemaster, r=me,crschmidt (closes #1600)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-07 07:02:27 +00:00
Tim Schaub
0d2b2dd893 Googlebot doesn't seem to like these relative urls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7463 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-03 20:48:46 +00:00
Tim Schaub
8329df7c46 French dictionary entries from François Van Der Biest. Thanks for the contribution. r=me (closes #1601)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-27 16:08:33 +00:00
crschmidt
7af0cd563e getFullRequestString is used for getfeatureinfo a lot. Make it an API function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-27 14:46:53 +00:00
crschmidt
70276af0d1 mini dotfile generator. Not pretty, but sort of works.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-27 05:19:48 +00:00
crschmidt
656da076a1 Add OpenAerialMap TMS usage example to spherical mercator layer, since it's
been requested three times today from different places (!)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-26 19:58:34 +00:00
ahocevar
8df1e4074a made example work in IE
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-26 19:34:52 +00:00
Tim Schaub
2d86212155 Patching Test.AnotherWay to use importNode in html_eq. r=crschmidt (closes #1376)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 20:40:44 +00:00
Tim Schaub
8773d98834 Adding OL.String.isNumeric method to test for numeric strings. r=crschmidt (closes #1441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7451 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 20:37:29 +00:00
crschmidt
351b3b756b Minor doc update to clarify that mergeNewParams handles reloading the tiles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7450 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 14:14:55 +00:00
ahocevar
23aeac7697 modified georss-flickr example to make use of Layer.GML with format option instead of adding the features manually after parsing them using Format.GeoRSS.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7448 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-25 08:32:19 +00:00
Tim Schaub
2fdee6eabd Adding an example of StyleMap use.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-24 19:13:47 +00:00
Tim Schaub
2ce26c4251 excuse the typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-23 18:31:07 +00:00
Tim Schaub
f7a798d810 Looks like google doesn't like the relative link with a nested sitemap.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7434 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-23 18:29:42 +00:00
Frédéric Junod
f8bf59445c Use css sprites technique to simplify the NavigationHistory controls. r=tschaub. (Closes #1555)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-23 06:56:58 +00:00
crschmidt
8f778d8a0c minor doc changes to describe that format conflicts with
featureClass/vectorMode:false.  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7417 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 14:37:14 +00:00
crschmidt
b8d81e7917 Expand on a patch by Edgemaster to support non-XML vector formats via the
current XML layer. This patch rearranges the reading of the document from XML
so that it is done later on, building on the work in #1575. It also adds tests
for the two cases that aren't currently tested: 

 * Vector Mode with non-XML format
 * non-vectormode with XML DOM passed in

Tests continue to pass, confirmed via manual inspection as well as the tests.

(Closes #1575) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 14:23:33 +00:00
crschmidt
45b87bc02d SRS sent with WFS requests should match projection of requested extents.
(Closes #1537)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 13:27:16 +00:00
crschmidt
2d66f80b16 Previous commit was courtesy Paul Smith; adding to authors.txt.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 13:09:56 +00:00
crschmidt
e4ada9ea2f WKT Format reprojects geometrycollection components twice. Fixed by anonymous
contributor. (Closes #1554) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-21 13:09:23 +00:00
Tim Schaub
96aa44f516 Adding dictionary for norwegian bokmål. Thanks for the contribution bobkare. r=me (closes #1598)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 17:18:06 +00:00
Tim Schaub
868b6055b3 Invoking the trivial change clause, removing an extra word from the getLayerWarning in the English dictionary. Thanks bobkare for the catch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 16:59:28 +00:00
crschmidt
6135c8daab several minor coding standards changes. no functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 11:56:17 +00:00
ahocevar
6d37e8bdf0 change the default cursor for vector features from "" to "inherit" because FF3 complains about "". r=pgiraud (closes #1595)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7395 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-20 09:22:39 +00:00
crschmidt
1827ace4cd "GeoRSS layer triggers loadstart event twice", from Bart. Includes tests.
(Closes #1580)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-19 22:08:10 +00:00
crschmidt
c2b892acb9 Committed in wrong directory; this was meant to go to the sandbox. Reverting with
'svn merge -r 7381:7380 .'


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-19 18:45:22 +00:00
crschmidt
b78e26e9f0 break out post-rendering into seperate function to be defined in page. This
removes the tie between the LayerSwitcher and Ext that I had in my first
commit. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-19 18:44:25 +00:00
ahocevar
9724b0a214 "Draw bug in OpenLayers.Handler.Box with firefox". Now always set style.left and style.top, so lost events won't result in an incorrect box any more. r=me (closes #1579)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-18 09:33:55 +00:00
pgiraud
4340867918 add a map getUnits method, r=ahocevar (Closes 1591)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7374 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-18 08:57:02 +00:00
Tim Schaub
5f42b862ba WFS layer requires WFS tile.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-16 21:04:43 +00:00
Tim Schaub
569397a063 comment change only - since this breaks our doc building, removing the suggestion
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7353 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-12 19:06:39 +00:00
Tim Schaub
830f1e0cf7 ajax requires xhr
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 23:33:50 +00:00
Tim Schaub
a98aacedd2 Adding px units where appropriate in style properties. Thanks Wally Atkins for the original patch. r=me (closes #1582)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 20:39:03 +00:00
Tim Schaub
25af1e45cc Including the change in tests that satisfied IE. (see #1565)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 20:25:08 +00:00
Tim Schaub
8a7522fe68 For now, we will point the requires directive at the XMLHttpRequest.js script. (closes #1581)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7339 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 15:52:56 +00:00
Tim Schaub
480bc04cf8 excluding dictionaries from builds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 15:39:23 +00:00
Éric Lemoine
507183aa87 add missing @require's
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 13:37:08 +00:00
Éric Lemoine
558866d190 there are missing @requires for the new XHR, patch from pgiraud, r=me (closes #1581)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-10 13:00:49 +00:00
Tim Schaub
3c70e78e47 Adding cross-browser XMLHttpRequest functionality and convenience methods around it in the OpenLayers.Request namespace. Deprecating OpenLayers.Ajax.Request. Full support sync/async requests using all HTTP verbs now. r=elemoine (closes #1565)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 19:51:38 +00:00
Tim Schaub
c3ca41b3be The text format conditionally sets values for feature.style.graphicXOffset and graphicYOffset. If these are not defined in parsing, we confirm that using the non-identity operator with undefined. Later, it might make sense to confirm these values are actually numeric (see #1441). This keeps an icon.offset from inadvertently getting created with NaN values later on. r=elemoine (closes #1571)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 19:11:03 +00:00
Tim Schaub
de6ce111c9 Adding support for TextSymbolizer writing in the SLD format. Thanks to Bart for the original patch. This provides basic expression handling for text labels. Read support later. r=ahocevar (closes #1542)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 17:18:35 +00:00
Tim Schaub
bed7f208ab Fixing Util.getRenderedDimensions so it assigns units to positional values. Thanks Wally for the report. r=euzuro (closes #1570)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-07 15:17:10 +00:00
ahocevar
aa486090f1 Implemented rotation of externalGraphic vector point features. r=tschaub (closes #1433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7324 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-06 18:42:44 +00:00
Tim Schaub
6670fb6cfd Adding Italian dictionary. r=me (closes #1573)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7322 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-06 16:11:10 +00:00
Tim Schaub
8f593e332c adding quotes for clarity in failure messages
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-06 07:09:55 +00:00
Tim Schaub
ae52f20fc9 Adding Brazilian Portuguese dictionary from Pedro Simonetti. r=pspencer,me (closes #1519)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7312 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 20:48:04 +00:00
Tim Schaub
74f4338fe0 Adding a bit of flexibility to extend and applyDefaults. First argument can now be undefined. r=pspencer,elemoine (closes #1564)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7311 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 20:37:40 +00:00
Tim Schaub
0ecb973e1c making the map big enough for the layer switcher
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 15:48:24 +00:00
Tim Schaub
c10347fa87 correcting the test count and not running the test for inline-block where alpha hack doesn't apply (closes #1520)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-05 15:45:03 +00:00
crschmidt
66a19c70ef Fix for GMaps layers to display in correct position when they were originally
loaded as the not default layer, or the map is resized while the gmaps layer is
hidden. Patch put together by Edgemaster (thanks), (Closes #830)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 17:19:48 +00:00
crschmidt
57237e8a58 Fix for "Util.modifyAlphaImageDiv makes hidden elements reappear in IE6.".
Patch by jwpage. (Closes #1520) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 17:11:24 +00:00
crschmidt
87f26c231e Use the maxExtent of the layer in Grid layers instead of the maxExtent of the
map (since the two can differ). Patch from kleptog. (Closes #1552)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7298 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 16:56:41 +00:00
Tim Schaub
dd4f923c8d adding Swedish dictionary from nilsw. (closes #1523)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 00:10:22 +00:00
Schuyler Erle
cd5c316eba Permalink requires ArgParser. Arg!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-30 09:16:39 +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
Éric Lemoine
7f8c5d0c13 geometry-less vector features aren't cloneable, r=pspencer (closes #1557)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-22 13:42:23 +00:00
euzuro
069a72b5e7 add feature to markers layer, not to image layer. thanks to stephen w. for spotting this.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-21 13:23:30 +00:00
Frédéric Junod
d40f372742 Simplify olControlEditingToolbar styles by regrouping common attributes, r=crschmidt (closes #1388)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-20 14:07:01 +00:00
pgiraud
815e55888a context can now be given as argument in StyleMap.addUniqueValueRules()
this, for example, allows user to access to properties that are not part of the feature attributes.
r=elemoine (closes #1548)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-19 13:34:35 +00:00
Éric Lemoine
34ff282397 ND changes in the modify feature control. Thanks ahocevar for catching the erroneous comment in handleKeypress. No fonctional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-17 20:11:45 +00:00
crschmidt
0978e6cfa7 Fix mistake in documentation: idx -> delta. Reported by aboudreault on IRC,
no functional change.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-15 14:14:32 +00:00
pgiraud
078deb2ffe exit the panTo method if the new center is the same as the current one, r=crschmidt (closes #1507)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-14 08:11:01 +00:00
pgiraud
5e3afa79f5 doc typo, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-14 06:45:44 +00:00
Tim Schaub
6474539aad moving css for save img to default style.css
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 21:40:14 +00:00
Éric Lemoine
e02e7504c5 MousePosition: numDigits inconsistency, reported by kthy, patch by kthy, additional test by me, r=me (closes #1544)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 20:52:01 +00:00
Éric Lemoine
bc56ec9afa fix typo in modify feature test name (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 20:48:24 +00:00
ahocevar
45485246b8 Divide/multiply PointSymbolizer's Size by 2 on read/write to match OpenLayers symbolizer's pointRadius. r=elemoine (closes #1545)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 20:26:14 +00:00
Éric Lemoine
35743801dc for some reason, the html document was included twice
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 19:51:58 +00:00
crschmidt
7934ebd82a Add note for users accidentally viewing source in the frame to tell them "go
read the source to the example, *not* this source." 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 18:56:25 +00:00
pgiraud
c5c4f26b92 doc typo, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 11:30:42 +00:00
Frédéric Junod
8572cdadf3 Fix typo in shortdesc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-13 06:28:55 +00:00
crschmidt
b1a2122619 Minor fixes to marker documentation. r=me, (Closes #1532)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-11 18:36:21 +00:00
Tim Schaub
8cf0266a1f no post on other proxy, I give up
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 05:43:28 +00:00
Tim Schaub
92c224f1fa and a couple new images
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 05:35:10 +00:00
Tim Schaub
1aab3aa3d2 a bit of style and the more generous proxy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 05:20:59 +00:00
crschmidt
181efd8ed4 allow for use of sigma.openplans.org through proxy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-10 02:11:48 +00:00
Tim Schaub
a387cbba51 say it isn't so
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 23:42:15 +00:00
Tim Schaub
607ff5d0d8 a horrible, yet apparently working, wfs-t example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 23:25:46 +00:00
Tim Schaub
78edef0699 desperately outdated
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 22:12:15 +00:00
crschmidt
0768d5a558 fix proxy URL
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 21:59:25 +00:00
Tim Schaub
d4e879df1c using remote wfs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 21:52:02 +00:00
Tim Schaub
3fdead4fb2 sort examples by modified time and add atom:updated element
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 20:29:07 +00:00
Tim Schaub
bf06c9b305 the example parser now also kicks out a basic atom feed, example list page links to this feed
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 19:20:06 +00:00
Tim Schaub
dea578b7fc exclude example-list.html from list of examples - this is getting fragile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 17:01:48 +00:00
Tim Schaub
92c092c598 keep filter at top, parse query
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 15:02:31 +00:00
crschmidt
447eaf2936 add smarter tool for updating the dev dir on OL.org in a better way. Specifically:
* Check whether the reision has changed
 * if it has:
   * rebuild the examples.js
   * Rebuild the singlefile, copy it
   * Change all the examples to use the singlefile
   * Record the most recent rev 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 03:35:43 +00:00
crschmidt
60d9d17c6a add example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 03:31:42 +00:00
crschmidt
440bd042df no longer uses 2.82 (which doesn't work smoothly with 2.6 anyway)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-09 02:45:42 +00:00
Tim Schaub
9cf5153163 updating example list with new jugl style and giving jugl a license
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 22:10:49 +00:00
Tim Schaub
4b99350be1 exampleparser.py now produces examples/example-list.js which is used by examples/example-list.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 17:49:03 +00:00
Tim Schaub
0340bf0a4e small map big bar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 09:29:13 +00:00
Tim Schaub
c4ed9a708b since the examples.html is broken with the new examples.js structure and I don't know when or how often the magic update occurs, I'm creating an examples2.js until I can talk to the magician
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 09:03:43 +00:00
Tim Schaub
c6d8d6d559 sort by words matched then by frequency
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 08:56:38 +00:00
Tim Schaub
8eee248117 create word index from examples and use it to filter example list
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 08:27:54 +00:00
Tim Schaub
c350fd6810 giving examples some style
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7095 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-08 08:15:07 +00:00
Tim Schaub
c36ac497dd doc/examples.html update
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-07 23:50:26 +00:00
Frédéric Junod
3f63622c36 Change build.sh to build.py in build/README.txt. Reported by jwpage. (Closes #1538)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7065 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-06 05:36:35 +00:00
Éric Lemoine
9190e24bcd Cannot modify a feature (linestring) that have two points at the same position, r=me, thanks pvalsecc for the patch and the detailed justification of this patch. (closes #1533)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-05 06:55:07 +00:00
Éric Lemoine
8a6d16e0dc zoomend event isn't described in the ND comments (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7060 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-04 11:48:20 +00:00
Éric Lemoine
03e952bed2 add unit tests related to the beforefeatureadded, featureadded, and featuresadded events
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-02 14:50:14 +00:00
Éric Lemoine
ce76180dae better ND comments, related to #1419 which I'm going to close
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7039 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-30 19:02:36 +00:00
ahocevar
5da18353c6 More detailled comment for Rule.symbolizer. Non-functional change (references #1526)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-28 20:48:35 +00:00
ahocevar
0af3b4ef1b added an additional test to show that the example given by tschaub for #1526 works without modifications (references #1526)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-28 19:01:10 +00:00
crschmidt
7a61e3c7e5 add dependancies to SLD format. (Closes #1530)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7022 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-28 12:56:55 +00:00
crschmidt
89231f1691 Layer.GeoRSS should store the title and description attributes on the
created OpenLayers.Feature object for later access by applications. 
Patch, including tests, written by Ian Mayo, r=me. (Closes #1485)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-27 05:14:50 +00:00
crschmidt
dd92f8c730 Map depends on tweening.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7014 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-27 04:46:00 +00:00
crschmidt
52ae402ebf Fix commas in Click example thanks to helpful patch from Pedro Simonetti.
(Closes #1525)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-23 03:27:00 +00:00
crschmidt
cb3897948a Add vector layer to attribution example, to demonstrate explicitly that
sometimes the 'options' hash for a layer is only the second arg, instead
of the third or fourth.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6987 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-21 17:19:31 +00:00
crschmidt
3553e2a41e Fix to docs (no functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6980 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-20 12:41:49 +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
crschmidt
029e76d965 Fix to Layer.Text to allow iconOffset of 0,0 from Edgemaster, r=me (Closes
#1467)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-16 01:30:40 +00:00
Frédéric Junod
7598e0de43 Fix the 'relativePosition' values enumeration. Docs only. (Closes #1510)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-15 06:49:12 +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
b8478b0ef3 SLD requires rule and filters. This could be made a requirement for OpenLayers.Style, but I'll put it here for now. (see #1514)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-14 17:35:30 +00:00
Tim Schaub
bed262fec4 Modifying the addUniqueValueRules method to use filter subclass. r=crschmidt (closes #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 17:10:45 +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
crschmidt
ffab22ba19 2.6 introduced a regression that maps could not be created when the Object
prototype is extended. Although OpenLayers is not designed to work when this
fundamental violation of Javascript is in place, we can at least not fail
so miserably in this case: this gets us back to a similar level of 
functionality as we had in 2.5. This was brought up by a user working on 
a viamichelin layer, which apparently extends the object prototype (bad!),
and fixed in conjuction with tschaub. r=pgiraud,tschaub (Pullup #1502)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6832 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 16:06:23 +00:00
Tim Schaub
cadc54cc4e Fixing panning for odd-sized viewports (broken in r6492). This makes map.getViewPortPxFromLonLat return fractional pixel values. To get integer pixel values, use map.getPixelFromLonLat. A better solution may be possible in the future. r=crschmidt (closes #1503)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 15:54:01 +00:00
Tim Schaub
d2079fb927 Updating layer opacity example with url for USGS wmsconnector.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 13:57:48 +00:00
Tim Schaub
67b796d88b Dividing base types into namespaces (docs only). (see #1504)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 12:33:26 +00:00
crschmidt
ac181918a2 these should not be API properties. The only API Propety should be
getLonLatFromPixel: these are internal methods, nto designed to be used
by users.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6828 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 10:58:22 +00:00
ahocevar
ada641d866 Changed StyleMap constructor so that all render intents will be set if only one Style object or symbolizer hash is passed. This is the first patch attached to #1498, which got slightly more votes thaan the second one. r=crschmidt,tschaub (pullup #1498)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 09:12:09 +00:00
crschmidt
830b640d4a Add xml_eq to auto tester
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6826 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 02:18:47 +00:00
Tim Schaub
a56e11c1ed Opera doesn't need the sniffing, so neither do I. (see #1501)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 05:11:10 +00:00
Tim Schaub
cc100ad6ea Taking advantage of the xml_eq test method. (closes #1501)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 05:04:30 +00:00
Tim Schaub
4b88c16e10 Correcting dependencies for the SLD format. (see #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 04:37:36 +00:00
Tim Schaub
2db5c4ea83 Removing the Rule directory. (see #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6821 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 04:34:35 +00:00
Paul Spencer
dc69fc5360 Closes #1490. Add comment to make it clear that callers of createPopup must not call destroy on returned popups but rather use the feature.destroyPopup method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 02:04:28 +00:00
Tim Schaub
1091e34c0b With dramatic flourish, I'm modifying 21 files with 1033 insertions and 815 deletions between release candidates. This moves all rule subclasses to a more natural home as filter subclasses. Also adds tests for SLD write and corrects a handful of issues there. Apologies to all who lose sleep over this sort of thing. r=ahocevar,crschmidt (closes #1492)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-08 00:13:45 +00:00
Paul Spencer
d7bbcab4df spelling mistake in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6810 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 18:38:13 +00:00
ahocevar
7251cb438f fixed typo: replaced styleVirtual with virtualStyle, so it matches the API property. r=crschmidt (pullup #1495)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 08:07:25 +00:00
crschmidt
53fb443819 Replace the regular expression used in Format.JSON with one which is longer,
but apparently more friendly to braindead browsers. This allows Safari 3.1
to parse long JSON strings  (>26k), which was not possible with the previous
regex. r=euzuro (Pullup #1493)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 04:22:35 +00:00
euzuro
e84f3d6181 fix issue where we try to createblocks without a proper this.relativePosition. Robustness++. (Pullup #1479)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 04:09:46 +00:00
crschmidt
1b269f06f8 2.6 accidentally broke behavior when clicking on the panzoombar. Thanks to Linda Rawson's report of this issue, this is now fixed, by moving the Math.floor call to a different part of the code. r=euzuro (Pullup #1486)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6799 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-07 04:08:33 +00:00
ahocevar
07b72def92 removing duplicated html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-06 17:07:03 +00:00
crschmidt
797c57586a The FramedCloud popup throws an error if you attempt to call setContentHTML
before you add the popup to the map. To prevent this, don't call construct
or updateBlocks if relativePosition is null, to prevent this error message.
r=elemoine, (Pullup #1479)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6765 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-02 14:08:01 +00:00
ahocevar
f95f280dc7 changed vml namespace prefix from "v" to "olv" to avoid conflicts with other libraries that use vml. r=pgiraud,crschmidt. (Pullup #1477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-02 13:03:23 +00:00
Éric Lemoine
72be27ac1b FF/Windows < 2.0.0.13 reports "Illegal operation on WrappedNative prototype
object" when calling hawOwnProperty if the source object is an instance of
window.Event. r=crschmidt (closes #1480) (Pullup #1480)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6763 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-02 11:53:20 +00:00
crschmidt
67aca311a9 need to check if we have a center set or permalink won't work.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 13:27:29 +00:00
ahocevar
d94e408084 now also committed the removal of the imageSrc property definition in Popup.FramedCloud. avlee's original patch is perfectly sane. Sorry for the confusion. Thanks elemoine for the hint. (references #1475)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6751 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 07:18:26 +00:00
ahocevar
5fbfb504f4 Set the imageSrc bevore the super class is initialized in Popup.FramedCloud. Thanks avlee. r=elemeoine,me (closes #1475)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6750 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 07:08:07 +00:00
Paul Spencer
d15ab68360 quick lint before rc1, only some missing missing semi-colons.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6748 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 00:14:34 +00:00
crschmidt
2fbb96099b apply VML rendering fix from andreas, since we're about to kick off RC1
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6747 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 23:01:49 +00:00
crschmidt
8aa4af76e0 Calculating the FramedCloud path at load time leads to not respecting the
ImgPath variable if it is set, because it can't be set before the 
OpenLayers.js file is loaded. Move ImgPath calculation into initialize(),
so that it is picked up correctly. Thanks, fvanderbiest! (Closes #1473)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 14:17:58 +00:00
ahocevar
f5af355a17 Popup close image is now in the theme's img folder (closes #1472)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 11:24:28 +00:00
ahocevar
b1a9f9b662 move close button image for popups into the theme (references #1472)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6732 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 11:23:15 +00:00
pgiraud
d225c8b42a r6673 introduced typos in this file resulting in not valid html code
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6731 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 09:33:49 +00:00
crschmidt
0f35350920 Add sizes to a couple of the sundial images, and zoom into show two of the
ones we hae sizes for to create a more compelling first impression.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 06:19:43 +00:00
crschmidt
a53dbf6cda Moving sundials kml into kml subdir
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 06:10:29 +00:00
euzuro
c839d7be10 sorry, forgot about this jpg
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:55:45 +00:00
crschmidt
f3d81983dd Add 'allowSelection' option to controls, to determine whether they allow
selection. Use CSS ClassName in FF, and onselectstart attribute in IE, to
control selection. Fix inappropriate overriding of className in some Control
subclasses in order to let this work. Prevents accidental selection of controls
in IE and FF. r=euzuro. (Closes #1378)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6727 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:55:12 +00:00
crschmidt
1c2dc204c4 Use framedcloud popups, because they're awesome.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6726 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:37:39 +00:00
crschmidt
e6c3d695ad bring back changes from r6718 that i accidentally blew away
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:32:56 +00:00
euzuro
3e348f450e fix up tests, remove _01_. (Closes #1387)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:31:28 +00:00
crschmidt
0d6174db7f Note to self: when moving all test files, *also* move the location of those
files in the test plan. (in other words: oops.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6723 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:16:11 +00:00
crschmidt
ce1e4d81ea Another bad location
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6722 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:14:16 +00:00
crschmidt
62d1ec19fc missed these files in the initial move
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:13:25 +00:00
crschmidt
a3b84b5d23 update path
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6720 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:12:47 +00:00
crschmidt
0244858054 bring back r6710 now that popup changes are in
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 05:03:49 +00:00
euzuro
463dc45fbb Adding support for new generation 'framed' popups. This patch includes numerous improvements to the main popups, including the addition of autoSizing, panIntoView, and full support for overflow:auto of the contents div. Thanks go out to the CloudAmber folks, to Pierre in la belle France, to the guys at TOPP and of course, to senior cr5 for his patience and help in the last and final stretch. this is a huge improvement in the popup arena and couldn't have been done without the broad help of everyone out there in the community. Thank you everyone for making this possible. Big step for OpenLayers. (Closes #926)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6718 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 04:43:36 +00:00
crschmidt
0fa07edb04 Firefox 2.0.0.13 changed behavior iwth regard to loading files relative to an
iframe included in a page from matching every other browser to matching IE.
Rather than try and guess what's going to happen with this in the future, at
the moment, just duplicate the data, in hopes of a more sane solution coming 
along in the future for all our data loading needs.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6712 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 02:41:26 +00:00
crschmidt
69ca5c7fdd Revert r6710: The new popup coe is going to need to change tests, so this
needs to wait.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 02:12:03 +00:00
crschmidt
02bbd43687 Since we've now completed all the work that is including new tests in 2.6, move
tests around. (See #1387) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6710 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-31 01:57:38 +00:00
crschmidt
7a7ab7109b Path Handler can result in selection of map in IE (Closes #1410), with patch + research from bjorn (hooray!)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-30 22:03:29 +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
Tim Schaub
d46f884201 Promoting the map.layers property to the API. Assuming this meets the approval of other devs, please roll back if not.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6661 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-28 16:58:21 +00:00
crschmidt
e0aae7f946 Move to the latest google api to pick up smooth dragging support
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-28 14:51:22 +00:00
Tim Schaub
3b267f5334 SLD format rewrite. Adds a versioned parser with read and write support. This does not come with full support for ogc:expression parsing, but makes for easy future enhancements. r=ahocevar (closes #1458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-27 17:18:05 +00:00
crschmidt
6b1903b5a3 Improve performance when not using transitions by not forcing a reflow,
which can slow rendering significantly when many layers are in place.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6638 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-27 13:01:25 +00:00
crschmidt
793fa3444b Add support for Safari 3.1 SVG version strings: Safari got more 'honest' about
what it supports, at the cost of breaking OpenLayers Vector layers. This looks
for a more 'basic' SVG featureset, as recommended by a Webkit developer.
r=pagameba (Closes #1463)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-25 17:29:11 +00:00
Paul Spencer
19da92a321 Re #1451. Re #1456. Change the way ScaleLine respectZoom is tested to test if the maxWidth of the control is respected at all zoom levels with two separate map units and with a custom maxWidth value.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-24 13:17:34 +00:00
Tim Schaub
66e89b9bf0 Making the feature handler a dependency of the SelectFeature control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 18:55:26 +00:00
Tim Schaub
f07e0ccda6 Adding an extra check for IE, where request.responseXML is true on occasion even if the documentElement doesn't exist. r=crschmidt (closes #1428)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6573 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 17:34:27 +00:00
crschmidt
03fc6aacd4 FixedZoomLevels subclassese don't propertly set min/max resolution, so
calculateInRange always returns false, so the layers can never be displayed
(due to recent code): Fix calculateInRange by setting min/max res. r=tschaub,
(Closes #1457) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 17:31:58 +00:00
crschmidt
cc8f3d2319 Use the more modern click handler to interact with click events rather thanregistering directly on the map. This gives more flexibility and functionalityto applications, and should be the preferred way to handle these events goingforward.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-21 15:45:54 +00:00
Tim Schaub
4b02bc5ab1 Adding Czech translation from jachym. Only en.js is included in single-file builds. Edit your configuration for a single-file build with translation support. r=me (closes #1454)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-20 18:16:00 +00:00
Éric Lemoine
ce321ccea3 dragging mode of modify feature control is broken. r=crschmidt,tschaub. (closes #1418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-20 07:26:21 +00:00
Paul Spencer
8b759ab1d6 Closes #1451: change test to be (hopefully) map unit independent. r=crschmidt.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6557 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 21:09:53 +00:00
crschmidt
2694905155 Fix mousewheeling on eventpane layers. r=tschaub (Closes #1438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6556 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 20:53:59 +00:00
euzuro
9f425430ef removing extraneous lines from getParameters() function (r=tschaub) (Closes #1450)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 20:38:25 +00:00
Tim Schaub
3cc419aada Fixing OpenLayers.Style.createLiteral to work with all strings. r=ahocevar (closes #1439)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-19 19:23:15 +00:00
Frédéric Junod
410cd22976 fix doc typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-18 08:44:40 +00:00
Tim Schaub
88c449736c correcting namespace for xlink
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 20:09:15 +00:00
Tim Schaub
8d4a03cbbc Natural Docs menu update
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 18:40:48 +00:00
crschmidt
ac7172bec7 If you call setVisibility(true) on a layer which is out of range, the layer's
visibility won't change, but the tiles will be displayed anyway, in the 
wrong position. Instead, prevent tiles from being displayed at all. r=ahocevar,
(Closes #1429)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 15:53:13 +00:00
ahocevar
ec3c55606c added navigation control so users can at least play around a little
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-17 09:58:27 +00:00
Tim Schaub
32d7e9d92b Correcting typo in message thrown by format. c=trivial
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-16 19:52:17 +00:00
crschmidt
cd27825fb5 Add format-level layerOptions configuration property to WMC parser, to support
the configuration of user-preferred layer options in order to allow 
configurability of options like buffer, ratio, etc. r=ahocevar (Closes #1411).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-16 12:21:15 +00:00
Tim Schaub
ca4a8d1ebf Demonstrating the use of the MousePosition control with the Hover handler.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6533 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-15 00:16:37 +00:00
Tim Schaub
6e9b661af1 Avoid infinite loops with Not elements in SLD parsing. c=ahocevar (closes #1440)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-14 21:07:39 +00:00
Tim Schaub
adb7255910 Util doc updates.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 16:58:01 +00:00
crschmidt
0da40191ec Rolling back patch from #751: this broke IE when used (destroy tries to
destroy slider even though it was never created). Thanks to the tests we
caught it, but this patch needs reworking.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 13:44:09 +00:00
ahocevar
31f769b61a Prevent SVG renderer from drawing features in the upperleft corner of the map pane when coordinates are outside range. The fix in r6380 did not work properly. r=crschmidt (closes #1360)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6515 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 09:49:43 +00:00
crschmidt
9b1cf1ef01 showPan & showZoomBar options in control PanZoomBar, to turn off the
various chunks. In the future, we'll use this to have a single control 
integrating panzoom and panzoombar, but not quite yet. Revamped patch 
from kkempfer (thx!) with tests. r=me (Closes #754)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-13 04:20:53 +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
Tim Schaub
106e73618a Adding an args argument to OpenLayers.String.format. This lets you set context properties as functions that will be executed with the given arguments where tokens match. For styles, this means you can specify a context that contains functions that return some value based on the feature being styled. See the styles-context.html example for use. r=ahocevar (closes #1434)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6512 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 22:24:33 +00:00
ahocevar
7a25a14f93 propertyStyles of a Style's default symbolizer will not be parsed unless rules are specified. r=tschaub (closes #1432)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 16:42:16 +00:00
crschmidt
0768fa4d27 Fix tileMonitoringHooks test: faked-out tile was missing an unload method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 16:04:23 +00:00
Tim Schaub
ae5ec139b9 Cruft begone.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 15:40:02 +00:00
Tim Schaub
ba4a33b478 Since the name google.html should be reserved for our canonical Google example, I'm moving this reproject stuff into a google-reproject.html example. The google.html example now shows the various Google layers available. The google-reproject.html example demonstrates the reproject trick. I find examples with different indentation on every line a bit hard to read, so I'm straightening that out as well - and removing bits that were not used or not relevant to the examples.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 15:34:05 +00:00
Tim Schaub
a54f36650c four tabs for spaces
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6497 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 14:51:37 +00:00
Tim Schaub
90d824041c No longer do we force re-parsing of request.responseText for WFS, GML, and GeoRSS layers. Thanks avlee for spotting this performance hit we've been taking since at least r174. r=crschmidt (closes #1428)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 14:21:27 +00:00
crschmidt
cde39e98ae Improve the handling of tile events with regard to tiles being unloaded before
their load events fire by adding an 'unload' event to the tile, and calling
it from the places where we're about to stop listening to events. In the longer
term, it might make sense to have this be automatic, but this resolves issues
with map resizes screwing with tile events, and reverts a previous,
incomplete solution to solve a problem with untiled tiles not resizing when
the map size changes. r=ahocevar, checked out by bartvde (Closes #1417) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6495 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 12:53:34 +00:00
crschmidt
819825d8c3 Apply patch from rdewit to fix parsing of hotSpot values on Icon objects
in KML styles. This fixes issues reported with the location of icons when
using KML styling. r=me (Closes #1426)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 12:49:47 +00:00
crschmidt
98e7bd3db6 Add David Overstrom to authors for his help on #1402
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 18:35:28 +00:00
Tim Schaub
d12fd7c04c Smooth GDragging at last. Thanks to overstdr for digging up the getDragObject method. With v2.93 and later we no longer get flickers on panning. Non-API smooth dragging is no longer supported. r=crschmidt,me (closes #1402)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6492 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 18:32:17 +00:00
crschmidt
008c820e2b Clean up google example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 18:14:18 +00:00
Tim Schaub
6d59830d0e Documenting onModification* methods as deprecated in ModifyFeature control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6490 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-11 16:02:39 +00:00
Tim Schaub
606347cdc9 panning test updates
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-10 01:25:44 +00:00
crschmidt
d0b4a17116 Add improved navigation control support for disabling zooming with the
mousewheel. Original from sbenthall (yay), example and more code from me, tests
from elem. r=elemoine.  (Closes #1339)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6462 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-07 23:04:32 +00:00
Éric Lemoine
6ee694fc2b fix Tile tests (checked with FF2 and IE7)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-07 08:42:03 +00:00
Paul Spencer
3fa5487c37 Re #933. Apply transition effect patch to trunk, many thanks to Erik, Tim and Chris for support. r=crschmidt, tschaub.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 22:50:44 +00:00
Tim Schaub
e7b9a9a41b Adding explicit eventListener unregistering in map, layer, and control destroy methods. Note that this only makes explicit what is already happening elsewhere, but it makes us feel complete. Also throwing in the example I missed in the previous change. r=euzuro (closes #1404)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 18:24:18 +00:00
crschmidt
21c097a297 Add more docs to rectangle
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 15:02:30 +00:00
Tim Schaub
438011bdab No var keyword needed in this scope.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 09:23:10 +00:00
Tim Schaub
0a8aa16f78 Control panels should deactivate all non-toggle type controls before activating a new control. r=me (closes #1414)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6443 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 05:22:18 +00:00
Tim Schaub
e4b7c6de53 The barest of docs for the Google constructor.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 04:58:46 +00:00
euzuro
23a1ce7729 fixinG icon offset issue. thanks to abejenaru for the oriGinal buGreport (r=tschaub) (Closes #1363)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 21:43:41 +00:00
crschmidt
590aa9d74e MapGuide 2.0 (just released) has support for a 'clip' parameter, which is
designed to help performance with non-tiled layers. Patch from madair to
take advantage of this in OpenLayers. Thanks Mike. r=me, (Closes #995)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 21:06:42 +00:00
ahocevar
155d86f070 updated ND comment (see #1417)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 15:11:21 +00:00
ahocevar
0a8ffebb85 resizing the map quickly messes up tile load events (singleTile). Thanks bartvde for the patch. r=me (closes #1417)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 14:41:32 +00:00
Tim Schaub
894c457fdd Adding eventListeners property to layer, control, and map. Setting this property at construction registers the given listeners based on event type key. r=elemoine (closes #1404)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 00:07:46 +00:00
Frédéric Junod
0c03b8e631 Separating jsdoc declarations.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 10:29:08 +00:00
ahocevar
d9cef80589 typo in ZoomBox. Thanks avlee for spotting this and the patch. r=me (closes #1413)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6432 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 10:19:24 +00:00
Frédéric Junod
88b42f0e46 Separating jsdoc declarations. (See #1229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 10:11:32 +00:00
Frédéric Junod
b11d8bbd37 fix ND comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-04 07:09:05 +00:00
euzuro
c7bd58b774 fix stray ND comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-03 18:15:31 +00:00
Tim Schaub
6adeb7c304 ND typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6427 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-03 07:06:27 +00:00
crschmidt
cac0402c92 chagne geo for sigma, since geo appears to be gone/down
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6425 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-01 15:08:04 +00:00
crschmidt
ad97e9b16f Silly patch, doubling up my example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-01 15:06:22 +00:00
Tim Schaub
7001ce1be6 A bit more docs for fractionalZoom.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6423 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 21:13:42 +00:00
crschmidt
e54074e6f1 Improve WFS reprojection:
* Transform bbox back to layer projection
 * Transform commits back to layer projection
r=tschaub, (Closes #1406)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 18:39:37 +00:00
Tim Schaub
05858dc9fb Changing bounds.transform so it works with non-conformal projections. r=ahocevar (closes #1407)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6421 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 17:32:02 +00:00
Frédéric Junod
279af295f1 Add missing ND comments. (non-functional changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6418 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 14:16:10 +00:00
euzuro
bf97a6c0d2 be very very careful about how we deal with the wheel. only take action when over scrollable items or over the main map. all of this is explained in the ticket and patch it is really late and i dont feel like typing it again. basically, this puppy means that scrolling on controls or in popups will no longer zoom the map unwantedly. that is good. thank you cr5 and IRC for taking such care of me. (r=cr5) (Closes #1382)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 08:37:12 +00:00
pgiraud
fde0715f4e add the Quad easing methods for Tween
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 07:31:56 +00:00
Tim Schaub
323de7085b The click and hover handlers need to take care that the event they are handling doesn't get modified before the delayed listeners get called. Appears to only be a problem in IE. Thanks for the catch madair. r=crschmidt (closes #1393)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 07:30:34 +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
crschmidt
5f93cc2b52 panmethod option on map to allow for the turning off of animated panning.
Includes example. All tests pass. r=tschaub. (Closes #1356)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 06:03:12 +00:00
Tim Schaub
6ff86dc756 Checking for properties directly on the prototype since it has been extended already. r=crschmidt (closes #1405)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 05:59:43 +00:00
Tim Schaub
836f037fda The loadURL function now returns something that acts more like XMLHttpRequest should. If you name this return request, call request.abort to abort the request. r=crschmidt (closes #1386)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 00:16:47 +00:00
Tim Schaub
145981c303 Though the structure is not something we promise will not change, the internal context object is now available to those who parse WMC. r=crschmidt (closes #1370)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 21:09:28 +00:00
Tim Schaub
fcd7ecfa3c got ahead of myself in r6399
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 20:21:53 +00:00
Tim Schaub
4107e90c0a sasifying my need for unmixed tabs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6399 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 20:20:23 +00:00
crschmidt
c92527fae5 Improve calls to movestart/moveend so that they happen at the start/end of
moves. This includes fixing pantween to set playing to false after it is
done, and fixing the map to store its dragging state again so we can use
it to figure out when a move has started.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 19:47:38 +00:00
crschmidt
248385ccf4 Make MapGuide tests run in IE. It appears that IE tries to run tests even if they're commented out (at least IE7) in test.anotherway, which is slightly annoying ( to say the least).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 18:31:35 +00:00
ahocevar
2f0382e6f6 * Style and Rule now have separate context properties
* new convenience method addUniqueValueRules in OL.!StyleMap. This can actually be used to achieve what I was trying to show in the example of this ticket's description.
 * some refactoring of OL.Style to remove duplicate code (with tests)
 * a new example showing how to add a "unique value" legend to a point layer using the new addUniqueValueRules method
 * Rule.symbolizer can now also be just a symbolizer, instead of a hash of symbolizers keyed by "Point", "Line", "Polygon". This will make things even simpler (as can be seen in the styles-unique.html example)

r=tschaub (closes #1373)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 17:57:37 +00:00
euzuro
d3294e73fd proper tabbing is the artichoke of a good garden.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-28 00:02:48 +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
Tim Schaub
1b57ea3069 Invoking the trivial change clause, I'm adding a semicolon. (see #1392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 19:05:28 +00:00
pgiraud
ffecbe0594 add a new 'playing' property to the Tween class so that a call to stop doesn't do anything if animation is already finished, r=ahocevar,crschmidt (Closes #1392)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 13:57:13 +00:00
pgiraud
0fc0112e07 remove extra comma, IE was complaining
tests don't seem to pass under IE though

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6383 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 08:46:44 +00:00
ahocevar
16a83026a1 WFS transactions use wrong namespace for Delete. Thanks to Stephen Woodbridge for this fix. r=tschaub (closes #1394)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 00:50:09 +00:00
ahocevar
9c55f8c1e1 SVG renderer draws features in the upperleft corner of the map pane when coordinate outside range. r=tschaub (closes #1360)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-27 00:47:55 +00:00
crschmidt
99265c2581 Add support for MapGuide Open Source layers in OpenLayers. Great work by
Mike Adair on following this one through. Includes example, tests, code, 
etc. r=me (Closes #995)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-26 02:56:40 +00:00
Tim Schaub
3405e97835 Adding more complete style parsing to the WMC format. The format now has support for named, linked (SLD), and inline (SLD_BODY) styles. r=ahocevar (closes #1313)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-24 20:25:27 +00:00
Tim Schaub
b06a8762a4 asynchronous false implies synchronous
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-24 08:02:41 +00:00
Tim Schaub
fa42329b31 Modifying xml_eq so that prefixes for element and attribute nodes are not tested by default. Namespace URI is always tested for both. If you also want to confirm that prefixes are equal, test with options.prefix true. Modifying tests for the XML format to use xml_eq. (see #1383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6344 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-22 20:08:28 +00:00
Tim Schaub
39b2cae514 Adding a xml_eq method to Test.AnotherWay test objects. The function takes two nodes (or strings) and a message. A test passes when got and expected nodes have the same type, the same name, the same namespace prefix and uri, the same attributes, and the same children (based on the same criteria). Otherwise it fails. Failure messages tell you at which child on which node which criteria was not met. (closes #1383)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-22 00:12:07 +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
ahocevar
f34358f1b9 now really fixed this test. The additional assertion (call of Console.warn) occured with non-english browsers, because the language resource could not be found. Setting the language to the default language for this test fixes the problem.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:54:39 +00:00
ahocevar
1f107bde9d fixed number of planned tests in test_Util_getArgs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:15:11 +00:00
ahocevar
9635c8868c exclude additional language resources from the full.cfg build profile. r=tschaub (closes #1372)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:10:14 +00:00
Tim Schaub
db8869e50f Respecting minResolution and maxScale if specified in the layer options. r=ahocevar (closes #1321)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-21 00:03:11 +00:00
Tim Schaub
697da4900d Adding support for fractional zoom to the pan zoom bar. Setting map.fractionalZoom to true allows you to access a continuous range of resolutions with the pan zoom bar. r=crschmidt,me (closes #1288)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-20 23:44:34 +00:00
ahocevar
c3c34751bd Click on overview map raises error in IE. r=tschaub (closes #1371)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6330 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-20 23:40:18 +00:00
Tim Schaub
0a96e9c17b Adding a preaddlayer event for maps. This is triggered before a layer is added. r=me (closes #1220)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-20 23:39:46 +00:00
ahocevar
3dcbeaa351 converting encoding to UTF-8
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6321 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-18 18:49:59 +00:00
ahocevar
505b6fc665 fixed @requires
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-18 18:46:01 +00:00
ahocevar
1f7e97a500 German Translation. Thanks anonymous for that contribution. Some changes were made to the original patch:
* replaced some German terms with English terms that should be more familiar to the average German speaking user
 * removed translations for console messages (which are usually only read by developers), because too much translation of code-related information does not help in understanding a problem
 * apply defaults from Lang["en"] to avoid ending up with dictionary keys in messages.

r=me (closes #1367)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-17 15:41:39 +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
Schuyler Erle
afd0648a2f Add Tiles@Home layer to spherical-mercator example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-17 11:54:51 +00:00
pgiraud
10ee48c84c fixes typo (Closes #1365)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-16 08:20:49 +00:00
crschmidt
1f2a057c5d We have a Format.WFS that works in IE now -- by doing so, it means it is
spitting out a string, not an object, so this patch removes the 
Ajax.serializeToString on the string which was breaking. r=tschaub 
(Closes #1355)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-15 22:42:07 +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
euzuro
bafc8b758b fix nd arguments list
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-13 19:08:10 +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
0d9ab3b3df looking for properties in rules symbolizer may fail. r=elemoine (closes #1362)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-13 12:21:47 +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
crschmidt
dd1f4d1fa9 We split the grid init into a seperate function, and use that as the
controlling mechanism, to reduce code duplication between Grid/KaMap/other
layers that need a different grid origin. r=euzuro (Closes #1349)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 18:24:15 +00:00
Tim Schaub
57f6d9b914 Only destroy events if they are not already destroyed. This is relevant for controls with obligate controls. Since the map thinks it is in charge of destroying controls, and parent controls also destroy obligate controls, control.destroy ends up getting called twice. If someone wants to change the way this is handled, we should have a standard property that lets the map know that control.destroy is the responsibility of someone else. r=crschmidt (closes #1346)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 16:43:47 +00:00
crschmidt
49c7ec2739 Tim points out I'm clearly not running the tests often enough by showing
that the Ajax test fails. Sorry to all; I'm a bad OL dev.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 16:33:23 +00:00
crschmidt
38a6b180ba Map depends on tweening; fix single file builds for users who have
custom profiles. Reported by Bart on the mailing list.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6204 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 14:15:15 +00:00
pgiraud
93b25bf073 It looked like movestart, move and moveend events weren't triggered in a good way while using panTo (with panTween effect), this is fixed by calling moveTo with 'dragging' and 'noEvent' options, and trigering 'moveend' internaly, r=crschmidt (Closes #1348)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 13:55:04 +00:00
Frédéric Junod
32d541641d fix typos and missing documentation in ND comments. (non-functional changes)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6200 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 09:54:21 +00:00
Frédéric Junod
da706ed568 fix ND start tag. (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6196 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 08:08:11 +00:00
crschmidt
f42bb15716 No need for ProxyHost to be in Format.KML directly anymore, since #1350
adds it to Ajax.Request. Thanks, rdewit. r=me (Closes #1354)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 02:39:01 +00:00
crschmidt
416661ecc6 Apply patch from rdewit to fix a typo I missed; thx rdewit. (Closes
#1350)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-11 00:28:42 +00:00
crschmidt
54f85bdb8f Move ProxyHost addition to Ajax.Request instead of
OpenLayers.loadURL. Makes it easier to write more complex 
apps that require ajax.request stuff without duplication 
of code. r=elemoine (Closes #1350)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6184 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-10 20:57:41 +00:00
Tim Schaub
4d6ccf2e50 Closing the panel div.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6183 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-10 20:48:51 +00:00
crschmidt
03248296e7 Set a FID on OSM features. Includes tests. Original patch by kleptog
(thx), r=me (Closes #1351


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-10 16:18:48 +00:00
ahocevar
c70fb21103 Add KML Styling support. Thanks rdewit for this great contribution. r=crschmidt,me (closes #1259)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 20:42:32 +00:00
Éric Lemoine
06571e2cf3 fix indent (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 20:33:47 +00:00
Tim Schaub
db77398339 Thanks Ian Mayo for this nice ScaleLine control. Give your maps a dualie scale line control customizable with CSS. r=crschmidt (closes #1089)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:39:12 +00:00
crschmidt
1bb88a2f13 Make popup text selectable in Firefox. (Closes #1129)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:35:27 +00:00
crschmidt
b4bf9ea9bc Pass WMC options through to versioned methods.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 19:18:02 +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
886b963ce5 Fixed several destroy() methods to avoid running into undefined objects when the page unloads. r=crschmidt,me (closes #1222)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 18:51:48 +00:00
crschmidt
8e2b4956f2 make redraw have a 'force' parameter to allow it to actually add random data to
the params hash to  bust caches. r=ahocevar (Closes #1295)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 18:29:18 +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
crschmidt
431b882630 Don't redraw the single tile if the layer is not visible; it will be redrawn
by setCenter since we clear the grid anyway.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 16:51:39 +00:00
Tim Schaub
bf224d699d Giving all controls an events instance. You can now listen for activate and deactivate on any control. Panel controls do this to know when they should redraw. Navigation history control demonstrates the effect of this change. r=elemoine (closes #1346)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 16:46:02 +00:00
crschmidt
9bfd829512 Rollback patch from #1332, which broke feature creation.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 04:23:54 +00:00
ahocevar
eb5307608a VML fails to render features with undefined pointRadius symbolizer property. r=crschmidt (closes #1345)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 04:00:20 +00:00
Tim Schaub
c52ed952d8 Add navigation history control. This control creates two obligate controls: next and previous. Calling trigger on the next and previous controls steps through the navigation history. r=crschmidt,ahocevar,pgiraud (closes #1240)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 01:27:45 +00:00
crschmidt
05409a35c0 Make default build be full.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 01:19:12 +00:00
crschmidt
60706fc3f9 Refactor Hanadler.Point cancel/finalize to just call a cleanup and pass a
callback type, since otherwise they're the same thing. From sbenthall, r=me
(Closes #1332) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 00:49:38 +00:00
Tim Schaub
de13a7f91f Updating the WFS (transaction) format to add srsName to geometry and include attributes. Thanks sbenthall for the patch. r=me (closes #1344)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:54:24 +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
Tim Schaub
464fb30589 Reset the deal.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:19:09 +00:00
Tim Schaub
bde60b6851 Destroy toys when you're done playing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:14:38 +00:00
crschmidt
10907f2880 In order to make it more clear that users are required to have the theme/
directory to deploy when depending on features which use CSS, and make it clear
how to override the CSS in OpenLayers, include <link rel> ags in all examples.
(Closes #884)  


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 22:19:28 +00:00
crschmidt
6f2a3598be Fix lots of EOL SSTyle line ending problems.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 19:51:55 +00:00
crschmidt
d555835791 Committed the wrong version of this file somehow; this should have been in
the commit for #110.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 19:47:51 +00:00
crschmidt
d6691ed219 missing layer (how did this go away? Nobody knows.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 19:37:54 +00:00
ahocevar
3581276835 Add optional context property to OpenLayers.Rule, so rules can now be evaluated against diffent contexts than feature.attributes. This changeset also renames Rule.Logical.children to Rule.Logical.rules, to make it more consistent with OL.Style. r=crschmidt (closes #1331)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 16:56:48 +00:00
crschmidt
bb26a2601d Add support for animated panning, with most of the work done by Pierre, thx pierre! panTo method now animates when moving. (Closes #110)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 16:28:11 +00:00
crschmidt
3f7bbdfa9c Fix for map destroy doesn't clean up all listeners r=tschaub (Closes #1301)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 16:04:00 +00:00
Tim Schaub
49e0bff93d For controls with multiple handlers, we now tack them on to a handlers object. The base destroy takes care of the handlers. r=crschmidt,uz/2 (closes #1338)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 15:52:03 +00:00
crschmidt
03a827de4d Refactor setCenter to do most of its work through a smarter function called
moveTo. In moveTo, we also have knowledge of whether the event was fired
through setCenter, allowing us to know the difference between an 'internal'
move and an external one.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 13:23:41 +00:00
pgiraud
f6fe7d48d3 adds tween and easing classes (with algorithms from Robert Penner) to handle animation
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 13:09:58 +00:00
Frédéric Junod
1847986723 Correctly add the fill element to the VML node. r=ahocevar (Closes #1312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6080 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 06:51:01 +00:00
crschmidt
db0e03e2bd Layers with the 'alpha' flag set to true never register proper load events, so
they never fire loadend events. r=euz (Closes #1336)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 04:18:13 +00:00
Tim Schaub
99f3fa0d26 By default, the click handler now has a zero pixelTolerance. This means we don't call click if the click includes a drag. Set pixelTolerance to null if you want click called with a drag. r=crschmidt (closes #1335)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 03:24:42 +00:00
crschmidt
fba4528c9a Add further improvements to WFS writing code from sbenthall, to write out
things in IE. (Closes #1278) (again)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 00:56:52 +00:00
crschmidt
a56b84e922 overviewmap needs to set fallThrough to false (Closes #1333)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 00:42:47 +00:00
euzuro
6c2dfdeaf1 we want to keep a reference to the close div in our popups if we make it. (Closes #1334)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6048 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 23:59:54 +00:00
crschmidt
870e196c20 Adding Seb Benthall and Ivan Willig to authors.txt, for their contributions
added earlier today.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6037 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 22:28:18 +00:00
crschmidt
9075aa804c Refactor out names into namespace prefixes for overridability (and to make
the  code slightly less verbose).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 21:54:33 +00:00
Tim Schaub
61f124f214 Only write out min/max scale related properties if they are explicitly set on the layer. Thanks for slapping Safari around a bit with this on crschmidt. Works but still untested there. r=crschmidt (closes #1314)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 21:06:08 +00:00
Tim Schaub
9d045baf71 Changing the editing toolbar to use a single image. Thanks iwillig for the work on this. r=me (closes #1330)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6025 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 20:07:48 +00:00
crschmidt
c75909a45e Don't render features with no geometry. This gives us similar behavior in IE
and FF. There is probably more to this, but we can solve those issues as they
come up: going with this one as is for now. (Closes #1111)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 20:04:42 +00:00
ahocevar
92b4894e33 "Tests Broken on IE6". This adds an additional check that prevents IE6 from complaining about undefined properties. r=crschmidt (closes #1322)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6021 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 19:46:04 +00:00
crschmidt
d52701aec8 Adding a space to clean up diffs for transition patch. (No functional change.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6012 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-07 06:20:50 +00:00
crschmidt
ca5c08ee26 Fix typo in comments.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 23:52:39 +00:00
ahocevar
ae6588140a Race conditions with creation and destruction of OverviewMap. r=tschaub (closes #1320)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 22:49:41 +00:00
Tim Schaub
8d5d8f6d94 Just because I had it open and was looking at 952, I'm shortening test names. (see #952)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6006 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 19:46:22 +00:00
Tim Schaub
98edddb28d More tests for XML format that pass in Safari - confirming nothing except that I have gone nuts
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 16:00:55 +00:00
Frédéric Junod
911a2772a4 Opera version < 9.20 invert the wheelDelta value but version >= 9.20 don't. r=crschmidt (Closes #1193)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6004 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-06 15:34:16 +00:00
euzuro
672d3c4eed give the navigation control a proper destroy and also give it a test file while we're at it. (Closes #1289)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-05 06:34:20 +00:00
euzuro
8311449985 give the wfs layer a proper destroy method (Closes #1256)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5989 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-05 06:12:29 +00:00
Tim Schaub
211a2834de Adding fractionalZoom property to the map. This allows zooming to an arbitrary level, making it possible to have non-discrete resolutions for layers that support it. This property should not be set to true for layers with fixed zoom levels (commercial layers or others with cached tiles). r=elemoine,crschmidt,ahocevar (closes #1243)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-04 06:23:54 +00:00
ahocevar
1faf641806 evaluation of else filter in SLD. r=tschaub (closes #1317)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:48:19 +00:00
crschmidt
a664b6b390 left in too much from source license text
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5977 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:43:18 +00:00
Éric Lemoine
cf87ffc26c Add properties stopClick, stopDown, and stopUp to the feature handler. If
stopClick is true, clicks handled by the feature handler don't propagate to
other click listeners; otherwise handled clicks do propagate. The same kind of
rule applies to stopDown and stopUp. These properties default to true. Thanks
to Attila Csipa for expressing the need for this feature and cooking up the
first patch. r=tschaub. (closes #1266)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5976 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:35:39 +00:00
Éric Lemoine
f9950ec389 This commit solves the following problem with the select feature control: if
you create two select feature controls on the same vector layer, one with
hover:false that handles geometry type A only, and the other with hover:true
that handles geometry type B only, then if you click on a geometry of type A
and moves out of that geometry, the second control will unselect it. r=tschaub
(closes #1221)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:20:39 +00:00
Éric Lemoine
3acc19ae3d The modify feature control destroys the vertex that was dragged in the drag
complete callback. Thus, the drag feature control won't detect a mouse-out on
that vertex and won't deactivate its drag handler. This causes errors because
the drag feature control has a feature to drag but that feature is destroyed
(feature.geometry is null). To prevent this, we make resetVertices explicitely
call outFeature on the drag feature control if the control has a feature to
drag. tschaub did most of the investigation on the problem. r=tschaub,me
(closes #1235)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-03 17:10:03 +00:00
Tim Schaub
5a176d7852 Explicitly check that we know who the parent is before removing child from parent. r=crschmidt (closes #1316)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-02 22:48:37 +00:00
crschmidt
2bb8d7cc8f Add mention that the files have been changed. This is obvious from
context, but the apache license requires us to mention it explicitly. 
(No functional changes.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-02 14:46:04 +00:00
crschmidt
592e1719db Add links to various licenses that we use, in order to come closer to
compliance with those licenses. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5970 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-02 14:38:27 +00:00
Tim Schaub
2259db2225 Correcting typo in the OSM format and adding support for null namespaceURI in IE. r=crschmidt (closes #1318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-01 21:44:43 +00:00
ahocevar
4fc4c6ce4b SLD maps minScaleDenominator and maxScaleDenominator to rule minScale and maxScale. r=tschaub (closes #1297)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-01 21:17:12 +00:00
Tim Schaub
9bb51fb088 Taming the select feature control a bit. Previously, onUnselect was called twice for every unselection. r=elemoine (closes #1234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-01 16:42:33 +00:00
Frédéric Junod
508dc66e6a fix typo in ND comment (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-31 15:05:57 +00:00
ahocevar
152e48a5a4 Cannot switch externalGraphic style on VML-rendered feature. r=tschaub (closes #1312)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-30 22:43:18 +00:00
crschmidt
894589fe7c Docs for Util.js incorrect documented parameter types.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-30 17:07:23 +00:00
ahocevar
8276327d7f sld example does not need a custom select method for Control.SelectFeature any more
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5925 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 23:02:47 +00:00
Tim Schaub
d1d058d30f Removing use of deprecated untiled wms layer from example in favor of layer with singleTile true. (closes #1309)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 21:19:32 +00:00
ahocevar
c3c97be5b2 Create tests for OpenLayers.js. r=crschmidt (closes #1267)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 20:29:25 +00:00
ahocevar
97ec46b15d "_getScriptLocation cannot handle query string". Patch originally by john.pulles@geodan.hl, improved by beau@beaugunderson.com. Thanks! r=crschmidt,me (closes #1263)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5921 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 20:27:54 +00:00
Tim Schaub
44f7ebdc22 Adding Web Map Context document parsing for versions 1.0.0 and 1.1.0. This also adds a cross browser setAttributeNS to the XML format. Thanks bartvde for supporting this work. r=crschmidt (closes #100)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 16:39:05 +00:00
Tim Schaub
a14418f53f Modifying initResolutions so that minResolution and numZoomLevels are respected if they are set as layer options. Note that if only minResolution and maxResolution are specified, minResolution will still not be respected in general. r=pspencer (closes #1300)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5918 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 16:28:21 +00:00
Frédéric Junod
866cfe631d Change OpenLayers.Layer.setIsBaseLayer to trig the 'changebaselayer' event not
the 'changelayer' event. r=crschmidt (Closes #1306) 



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-28 13:10:46 +00:00
Éric Lemoine
221967cc3f Map.setCenter() should not call Layer.moveTo if inRange has changed to false.
With this patch you should no longer see tiles loading if your layer is out of
range or not visible. Hopefully! r=crschmidt (closes #937)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5913 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 22:59:31 +00:00
crschmidt
8487829362 add kleptog to authors.txt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5912 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 18:12:19 +00:00
crschmidt
d597e4f9a9 Because onselectstart is null by default, our logic to set it and
replace it was somewhat lacking. This changes the behavior such that 
using hte drag handler does not totally disable text selection in IE. 
Patch from Bart, r=me (Closes #906)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:48:02 +00:00
crschmidt
ea5e96df85 Add support to set the 'title' property of a control such that it will
be displayed when hovering over the control in a control.panel via its 
panel_div. r=me (Closes #822)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:44:16 +00:00
Éric Lemoine
bd07adbb10 This commit fixes this: once a feature's been selected the "pointer" cursor is
always used when going over it. r=crschmidt (closes #1217)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:26:28 +00:00
crschmidt
5f3e05bb5e Set the fallThrough property to 'true' by default. This seems to have no
adverse affect on the examples, is documented in the 2.6 release notes, 
and will allow for easier display of built-in browser tooltips for 
controls. r=elemoine (Closes #1303)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:10:00 +00:00
crschmidt
83d5461796 Add a seperate method which actually does the formatting in the
MousePosition control in order to allow easier changes in formatting at 
the application level (with less duplication of code). Patch from 
Kleptog, r=me. (Closes #778)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 02:26:36 +00:00
crschmidt
cd266a99e0 Updating example for changed location where osm_id is stored
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5903 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 14:46:12 +00:00
crschmidt
bd7eaeb167 Add support for parsing and serializing OpenStreetMap data. Includes
tests, examples, modification to proxy.cgi, etc. This should allow one
to build an OpenLayers based OpenStreetMap editor with some effort, and 
makes it trivially simple to drop OpenStreetMap data from the API into 
your OpenLayers application. r=ahocevar,elemoine (Closes #1271)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 14:41:41 +00:00
Éric Lemoine
4159d1b1e8 add a manual test showing how OpenLayers should behave with respect to
when it should load tiles and when it shouldn't. As reported in #937
OpenLayers doesn't behave properly today, it breaks Test 1 and Test 3
of this manual test.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 13:36:35 +00:00
euzuro
3ccf5af733 arg parser triggers load of baselayer too early. thanks for the patch, kleptog. i've taken it upon myself to run the damn tests. all pass. (Closes #1290)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-26 00:00:37 +00:00
euzuro
082ff954d6 be more forgiving in removeMarker() -- do not cause script error if marker has already been removed r=cr5 (Closes #1152)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:46:03 +00:00
euzuro
fd321883a8 fix broken test_Handler -- stray try {} statement, presumably from debugging.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5898 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:28:26 +00:00
Éric Lemoine
a68492e003 The deactivate method of the modify feature control calls the unselect method
of its select feature control and passes it the current selected feature (if
any). If that selected feature is destroyed between the time it was selected
and the time the modify feature control is deactivated, the unselect method of
the select feature control will attempt to draw it on the layer while it no
longer has a geometry (it's destroyed!). This patch prevents this from
happening. Thanks to tlpinney for reporting the bug and helping on its
evaluation. r=tschaub (closes #1281) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:18:20 +00:00
ahocevar
45d5fdfd06 SelectFeature and OpenLayers.Feature.Vector.style["select"]: changed Control.SelectFeature to inherit properties that are not set in selectStyle from feature.style. r=tschaub (closes #1260)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 23:13:57 +00:00
crschmidt
8901982955 Fix broken handler test due to r5891 in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5892 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 17:07:15 +00:00
crschmidt
e4ec1b58b0 Cleanup after the Navigation control (at least slightly more)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5891 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-25 01:35:34 +00:00
crschmidt
233af36280 "We know this doesn't work" warning.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 13:33:50 +00:00
crschmidt
81505f54b0 Add generic 'button' control. r=tschaub. (Closes #872)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 03:16:42 +00:00
Paul Spencer
412314e665 missing semi-colons
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:22:04 +00:00
crschmidt
cff527ba6f Change the Format.WFS to use Format.XML methods instead of
document.createElementNS methods. r=tschaub. (Closes #1278) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5868 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:18:56 +00:00
crschmidt
72a1cef5da Accidentally committed Format/OSM test in list-tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:14:10 +00:00
crschmidt
7af5b1c657 Fix silly typo which neither Paul nor I caught, with tests this time. Thanks
Tim for catching it.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:12:21 +00:00
crschmidt
f4b4e85433 loadURL does not escape + (plus) character in proxied URL. Thanks to rdewit
for following up on this, and to tschaub for reminding us of the right way
to do things. r=pagameba (Closes #1262)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-24 02:04:11 +00:00
Paul Spencer
ef1af7dee4 Add clone methods to Tile and Tile.Image, and add associated tests. r=crschmidt (closes #1296)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5854 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 20:29:46 +00:00
Tim Schaub
74bbd0347e Documenting supported event types for the map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 20:08:43 +00:00
crschmidt
077db39d39 Fix mice.xml loading in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 01:03:53 +00:00
crschmidt
ea06b08517 fix projection tests (wrong count, got missed in patch)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5845 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 00:56:10 +00:00
euzuro
68a05a7c0d remove test numbers from wfs layer's tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5844 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-23 00:01:58 +00:00
crschmidt
90d8517e73 Previous commit to change wfs tile to support formatobject + formatoptions
was the wrong patch: this typo was left out. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5839 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-22 15:43:07 +00:00
crschmidt
6937fabe3a Ensure that GeoRSS format does not fail when reprojection null geometries.
patch=Edgemaster, ar=me (Closes #1258)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-22 00:17:29 +00:00
ahocevar
bf39fa06a9 To make the example work out of the box for external URLs, the URL to the proxy must be changed. (closes #1287)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-21 23:44:49 +00:00
ahocevar
df78f09e36 "Pointtrack example does not work". r=crschmidt (closes #1287)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-21 16:13:59 +00:00
crschmidt
f28a1c314a Add support for reprojection of vector formats when loading data. This allows
for the definition of a 'projection' option on a layer. IF this projection 
object exists, it will be used to create the format's internal/external 
projection options, making it such that any data loaded will be reprojected 
to the map's projection automatically. r=pagameba (Closes #1273, #1225, #1269) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5828 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 20:33:54 +00:00
crschmidt
7a19fd6a95 Don't let the SVG renderer bail if the node we are trying to add is out of
bounds *and* not yet added to the map. r=pagameba (Closes #1274)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5826 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 20:11:38 +00:00
crschmidt
f6e20a0b75 Fix for Projection.equals fails when passed 'null'. r=pagameba
(Closes #1286) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5825 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 20:03:42 +00:00
Paul Spencer
ae9ceeec6c mis-spelling in comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5821 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 19:09:27 +00:00
crschmidt
a0e6dd7c7a Thought that normal selection wasn't working. Turns out I had a local
modification I'd forgotten about. take hover off to more closely resemble the
boxes-vector example.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 16:50:12 +00:00
crschmidt
d4ca01a134 vector boxes examplee
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 16:45:56 +00:00
crschmidt
7d15b18d86 Bump time out up to 12s
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 16:07:51 +00:00
crschmidt
6b4c0acc54 add missing mice.xml file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-20 15:32:10 +00:00
Paul Spencer
fff63a1f9f (Closes #1187.) applying Bart's patch to add a zoom out option to the zoom control. r=pspencer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-17 16:35:49 +00:00
euzuro
52220873e3 See #964 - not only should we cancel ajax requests when we destroy the tile, but also when we initiate a new response. which is to say that when we instruct the tile to run a new request, we can discard the old one(s). that is what this patch does (as well as cleaning up memory in the destroy). Note that I have added this.request.destroy(); call, but commented out. this is a nod to future development/improvement of the OpenLayers.Ajax.Base and OpenLayers.Ajax.Request class to give it its own destroy() method. Just for fun I'll go ahead and open a separate ticket for that: #1277. Thanks elemoine for the reviews and the good dialogue to finishing up this patch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5777 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 17:35:51 +00:00
crschmidt
28659c9ebc Add setUrl function for GML layer. Thanks to a well done patch (with tests!)
from Ian Johnson. (Closes #1264)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5776 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 17:07:20 +00:00
ahocevar
ab47cc6040 VML renderer fails to render features without strokeOpacity set. r=crschmidt (closes #1276)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5774 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 15:03:05 +00:00
pgiraud
e3e860b415 don't re-append the geometry node to root if it is already there to keep it in place and to prevent z-index to change, r=elemoine (closes #1066)
Thanks Eric for giving me the opportunity to have my first commit in OpenLayers trunk

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5772 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-16 08:40:22 +00:00
Éric Lemoine
0f2d373a90 If scales is set on the map, you cannot use minScale and maxScale on the layer. r=crschmidt. (closes #1199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 20:49:24 +00:00
Éric Lemoine
c768a12a4d fix typo in ND comment (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 20:25:00 +00:00
Éric Lemoine
f053a4e0c8 Add hover handler. With this handler user-defined actions can be triggered as the mouse moves over the map and pauses. An example of use is send WMS/GetFeatureInfo requests. r=crschmidt,tschaub (closes #1255)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5746 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 12:54:47 +00:00
crschmidt
c1185e8f8b TileCache.js uses math.floor instead of math.round like TC does.
Thanks Brent. (Closes #1261)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5745 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-15 12:19:22 +00:00
ahocevar
df3d4b2d98 Fixed geo namespace declaration. The previously defined namespace was the one used in Atom feeds with georss:point, but we have a rss 2.0 feed here with geo:lat/geo:long.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-14 15:17:19 +00:00
ahocevar
651b60f8f7 New layer type PointTrack: connects point features to lines. r=crschmidt,elemoine. (closes #1167)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5733 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-14 14:42:29 +00:00
crschmidt
cb13a6d053 "GeoRSS Format Parsing fails with items with no geo-feature". Patch from
Edgemaster to fix this failure mode. r=me  (Closes #1258)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5715 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-11 01:16:18 +00:00
euzuro
454026baf8 remove test number from wfs tile test. no functional change here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5709 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-10 17:03:39 +00:00
Tim Schaub
11c1ef3f68 The pixelTolerance check on the click handler only works if mousedown events get to the handler. This keeps the handler from failing in cases where mousedown is stopped and pixelTolerance is set. r=crschmidt (closes #1246)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-09 09:55:22 +00:00
Tim Schaub
5b31ee3c0a Giving the drag handler a stopDown property. Set this to true in the constructor options to let mousedown events propagate. r=crschmidt (closes #1247)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5697 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-09 09:50:21 +00:00
crschmidt
f176d12dc1 Fix redrawing of tiles in Safari, Opera, which don't fire onlod events unless
the img.src changes.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-09 08:36:41 +00:00
Tim Schaub
d864adeee0 Adding OpenLayers.Number.format for string formatted numbers. Thanks for initiating this Andreas. Nice pairing with you. r=me (closes #1253)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-08 18:22:39 +00:00
Tim Schaub
dc77bd5d5f Removing methods copied from the drag handler.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5685 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-08 17:34:34 +00:00
Éric Lemoine
21f2605b55 click handler's cachedEvent property isn't needed. r=tschaub. (closes #1252)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-07 23:49:59 +00:00
Tim Schaub
9193ef67d5 Gutting the OverviewMap control to give it an update. Now uses a click handler and a drag handler instead of its own event handling code. In addition, the control now has a minRecSize property. When the extent rectangle is smaller than the specified size, its style is switched. By default, we provide a rectangle replacement graphic. This can be customized with CSS. Finally, I'm tucking in one non-API property. The dragging arg sent to map.setCenter is now stored at map.dragging. This gives easy reference to dragging state where a reference to the navigation control and its drag handler is not convenient. r=pspencer (closes #1244)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-07 20:54:28 +00:00
Tim Schaub
580a44a1b3 Getting explicit about precision. We now support thirteen significant digits in coordinates when testing for geometry intersections. r=pspencer (closes #1245)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-07 19:54:44 +00:00
Tim Schaub
ef3ad090c1 If you'd like to try OpenLayers but only have Netscape 2.0, please buy a new browser.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-06 22:15:43 +00:00
Tim Schaub
d7cd93abf3 If your browser doesn't support the script tag, you have no business running these tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-06 22:10:28 +00:00
Tim Schaub
02ad66f580 keep local value (closes #1248)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-05 00:39:33 +00:00
Éric Lemoine
d516b63fe3 fix typo in Ajax.js. Thanks david reksten for reporting this. (closes #1242)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 09:58:39 +00:00
crschmidt
caefde18fe implement support for alternative js minimization in build system,
and if jsmin/minimize is not available, just spit out the uncompressed 
version.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5635 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 06:40:27 +00:00
crschmidt
c63ac2d80f Make buildUncompressed executable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5633 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 05:52:37 +00:00
Tim Schaub
6048cdc108 Constructor doc comment for control panel.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 00:30:33 +00:00
Tim Schaub
d80bb6bd74 Oh please Google, give us some well named methods that solve this issue. We muddle around with obfuscated code trying in vein to solve your pesky setCenter flicker. This brings us a bit closer with even sized viewports but is still embarassingly wrong for users panning across the dateline with odd sized viewport. r=crschmidt (closes #1174)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:36:12 +00:00
crschmidt
4effccbb97 Uncommit unrelated part of r5433.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5626 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:27:14 +00:00
Tim Schaub
af76852841 Giving vector features an onScreen method. By default, this uses geometry.intersects. If a rougher approximation will do, call with boundsOnly set to true. r=crschmidt (closes #1238)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5625 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:16:58 +00:00
Tim Schaub
6791cf6086 Point, path, and poly handlers now clean up before calling callbacks. r=crschmidt (closes #1239)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 19:06:07 +00:00
Tim Schaub
d643492888 Proper handling of virtual vertices so we don't leave them on the layer. r=crschmidt (closes #1230)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 18:54:33 +00:00
crschmidt
67e260775e Make MapServer multi-url selection deterministic. (Closes #803)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-02 15:23:45 +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
Tim Schaub
7cb4ba4354 adding click handler as dependency to navigation control
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-31 23:41:36 +00:00
Tim Schaub
b24f50efe3 Spaces only.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-31 00:43:51 +00:00
crschmidt
16d9d36da2 Slightly more informative docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-28 13:11:36 +00:00
Tim Schaub
e636e82455 reordering tests for a bit easier reading
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-26 23:49:20 +00:00
Tim Schaub
9425869c2b Match XHR behavor at 2.5. The browser default content type is application/xml, so we set that as our default contentType option. Looks like there is no browser default for encoding, so we remove that. r=crschmidt (closes #1232)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-24 18:44:06 +00:00
Tim Schaub
f4df2a3b2a Changing prototype.js ajax stuff so exceptions aren't swallowed by default. If you want this behavior, set request.options.onException to something that swallows, or use OpenLayers.Ajax.Responders.register for onException. r=crschmidt (closes #1232)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 23:42:05 +00:00
Tim Schaub
86116ddd73 Making feature handler call over and out callbacks just once per mouseover and mouseout (of a feature). r=elemoine (closes #1226)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 08:48:08 +00:00
Tim Schaub
33e313b059 Separating jsdoc style docs into their own block. The new NaturalDocs doesn't parse these mixed blocks, giving us no class descriptions with the two together. (closes #1229)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 08:28:09 +00:00
Frédéric Junod
2447848e7f Coding style: dont use local variable when it's not necessary, remove new lines.
No functional changes, tests pass on FF2, IE6, IE7 and safari 3.0.4 windows.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 07:28:05 +00:00
Paul Spencer
c056118b59 Small patch to removeItem so that all instances of a value in the array are removed, even if they are consecutive by reversing the order in which the array is enumerated. Updated tests and checked in Safari 3, FF2. (closes #1228).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 20:22:36 +00:00
Éric Lemoine
2931cd3065 Add style property "display" to vector feature style. If display is "none" the feature won't be rendered and there's a DOM node for that feature it'll be removed. Commiting this on behalf of ahocevar. Thanks Andreas for the patch. r=crschmidt. (closes #1173).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 19:20:23 +00:00
Tim Schaub
2d1099d60d Abort XMLHttpRequest on tile.destroy for WFS. The loadURL function now returns a request object. Thanks pgiraud for the fix. r=crschmidt (closes #964)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5539 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 17:28:51 +00:00
crschmidt
59dd8b2d99 Fix to "style with no rule returns empty array" via the 'unruly.patch' from
tschaub. -10 points for bad pun, +10 points for catching this in his review
of the SLD code. r=me (Closes #1223)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5536 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 13:01:19 +00:00
Tim Schaub
3268e53ed1 Serious rewrite in the Ajax namespace by pgiraud to keep up with prototype.js 1.6. Thanks for the effort and for suffering numerous revisions. Now, let's cross our fingers... r=crschmidt,me (closes #1170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 09:26:53 +00:00
Tim Schaub
44543b3e36 adding manual test for the feature handler
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5533 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 08:49:15 +00:00
Tim Schaub
36e04a689f Adding OpenLayers.Array.filter to mimic Array.prototype.filter. Adding panel.getControlsBy and related methods that use filter. Reworking map.getBy to use filter as well. r=elemoine (closes #1203)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 08:12:19 +00:00
Frédéric Junod
c44b028a30 Fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 07:37:26 +00:00
Frédéric Junod
52fb422c49 fix sdl broken url
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5530 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 06:57:48 +00:00
Tim Schaub
72dd4047af doc change only - feature vector not vector feature
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5529 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 06:47:28 +00:00
crschmidt
3751402ff8 importNode in XML.Format serializer to prevent reports of adding the node to
the wrong DOM element. This fixes tests in Webkit-based browsers
and FF3, which enforces this constraint. r=tschaub (Closes #1219) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 04:15:26 +00:00
crschmidt
2e507b68b7 Fix for "When Navigation control is inactive, doubleclick zooms in", using
the new click handler that Tim and I created over the weekend. (Hooray for
handlers!) r=tschaub (Closes #1068)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 04:11:52 +00:00
Tim Schaub
78bf7f5912 correcting url for apidocs in doc readme.txt
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:58:36 +00:00
Tim Schaub
981f00dd6d Removing the explicit maxResolution from the TileCache layer. We now depend on resolutions being properly set on the map or directly on the layer. r=crschmidt (closes #1212).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5525 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:50:08 +00:00
crschmidt
3b7e63a488 Silence these errors like we did for Opera. With this and #1219 applied,
Safari passes all tests. (Time to write more tests.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5524 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:23:39 +00:00
Tim Schaub
5babc73615 stop clicks on the point handler - this means no more clicks sneaking through while editing - if you wanted that behavior, speak up - r=crschmidt (closes #1020)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5523 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 03:02:54 +00:00
crschmidt
8eb682c02f More typos. am blind.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5522 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 02:49:51 +00:00
crschmidt
1d4b8f8c2a Typos.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5521 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 00:37:37 +00:00
Tim Schaub
7011c0f470 Big thanks to Andreas Hocevar for this SLD format class - this continues to extend his Rule and Style work by giving us the ability to read SLD docs - onward with style r=tschaub (closes #533).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 00:24:20 +00:00
crschmidt
acc8cfc0f2 add displayProjection API Property on the Map, and on relevant controls.
Spherical mercator example now makes use of this, displaying coordinates 
in lon/lat instead of meters, and permalink/argparser now work in lon/lat
as well. this functionality will make using SphericalMercator easier for
a number of applications. 
r=tschaub (Closes #1036)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 23:36:34 +00:00
Tim Schaub
811e35cff3 tidying up the doc menus - somebody has to be the doc nanny around here
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5517 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 22:15:32 +00:00
crschmidt
6d6c08fbef Formats now support reprojection using internalProjection and
externalProjection properties. These allow for the reprojection of data --
OpenLayers users with SphericalMercator get this built in for EPSG:900913, and
other users can use the external proj4js library available from MapBuilder SVN
to add support for any number of projections. This means that featres can be,
for example, transformed from a KML doc in 4326 to Spherical Mercator before
being added to a layer, making using SphericalMercator slightly more enticing. 
r=elemoine
(Closes #1039)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 22:07:12 +00:00
crschmidt
7440556585 Add reprojection support on Geometry classes. Geometries can now be transformed
in place by using .transform(source, dest). r=elemoine (Closes #1037) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5515 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 22:04:30 +00:00
Tim Schaub
50ec61dfc9 nd comments only - wrapping html in code block to make nd happy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 21:55:28 +00:00
Frédéric Junod
e3406bf095 OpenLayers.Layer.Markers - propagate layer's opacity to the markers. Thanks
ahughes for the bug report and crschmidt for review and advices. (Closes #1114)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5509 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 15:00:49 +00:00
Éric Lemoine
6fb48c0cd7 Enables unselecting selected features by clicking outside any feature. This is the default mode of the modify feature control. If you want to use the old mode where a click on a selected feature unselects that feature, set the toggle option to true. If you really want the old mode and not have selected features be unselected when clicking outside any feature, set the clickout option to false. The patch also adds the properties toggleKey and multipleKey to the modify feature control. With these one can temporarily enable the toggle and multiple mode, respectively. See the select-feature.html example to see all this in action. Thanks to pvalsecc and tschaub for the great colloration on this. (closes #1137)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5506 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 11:09:44 +00:00
Frédéric Junod
65ad59a277 Don't override tileSize, maxExtent and theme when calling
Map.setOptions(). Thanks pspencer for the review. (Closes #1206)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 07:30:52 +00:00
crschmidt
5c6934b0b0 Allow the use of custom GMapTypes via the Layer.Google. When passed a type in
the Layer.Google constructor, we check if the type we are given is not in the
map's list of types, and if so, add it. (Closes #1082) 
r=tschaub 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5504 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-19 01:33:20 +00:00
crschmidt
cc29ab1085 bring back removal of XML prolog.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 17:45:09 +00:00
crschmidt
5d4109a3ab Because IE serializes the processing instruction, we can't just grab the
firstChild, we have to actually do a getElementsByTagNameNS to be 
cross-browser friendly.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5500 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 17:06:09 +00:00
crschmidt
8572258fd1 no need to process the expected data twice.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 16:54:15 +00:00
crschmidt
d9230297ec Change test to use importNode if available, and add a test for serializing a
node as well as a geometry. (The latter test will fail in FF3 until
#1219 is fixed.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 16:52:06 +00:00
Frédéric Junod
546d49fc34 Fix (again) the setSize() test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5494 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 15:26:53 +00:00
Frédéric Junod
ac4f4dba7c Fix the setSize() test. Regression introduced in r5488
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5492 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 15:14:23 +00:00
Paul Spencer
32081348bf Fix tests for Safari 3. Composite styles like border have to be read through their component properties. Invalid styles, like filter, return null regardless of what is assigned to them.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 14:26:08 +00:00
Frédéric Junod
f51315c26d Fix ND comment. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5490 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 13:49:19 +00:00
Paul Spencer
9200676f89 Fix tests for Safari 3. For some reason, you can set the style.overflow property but you have to read it as overflowX or overflowY.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5489 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 13:47:23 +00:00
Frédéric Junod
c1b008dcb3 Remove the 'blinking' phenomenon on IE by setting the display elements to
'absolute'. Thanks to pgiraud for the patch (Closes #965)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5488 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 13:08:35 +00:00
crschmidt
d4ff6a4c8b XML Serialization doesn't wrap nodes in documents. This breaks or changes
serialization in some browsers. This fixes the XML Format based
tests in Safari. (Closes #1218)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5487 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 12:17:34 +00:00
crschmidt
93d73acd49 for the autommated tester, make the delay_call timeouts ~3 times
as long -- presumably, the tests are less 'interactive', so the longer
wait doesn't hurt anyone, and this should help prevent failures due to
timeouts.l 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5486 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 12:16:23 +00:00
Frédéric Junod
bcc623f444 Fix ND comments and indentation. No functional changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5485 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 10:49:29 +00:00
Frédéric Junod
a61e5fb91c fix Class ND comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 10:37:04 +00:00
crschmidt
7b04c305cd Run the four eventPane test in more browsers. If this breaks IE, you have
permission to beat me senseless for not being able to test it there first.
Note that I'm pretty sure this still doens't work with FF3.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5479 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 05:15:47 +00:00
crschmidt
a50bfb4d4e Remove XML prolog from tests. Browsers can't seem to decide whether they like
it or not, and #1218 will cause the behavior to change across the board, 
most likely, so we'll just be slightly more accepting, since the XML prolog
is almost definitely unlikely to not matter.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5478 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 03:44:21 +00:00
crschmidt
b2d12df117 revert previous commit. This is actually caused by a bug in Format.XML.
(See #1218)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 03:33:01 +00:00
crschmidt
611cb91171 Vector test fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5476 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 02:44:17 +00:00
crschmidt
1b40772aaf Safari's XMLSerializer support is broken: it doesn't export namespaces, so
the KML comes out namespaceless. Wrap the test up so that it doesn't totally
fail, and Paul is adding this to KnownIssues. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-18 02:23:41 +00:00
crschmidt
9e6d2a649a FF and Opera have different ideas about how this test should work.
FF2 won't work unless the map is loaded 'onload' -- but in Opera, adding
something to onload causes opera to believe that the page never finishes
loading within the test framework. FF3 works fine with this test if we 
don't run it in a new window, but FF2 does not. For the time being, make 
it work in our most well-supported platform -- FF2 -- and add a
FIXME to make it work in Opera. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5474 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 17:09:42 +00:00
Paul Spencer
5b2f4a2335 loosen the test for XML write by removing the <?xml ... ?> header before comparing the results (fixes test for Safari 3 and FF3)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 17:05:38 +00:00
Paul Spencer
5a11ac8ac6 patches Test.AnotherWay._constructor_name to return an appropriate value using 'typeof' instead of an empty string when the constructor of a value could not be correctly determined using the current logic. This fixes many of the tests in Safari 3 and does not appear to affect FF2 or IE6 since the current logic is working for them.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 16:44:00 +00:00
Frédéric Junod
50ad4d4090 coding standards: line too long, fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 14:45:34 +00:00
Éric Lemoine
dc2cc625f3 Do not call preFeatureInsert() and onFeatureInsert() callbacks when the modify feature control and the regular polygon handler internally adds point geometries to the layer. This is accomplished by adding an 'options' argument to the addFeatures() method in Layer.Vector. If that options argument has the silent property set to true, then the preFeatureInsert() and onFeatureInsert() callbacks aren't called. Thanks tschaub and fredj for your input. Thanks crschmidt for the final review. (closes #1148)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 14:36:39 +00:00
crschmidt
ccf16fa024 Work around the Opera test failures for now, and log to debug that they fail
so that someone who is motivated knows to fix them.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5469 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 13:39:04 +00:00
crschmidt
8479ecb4a0 Don't test reprojection in Opera, since we get different results, and
we still want this to b reported as a success, but log them to debug so that
people are aware the test is being skipped.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 13:35:07 +00:00
Éric Lemoine
175c401e0f ModifyFeature: enable dragging without enabling vertex modifications. Special thanks to tschaub for the collaboration on all the changes to the modify feature control. And thanks to crschmidt for the review. (closes #1188)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5467 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 10:12:56 +00:00
Éric Lemoine
8733534ad8 Fix test_Style.html on IE. Thanks Andreas for fixing this in no time.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 09:56:50 +00:00
Éric Lemoine
a1522246a6 Subclasses of markers layer should destroy, then clear their list of markers.
Thanks crschmidt for the review. (closes #1123)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5465 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 09:03:01 +00:00
crschmidt
772b6452ce fix wrapdateline test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5464 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:33:29 +00:00
crschmidt
dc05a91d4a don't open a new window: we don't need to in order to run this test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5463 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:29:46 +00:00
crschmidt
29f2280fb8 missed one -- this function has two maps initialized.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5462 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:23:09 +00:00
crschmidt
8a6f50496f fix more tests in Opera by adding map.destroy() calls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5461 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:20:10 +00:00
crschmidt
0fd898859f fix more tests in opera
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:14:00 +00:00
crschmidt
03f6ddd5d0 Fix tests in opera by cleaning up after ourselves and destroying our maps. TMS
tests now pass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:11:59 +00:00
Tim Schaub
5667311cba add geometry.intersects method for all geometry types (closes #1072)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:05:35 +00:00
crschmidt
189b12d020 Come closer to passing tests in opera by destroying all map objects we create.
If we do not do this, then every time we instantiate a new map using the same
div, the clientHeight as reported by the browser grows, and eventually we're
doing tests with a totally different sized window than we intended to.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 06:03:59 +00:00
crschmidt
80fb92686b Opera serializes attributes before namespace declarations.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 05:28:06 +00:00
crschmidt
bebcb130f7 Opera doesn't encode greater than symbols, only less than, when using
XMLSerializer. Format.GeoRSS tests now pass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5455 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 04:57:13 +00:00
crschmidt
5f6cabf2ec opera drops the ';' on the assigned property when retrieving it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5454 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 04:47:30 +00:00
crschmidt
abfe313ab4 Opera returns a 'null' instead of an empty string if the attribute doesn't
exist. Fallback to an empty string if getAttributeNS returns null. With
this change, the Format.XML test passes in Opera. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5453 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 04:38:12 +00:00
crschmidt
428710e3af Add support for reprojection of lonlats/bounds. (Closes #1213)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 03:12:57 +00:00
Tim Schaub
5884c02683 shorter url for run-tests.html
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5451 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 02:18:04 +00:00
crschmidt
2f1c17446b apply r5447 to auto-tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 01:30:16 +00:00
crschmidt
430906ff22 FF3.0b1 has a bug with testing innerWidth/innerHeight of frames. This will be fixed in later versions, but none are released yet.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 01:19:57 +00:00
crschmidt
bacdad9e30 Add auto-tester page for OpenLayers. Three differences from the main run-tests.html:
1. Meta-refresh, set to 20 minutes.
 2. 20 second page download timeout, instead of the standard 6.
 3. After all tests have finished, posts results back to 
    http://openlayers.org/test/results.cgi , which shows the results. Failures kick
    off an email (currently only to me).

To set up auto-testing for your platform, set up a machine with a browser running full
time, and open the URL:
 http://openlayers.org/dev/tests/auto-tests.html?run=all

tests will be run automatically on load, and every time the page refreshes, they will
run again, recording their results each time.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-17 00:55:07 +00:00
crschmidt
db90eca5bb An antidote to r5440: Allow for '@requires: ' to trigger single file build
dependencies, since this is our most common tpo in this regard.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5442 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 23:15:28 +00:00
Tim Schaub
41bfd3b4d4 single file build broke with r5401 as well - layer now requires OpenLayers.Projection (see #1035)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 22:45:29 +00:00
Tim Schaub
7fddbbdaef very trivial typo - but single file build is broken without this fix (closes #1215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5440 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 22:33:12 +00:00
crschmidt
b5b1cd3c9d Fix a couple minor mis-spelings in
OpenLayers.Geometry.Polygon.createRegularPolygon (Closes #1214)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5439 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 20:00:20 +00:00
Tim Schaub
6ad22b8e6a adding a click handler for flexible cross-browser single and double click handling - add to a control and set click or dblclick callbacks - thanks for the review and pairing crschmidt (closes #1211)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 04:42:14 +00:00
Tim Schaub
aa3536ed3a Fixed test for GeoJSON collections (closes #1067).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 03:09:08 +00:00
Tim Schaub
35054c4a41 non-functional change - just removing an extra comma from r5435 to appease IE (see #1067)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-16 01:08:46 +00:00
crschmidt
44a6b9b176 GeoJSON should parse and serialize GeometryCollections as a Geometry.Collection
object. (Closes #1067)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 21:45:51 +00:00
crschmidt
7881c2099a When trying to deactivate a control from within that control's featureAdded
event, a null exception is encountered. A null check fixes this bug. (Closes
#1143)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 21:29:06 +00:00
crschmidt
f746ed4211 Fix getZoomForResolution() on FixedZoomLevels, which is passed an extra
(unused) argument. (Closes #1046)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 16:32:33 +00:00
crschmidt
45c420782c Don't flip SVG Y values anymore, since we're working in pixel space these days,
and the Y transforms just make working with the SVG directly -- for example,
with people modifying it to support text -- more difficult than it should be.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 16:24:31 +00:00
crschmidt
fb3c02354f Add support for the extremely awesomely super-comprehensive rule based styling
that Andreas has been working so hard on. I think this is the single most
awesome commit I've ever had the pleasure of committing. The results of this
commit are described on http://trac.openlayers.org/wiki/Styles: essentially,
this makes it possible to style features in all kinds of fun ways based on
rules, and will also form the underlying basis for #533. Things this patch
adds:

 * OL.Rule classes. These classes allow you to do tests against the propertie
   of a feature, and set a style based on these properties -- so you can
   compare the 'speedlimit' property of a line, and test if it is > 60, and if
   it is greater than 60, render it in a different color. You can also test
   combinations of rules using the OL.Rule.Logical class, and test featureids
   with the FeatureID class. 
 * OL.Style class: The OL.Style class lets you wrap up Rules into styles that 
   can be used with drawFeature to draw the feature in the selected style.
 * OL.Layer.Vector.drawFeature will check if the given style is an OL.Style
   object, and if so, it will draw the feature accordingly.

examples/georss-flickr.html shows usage of these classes.

Many, many thanks go to Andreas for all his hard work on this: this code really
is very pretty, and includes unit tests for all the classes (and we know that I
am a big fan of tests.)

Three cheers for Andreas: Hip hip, hooray! hip hip, hooray! hip hip, hooray!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 16:17:50 +00:00
crschmidt
43a4f9320b Tile.Image should register for error events with respect to tile loading
events -- this means that if an image fails to load, it will still trigger
a loadend event, and the layer will eventually be in a state where it is no
longer waiting to load. Thanks to Andreas for the investigation! (Closes #842) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 14:16:18 +00:00
crschmidt
4322cf921d Forgot to svn add before committing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 05:52:15 +00:00
crschmidt
c720e44c7c Patch from Gregers Rygg to fix setOpacity for AnchoredBubble popups.
(Closes #1204)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-15 03:51:21 +00:00
crschmidt
c9fdb6122f Create Format.Text, and have Layer.Text use it. (Closes #1033)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5412 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 22:02:00 +00:00
Tim Schaub
7c04a7f88a tweaking the dynamic script tag adding bit (closes #1092).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 20:48:19 +00:00
crschmidt
a170e3fdf6 Add support for transformation functions without using proj4js, and make
the SphericalMercator mixin register two transformations to/from EPSG:900913,
EPSG:4326. Thanks to Tim for the feedback and review. (Closes #1210)

This allows us to transform points to/from SphericalMercator 
without proj4js support -- and if other projects need similar functionality, 
they can write their own custom transformation functions rather than 
modifying proj4js to support some custom projection.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 20:45:42 +00:00
Frédéric Junod
9dd5d0e6da Declare 'proj' and 'projCode' properties, simplify verbose code
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 13:52:43 +00:00
crschmidt
c1eb0fe24b Fix for "Permalink captions and harcoded to be smaller". (Closes #747)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 12:11:33 +00:00
Frédéric Junod
22bbf98398 Include tests/test_Projection.html and lib/OpenLayers/Projection.js (taken from
projections.2.patch). (Closes #1035)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5405 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 08:36:36 +00:00
Frédéric Junod
47edbf4524 Fix bad spelled word
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 07:30:32 +00:00
crschmidt
2a00af3dd7 Move scale control styling into CSS file where it belongs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5403 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 04:47:43 +00:00
crschmidt
f223101539 Apply a fix to KML format to support > 4k characters in a linestring.
(Closes #1088)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-14 00:01:13 +00:00
crschmidt
abe2a52c31 With a confirmation that Tim is happy considering this a review, I'm going to
go ahead and commit this (relatively lighttweight) patch to the code so that
the projection library base API is there, even though for the most part, it's
not usable yet. This changes map.projection from being a string to being a 
class, with a projCode on it. (Closes #1035)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 23:29:18 +00:00
crschmidt
c3c2895e8c Use Format.GeoRSS to do the work in Layer.GeoRSS. (Closes #1025)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 23:23:02 +00:00
crschmidt
5824170f10 Box Handler should use CSS to style its box. (Closes #1070)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5399 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 19:51:49 +00:00
Tim Schaub
3e652566e8 triggerEvent can now be called with additional arguments for the listeners - this means instead of getting news like 'hey, someone won the lottery' listeners now get news like 'hey, you won the lottery' - in addition, the triggerer gets back the return from the listener, so if a listener wants to say 'dont tell anyone else' the triggerer gets that message - thanks for the reviews (closes #1189)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 17:30:52 +00:00
Tim Schaub
0b39ae35ce remove unused code that referred to element.geometry - thanks for catching this pgiraud - I missed it in r3043 (closes #1140).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 17:08:38 +00:00
Éric Lemoine
2f7fad80df Handler.Point doesn't render points if no default resolution props in map object. Thanks fredj for the review. (closes #1205)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 14:53:36 +00:00
Frédéric Junod
0cd5ba5b9f fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5393 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 13:09:01 +00:00
Frédéric Junod
7063cdab3a Speed up geometry rendering with VML by replacing string concatenation by array
concatenation and joining. Thanks tschaub for the patch optimization and
review. (Closes #1095)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-13 10:24:51 +00:00
Tim Schaub
8f1bca93b1 IE6 is happy, IE7 is happy, I'm grumpy - seems like it takes IE a while to properly update the elements here - adding in an alert lets tests pass in IE6 - clearing the renderer does the same thing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5391 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 23:35:14 +00:00
Tim Schaub
fc442271b7 try namespaced element first for ie7 - what a godawful mess
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 23:16:08 +00:00
Tim Schaub
5a70226676 throw a real geometry in there for good measure
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 22:53:06 +00:00
Tim Schaub
4ae06d5be9 this fake renderer needs an eraseFeatures method - thanks pgiraud for catching this
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 22:50:26 +00:00
Tim Schaub
ac1f51a19a renaming getLayersByType and getControlsByType to getLayersByClass and getControlsByClass - since controls have a type property, we want to leave room for a real getControlsByType - thanks for the review elem (closes #1153).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 20:17:30 +00:00
Éric Lemoine
00d6f66c06 removeLayer must reset layers z-index. Thanks tschaub for the review and the new patch. (closes #1090)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 20:08:49 +00:00
Tim Schaub
8f38213e86 scope matters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 17:45:39 +00:00
crschmidt
4722009ade A coworker points out that all old OpenLayers builds are pointing to an invalid
location for the license. Fix it by adding a reference to the current license
location.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-12 02:23:03 +00:00
Frédéric Junod
fa81ea81a6 Remove the drawCurve method from the renderers because it is never used. Reported by pgiraud (Closes #1138)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5373 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-11 08:32:18 +00:00
Frédéric Junod
a9b2a64bdc Util.modifyDOMElement don't update the opactity if the passed value is
evaluated as false, passing 0.0 won't work as expected. Fix it. Spotted by
sebastien and reviewed by crschmidt. (Closes #1168)



git-svn-id: http://svn.openlayers.org/trunk/openlayers@5372 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-11 08:23:52 +00:00
crschmidt
354817649d MousePosition control throws error when no layers are on map. Fix it so that
they don't. Thanks for the review, fredj. Includes tests. (Closes #1029)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5371 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-11 07:27:45 +00:00
Tim Schaub
b105017586 removing console call from example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-10 23:06:27 +00:00
crschmidt
6a1b77b382 Turn the pixels into geographic coordinates.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-10 23:01:24 +00:00
crschmidt
d72fb3c130 move walkthrough from Schuyler over into doc, since it is not an example,
and update links in the process.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5363 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-08 14:32:20 +00:00
crschmidt
7da6a3540e Merge the excellent documentation work done during foss4g into trunk. Many
thanks to all the contributors who helped put this together. 
I'm not exactly sure of what's going to happen with this, but for now,
at http://openlayers.org/dev/doc/examples.html you can see links to all the
examples *with descriptions*. Hooray!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-08 14:21:53 +00:00
Tim Schaub
ebf611c932 adding getBy and related methods to map - this allows flexible retrieval of things like controls and layers - thanks elem for the review (closes #1153).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5361 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-08 00:18:56 +00:00
crschmidt
e5998110b3 Fix broken link. (thx hue)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5360 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-07 22:49:52 +00:00
Frédéric Junod
382b750edd fix ND comment typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-07 15:48:18 +00:00
crschmidt
de427d30f5 Fix missing units param in call to getResolutionFromScale . This should have
been fixed a while ago, but we were waiting on a test: Now that it's been
reported by four different users, I'm just going to go ahead and fix it,
grudgingly, rather than wait longer on a test. (Closes #958, #1117) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-07 14:50:15 +00:00
crschmidt
46b75b2154 Mark the forward and reverse mercator functions as public. This is hte
canonical way of transforming data, and we should make sure users feel 
comfortable using it.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-06 15:00:48 +00:00
Tim Schaub
6758f490bc set map.baseLayer to null when removing base layer - thanks for review elemoine (closes #1191).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5349 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 17:20:56 +00:00
Frédéric Junod
6b1b2f0f37 There is 2 tests for the getLength function, remove one of them
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5348 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 13:25:05 +00:00
Tim Schaub
e58ba687cd remove geometry components backwards - thanks for the catch flixo and review crschmidt (closes #1190).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 08:53:27 +00:00
Frédéric Junod
fce3f19724 fix ND comment, non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-05 07:54:59 +00:00
Éric Lemoine
b71f8bc6c9 applies latest patch to the renderers tests, special thanks to pgiraud for his great work! (hopefully closes #1128 this time)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-04 13:36:02 +00:00
Frédéric Junod
75795805b4 ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 10:01:18 +00:00
Frédéric Junod
7e43f8688a ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 09:29:00 +00:00
Éric Lemoine
8231be5a4b Another fix for an ND comment typo, thanks pgiraud! (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 08:49:57 +00:00
Éric Lemoine
db47606f6c ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5330 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 08:44:30 +00:00
Éric Lemoine
a277332238 fix test_Elements.html tests and make them compatible with r5323 (#1172) (closes #1184)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 08:13:04 +00:00
Frédéric Junod
fec5d40fc7 Add the missing this.layername in TileCache constructor (in clone function), add a unit test for this function (Closes #1180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-03 06:59:05 +00:00
crschmidt
92f5a7d749 Reversing the order we set opacity changes the behavior when using VE, but
nothing else. This fixes the fact that you can't use client side opacity 
while including the Virtual Earth javascript. Thanks for the spot from
Jeff Yutzler. Includes a manual test. (Closes #1175)   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-02 20:46:15 +00:00
Éric Lemoine
70ec5ed6de ND comment fix (non-functional change)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5325 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-02 12:36:34 +00:00
crschmidt
73fe6380c7 Fixes and performance improvements to VML renderer problems with
externalGraphic, diligently filed, investigated, and fixed by The great and
powerful Oz, er, Andreas, who is becoming my new vector rendering hero. 
(Closes #1172) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5323 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 22:57:58 +00:00
crschmidt
a291ff04fb Fix a mistake in my commit of the tests: forgot to 'svn add' the directory
I needed. Good catch, elemoine. (Closes #1128)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5320 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 19:16:05 +00:00
crschmidt
d91db97efa Renderer tests, from pgiraud. (Thx!) (Closes #1128)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5319 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 15:03:23 +00:00
Éric Lemoine
f6091b2ecf FixedZoomLevels.js doesn't properly set the resolutions array. Special thanks to Sebastien Roch for the bug report and to Tim Schaub for the code review and extra comments. (closes #1124)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 14:04:18 +00:00
crschmidt
76fa0da3b7 New OpenLayers.String.format function to Format a string given a string
template and some context -- to be used within the SLD framework. Developed
by Andreas and Sr. Schaub. Thanks, guys!


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-01 13:20:59 +00:00
Tim Schaub
10cf5bfefc drag, rotate, resize, and reshape with the ModifyFeature control - thanks pvalsecc and elemoine for the inspiration, tests, and code - good partenering with you guys (closes #1150).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-30 17:09:23 +00:00
Tim Schaub
600435ad21 adding a manual acceptance test to tests folder
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-29 20:57:55 +00:00
Frédéric Junod
155796bcfd Fix ND comment typo. Spotted by blaamann
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-28 07:02:31 +00:00
Tim Schaub
527866aa51 adding doc comments to text layer - tidying up doc menus
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5289 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 18:20:18 +00:00
Frédéric Junod
f1fe7c7c63 Fix ND comment.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 11:40:53 +00:00
Frédéric Junod
7d0d11fba3 Correctly check if the alpha hack needs to be applied to the layer's div by testing
if the alpha option is set and by calling Util.alphaHack(). 
Thanks elemoine for the review (Closes #1130)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 10:17:54 +00:00
Frédéric Junod
38652a7686 Change Util.alphaHack to return 'False' not 'undefined' as defined by the API. (Closes #1169)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-27 10:05:18 +00:00
Tim Schaub
12c7cb07b2 extend now only sets defined properties on the destination - if your source has a property set to undefined, the destination property will not be set (closes #1160).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-26 23:45:43 +00:00
Tim Schaub
d7905ec735 applyDefaults now respects null - if you want to override a property with applyDefaults, set it to undefined first - applyDefaults also now correctly applies a custom toString method (closes #1063).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-26 23:34:50 +00:00
euzuro
0b571f128f fix gmaps key for domain
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-23 21:52:36 +00:00
crschmidt
263fade72a Mark drawFeature as stable (Closes #1059)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 20:31:13 +00:00
Paul Spencer
24d4fdc1bd apply patch from #1106, minor tweaks for performance. (Closes #1106)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 20:14:50 +00:00
euzuro
a13cacdde9 protect stopObserving() from trying to remove nonexistant events. thx for review, cr5 (Closes #1151)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5241 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 18:50:55 +00:00
crschmidt
164f96714f Commit this quite-excellent patch from Roald de Wit, which adds:
* the ability to 'flip' the GML format xy ordering on parsing, allowing the 
   GML parser to parse 'real' GML in 4326 when the option is on.
 * parsing of GML 'envelope' as a Polygon. this is primarily to support 
   the next...
 * GeoRSS GML read support, using the GML format when neccesary. 

Includes a comprehensive set of tests, and is really one of the better assembled 
major patches from a first-time contributor I've ever seen. Thanks for the hard
work, Roald! (Closes #1109) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5238 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 15:53:32 +00:00
crschmidt
a4d3f48752 'supported' is defined, API-wise, to return 'false' if not supported, but the
VML test returns 'undefined' instead. Fix that with this patch from fredj.
(Closes #1165)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 15:48:41 +00:00
crschmidt
de8c0119f1 Only add the VML namespace if we haven't already added it. (Closes #1141)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 15:18:12 +00:00
crschmidt
bd15c32ca4 Add attribution for OSM.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 13:36:22 +00:00
crschmidt
ffc9a57575 typo snuck into previous commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:38:49 +00:00
euzuro
3719a3e875 tabs. no func change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:24:30 +00:00
euzuro
82e43d743f add smooth drag panning to yahoo layer. the trinity is united. killer props to cr5 for digging through and finding these. ladies and gentlemen, you now have *no*excuse* for not using openlayers. smooth and sexy GYM commercial layers. (Closes #1163)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:22:39 +00:00
crschmidt
9acb997b20 Add an option for turning off smooth dragging, since it works on a pixel level,
and our geography doesn't, so the numbers end up off in the north-south
direction when *not* using spherical mercator. Now, if someone comes to use us
and says 'oh my! you ruined me!' we can say 'options! we love options!' and do
a rain dance. (Closes #1164) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:22:35 +00:00
euzuro
14ae911b47 update ND comment. tabbing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 08:06:26 +00:00
euzuro
cd9ee75a73 give the ve layer smooth (but safe) dragging. just like google layer. (Closes #1161) (See #1053)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 07:54:45 +00:00
euzuro
b89126ae20 get resolution from map via the accessor instead of directly from the property. (Closes #1162)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 07:41:15 +00:00
crschmidt
f7d417af54 change the spherical-mercator -- our prime example -- to use 2.82 of Google,
just so we pick up smooth dragging, and fix the broken API key (for my domain,
cough) of draggingGoogle.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 03:25:49 +00:00
euzuro
0e53fa10bf patch for smoother dragging of google layer. For now this remains a wierd (and admirable) hack... restricted to the use of v2.82 of the google api... but hot damn. it does work. hopefully the good folks at google might help us out and open this up as part of the API. Dinosaur egg kudos to cr5 for finding this and taking the time to plug it in. Thanks to tschaub for the quick review. (Closes #816)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5224 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-20 22:21:54 +00:00
euzuro
3ae69b0789 improve map's getLayer() function, includes improved test. cheers to pensyakito for bringing this up and to cr5 for the review (Closes #861)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-20 06:21:07 +00:00
euzuro
8296db3072 fix ND definition for OpenLayers.Renderer.SVG. Thanks for spotting this one, fredj (Closes #1156)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-19 19:04:53 +00:00
Tim Schaub
aadb1b31a1 removing unused third arg from nodeFactory - thanks for the patch pgiraud (closes #1139).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-16 18:30:19 +00:00
Tim Schaub
eef420ded6 correcting title of example
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-16 17:34:52 +00:00
Tim Schaub
7a37430ef5 adding point and line drawing to the select feature demo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5210 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-16 17:33:54 +00:00
Tim Schaub
ceecacfe3a adding irregular option to regular polygon control - now, go draw rectangles, and more - thanks for the review elem (closes #1098).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5200 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-15 23:37:36 +00:00
Éric Lemoine
75163f6635 avoid code duplication in Renderer/SVG.js, thanks fredj for the patch (closes #1144)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5188 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-15 15:31:48 +00:00
euzuro
ad40db89af Fix for addPopup()'s 'exclusive' option -- reworking of the for loop to make sure all popups are removed without error. Great find on this by li ethan and excellent work turning it into a patch by fredj. Once again, open source prevails. Thanks everyone. All tests pass FF/IE6. (Closes #1149)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-15 14:54:18 +00:00
Éric Lemoine
adf2381731 Make OpenLayers.Util.applyDefaults() return the modified object. To be consistent with OpenLayers.Util.Extend() and be able to use anonymous object as the 'to' object. Thanks fredj for the patch and tests. Thanks euzuro and crschmidt for the reviews. (closes #992)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 20:13:31 +00:00
Tim Schaub
cbdf3522a7 correct writing of multi-part geometries for KML - thanks for the swift review crschmidt (closes #1132).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 18:50:06 +00:00
Tim Schaub
0ae59513db minor space and comment changes only (for KML format)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 18:19:14 +00:00
crschmidt
c986fe376e "Sometimes, it is handy to have "zoomWorld" icon in
OpenLayers.Control.PanZoomBar. This patch enables it." Patch from jachym.
(Closes #1131)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 17:57:27 +00:00
Tim Schaub
10eaa329ba stop the renderers from flashing black and filling white - ahhh, much prettier vector drawing now - thanks to pgiraud and crschmidt (closes #1042).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 17:14:10 +00:00
euzuro
15e6809bf2 remove some stray oldschool jsdoc comments for the CLASS_NAME property. this re-closes the 853 ticket (Closes #853)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-09 16:23:54 +00:00
Tim Schaub
d3125f250c putting google back in there - excuse me for breaking this acceptance test - how about a tests/accpetance directory?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-07 19:13:21 +00:00
Tim Schaub
9e35dd7581 getting rid of google script here
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-07 17:26:42 +00:00
Tim Schaub
4a3011a0f3 even more explicit in the TileCache layer doc comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 19:40:23 +00:00
Tim Schaub
aab744a5c8 correcting a typo in a doc comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 17:05:09 +00:00
Tim Schaub
99d4d662e4 A bit more documentation on the TileCache layer class.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 17:00:22 +00:00
Schuyler Erle
4b83b83018 Simple walkthrough made for FAO GeoNetwork workshop. Intended to be a stopgap until the new automated example indexing is committed to trunk.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 11:26:29 +00:00
Schuyler Erle
2834d66879 Change examples from using OnEarth WMS because it no longer support 512px tiles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-06 11:24:21 +00:00
Tim Schaub
4fe97a92c6 giving the overview example two maps
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-05 17:41:39 +00:00
Tim Schaub
2b55af61b9 give wfs delete transactions the correct feature.fid - thanks for the review elemoine (closes #1119).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-05 16:02:29 +00:00
crschmidt
1cccb29a3b add yards and nautical miles to OpenLayers units. (Closes #1065)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-02 02:20:25 +00:00
crschmidt
07965f6fed Update TileCache format determination to support TileCache's weird jpg->jpeg
translation correctly. Also, update example to show usage, and tests to test
jpeg instead of testing png incorrectly.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-02 02:16:44 +00:00
Tim Schaub
8007298d7b Dissalow vertex deletion while dragging - thanks for the review crschmidt (closes #1122).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5099 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 23:06:10 +00:00
Tim Schaub
ba8354b593 Make the drag handler only call done if it actually dragged - thanks for the review Eric (closes #1118).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 20:53:06 +00:00
Éric Lemoine
756f6ca24d handlers have to check if layer exists before destroying it. Thanks pgiraud. (closes #1107)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5085 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 13:37:16 +00:00
euzuro
7ab5d456a8 couldn't help making this small code reduction. no functional change. all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5084 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 08:31:27 +00:00
euzuro
e14f0c20b8 since tschaub fixed the limitSigDigs() function to no longer be restricted to integers, nd comments should reflect that.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 08:23:10 +00:00
euzuro
6360ebadcd when we made the nd switch, we agreed that functions which are on static objects would be called Function and functions defined in prototypes would be called Methods. Since these are all now static functions, they should be labelled as such. No functional change here.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5082 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-01 07:22:11 +00:00
crschmidt
2b7dc4d9e4 remove unneccesary reproject: false option.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-26 02:06:46 +00:00
Schuyler Erle
db416603e1 Now 20% more lite!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5063 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-25 21:51:40 +00:00
Paul Spencer
16aa4cf7f0 (Closes #1084) Apply patch to set resolution and correctly scale width and height of SVG rectangles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5029 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 18:39:27 +00:00
Paul Spencer
65d3947045 remove local scope variables from global namespace.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 18:34:00 +00:00
Tim Schaub
4bafcddff1 properly initialize OpenLayers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5027 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 18:20:18 +00:00
Paul Spencer
5c4dae31c3 embedded comment in license text removed to clean up final lint error on built version of OpenLayers.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5017 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-19 01:14:39 +00:00
Paul Spencer
4a6e180637 semi-colon and curly brace stuff for the Rico library.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5015 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 23:49:41 +00:00
euzuro
dc6466c621 as long as we're cleaning up this little function. let's make it look pretty. Another non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5011 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 16:27:09 +00:00
euzuro
8f0ded1092 remove added (but commented out) console.log() call from r5002. As long as we're going it, let's give our return string a better variable name and move the newParams into its own variable, too. no functional change here. all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 16:25:43 +00:00
euzuro
032601d315 Fix small oddities from r5002. Odd character in ND for pagePosition() and /** **/ style comment in function getParameters(). Our style up until now has been to use // for comments when mixed with code. This allows for easier disabling of large chunks of code using /** **/ for debugging.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 16:17:35 +00:00
Paul Spencer
4cf0ffeb9f remove DigitalGlobe layer that was inadvertantly added in changeset:5002
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 13:57:17 +00:00
Paul Spencer
3e9beffc99 large scale syntactic clean up adding missing semi-colons and curly braces around blocks.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 12:27:35 +00:00
crschmidt
954df47c30 Update news.txt to indicate the release of 2.5. (And I wanted to be commit
5000.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-18 01:21:33 +00:00
euzuro
4564090ee7 readability fix for setTileSize(). No reason to be re-declaring the size variable -- it already exists as a parameter. Thanks to pvalsecc for spotting this one. :-) (See #1094)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 15:28:54 +00:00
crschmidt
faac1f98c9 Fix synchronous Ajax requests in IE. Reported by bphilippot (Closes #1097)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4990 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 14:21:07 +00:00
crschmidt
ed3221441c Refactor SVN layout in compliance with RFC/LicenseChange. This hopefully
completes an important blocker for moving forward with OSGeo incubation. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 02:21:22 +00:00
crschmidt
91e9add5a8 TMS doesn't take params. (Documentation fix only, no functional change.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-14 20:06:43 +00:00
euzuro
d9821260ae update ND and function declarations for getFullRequestString() in WFS/WMS to match the original in their superclass, HTTPRequest.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-12 18:26:52 +00:00
crschmidt
961a5a6613 Update release building script to build naturaldocs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-12 13:30:22 +00:00
crschmidt
b9a04a0e9b "In Feature.js the popup is always newly created, instead of reusing the
existing popup.", reported by (and original fix provided by) Bart. Patch
reworked, and tests modified to accomodate for destruction of popup. (Closes
#815) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-12 01:36:12 +00:00
Éric Lemoine
561f4d6a22 callback for close button on popup (closes #1061)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4916 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-10 19:03:18 +00:00
crschmidt
8312bb3f6d Fix a missing argument in the onFeatureInsert call.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-08 19:18:41 +00:00
crschmidt
d2ecceb5f0 Integrate pierre's suggested changes from 1012, based on user confusion when
working with the vector-features.html example. (Closes #1012)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-07 00:47:30 +00:00
Tim Schaub
3a00d05358 adding example of panel outside viewport
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4825 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-04 19:21:24 +00:00
Tim Schaub
29c33888cf Give MouseToolbar a CLASS_NAME (closes #1057).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-04 18:39:17 +00:00
crschmidt
84ab6d9a2f The createCRSObject stuff never really worked. Unfortunately, the tests didn't
catch it because they were all minimal unit tests -- so they never hooked
up features to layers with projections. This fixes the createCRSObject
function, including updated documentation, and includes tests for regression.
(Pullup #1062)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-04 18:11:15 +00:00
euzuro
71c338c3c6 coding standards. no functional change. (Closes #1047)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 22:34:08 +00:00
euzuro
c38e1ee76c update comment to be valid for given code. (Closes #1048)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 22:32:59 +00:00
euzuro
145e446ceb rearranging the style here for setBaseLayer() so that it's more readable, less duplication of code. No functional change, all tests pass
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 22:32:01 +00:00
crschmidt
5904d15680 KML should use the correct namespace for the placemark it is processing.
This is slightly more expensive for parsing, but leads to the ability to 
load almost all KML Placemarks with geometries on the web, instead of a small
portion of them.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 21:15:09 +00:00
crschmidt
408a7aee84 Disable dragging on the Yahoo API, since we implement it ourselves. Recent
API changes have made working with the Yahoo! API more painful (more errors)
but have also made available a function to change that, which we now use.
(Pullup #1052)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 20:11:50 +00:00
euzuro
137a69b17a Change to getZoomForResolution() (and those who call it) so that it does not choose the closest fit by default. Doing so was causing us problems, because user would drag a zoom box and then the map's new zoom would not contain said zoombox. Not good. Default is back to how it was before, but now there's an option 'closest' for those times when what we really want is the closest. Right now, the only time that's true is when we're switching baselayers. This is based on the work from sandbox/euzuro/zoomToResolution, which is started by reverting r4318. (Closes #1043)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4792 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 19:21:05 +00:00
euzuro
cb494d0c3f Allow user to specify the 'slideFactor' for the default panzoom control. (Closes #996)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4785 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 16:19:04 +00:00
crschmidt
d29782e3e2 Add API method for changing an icon's marker image.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4784 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 16:17:55 +00:00
crschmidt
3d71b4ff4e IE thinks that window and document.body are really the same thing -- even
though one has a style property and the other doesn't. This means that when
we pass in 'window' to pagePosition, it blows up, but it didin't before a 
recent reorganization. Here, we create a short term preventative measure to
ensure that old apps don't break -- this should be fixed in 2.6. 
(See #1034, #1051)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 16:15:43 +00:00
crschmidt
61bd874785 Fix Format tests (committed the wrong one.) (See #1024)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4779 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 14:57:45 +00:00
crschmidt
8ddd13db34 GeoJSON format back up to spec with draft 4. (See #1028)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 05:32:18 +00:00
crschmidt
cb3cde8d1c Support W3C Geo in Format.GeoRSS -- this.geons was referenced ,but never
defined. Add property and test. Reviewed by SDE (thx!), (See #1024) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4769 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 05:30:17 +00:00
euzuro
5957d25583 Even though we're deprecating them, we can't go back. WMS.Untiled and MapServer.Untiled both need to be able to clone correctly. Patch with tests. (See #1013)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4761 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 01:39:08 +00:00
crschmidt
d000ca7b6b The WFS moveTo function was not calling addTileMonitoringHooks on new tiles
it created after the first one. this means that the layer loadstart/loadend 
functions were never being called. Fix with a patch by rdewit. (See #1045)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-03 01:23:35 +00:00
Tim Schaub
a1d3f20632 All geometry equals methods now work with bad arguments (closes #1041).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4707 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-01 01:03:29 +00:00
Tim Schaub
7ce4621042 Add vector layer to map (see #1040).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4692 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 20:07:08 +00:00
Tim Schaub
149e85c923 In changing base layers, we now rely on the old map resolution instead of the old map zoom. This means that for layers with different resolutions arrays, we try to keep the map resolution as consistent as possible (instead of keeping an arbitrary zoom level consistent). This change also fixes a bug that comes up in changing base layers for layers with different length resolution arrays (closes #1032).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 18:11:27 +00:00
crschmidt
01154beb5d from fredj: "in lib/OpenLayers/Layer.js and lib/OpenLayers/Control.js the div
id is not passed to the createDiv() function." (Closes #1015)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:41:42 +00:00
crschmidt
33f85eeb35 From fredj: "layer.destroy() calls removeLayer() so control.destroy()
should do the same by calling removeControl()". (Closes #1009)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4676 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:25:43 +00:00
crschmidt
46c8730601 Make VML Renderer use namespace set in this.xmlns, instead of hardcoding it
in two places. From fredj. (Closes #1002)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:24:02 +00:00
crschmidt
2b2fccc847 Better firebug include. (Closes #1014)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-30 16:22:58 +00:00
euzuro
1390a0a6f7 Do not copy by reference size/bounds/position in making a new tile. All tests pass ie6/ff (Closes #1026).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4579 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 21:37:05 +00:00
euzuro
eacfa2b88a Remove 'drawn' property from Tiles. (Closes #1018)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4557 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 20:45:31 +00:00
Schuyler Erle
af2f5b6577 Add serviceVersion property to Layer.TMS. (see #1023)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4521 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 18:13:55 +00:00
Paul Spencer
8c003733cf add missing semicolons.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 17:17:45 +00:00
euzuro
c28f13f88d Fix to remove extraneous clear() from Tile.moveTo (Closes #1017)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4502 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 17:11:18 +00:00
crschmidt
0307d4868a Fix to mouseposition destroy from fredj
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-21 11:44:36 +00:00
crschmidt
85e9e30908 Extract attributes wrapped in CDATA, by adding an additional nodeType. (See
#1007) This closes the last remaining bug for 2.5RC3 -- I'll release that in
the morning unless anything new pops up.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-21 01:14:25 +00:00
Tim Schaub
640b62adc8 Adding a concatChildValues method to the XML parser. This gets around a messy 4kb limit for text node lengths - over which browsers split values among multiple siblings (see #1006).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-20 17:06:04 +00:00
Tim Schaub
ad4044cd3b Make the drag handler tidy up after itself a bit more. This solves the click blocking after shift-drag issue (see #1003).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4400 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 21:01:04 +00:00
crschmidt
8cf5670134 Remove kml-layer-linestring, now replaced by kml-layer, since we only have one
useful KML file anymore. (See #1001)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4394 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 13:49:16 +00:00
crschmidt
2e965baa17 Make KML example use kml/lines.kml instead of the now-deleted mc-search.kml.
(See #1001)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4393 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 13:44:15 +00:00
euzuro
6ce8949189 update nd for OpenLayers.Control.PanZoom. (See #983)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 01:56:00 +00:00
crschmidt
80491d626a More for docs updates: with the splitting of BaseTypes, we want to include
them all by default into builds. This will achieve that. (This fixes bart's
email to the users list: "[OpenLayers-Users] OL 2.5RC1" sent this morning.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 01:05:23 +00:00
Tim Schaub
1f745b4be9 New behavior for layer.getZoomForResolution. This method now returns the index of the resolution closest to the passed in resolution - making for fewer unwanted resolution changes, and a generally happier populace (see #990).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4381 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-19 00:23:26 +00:00
euzuro
a2fabd7d17 test to see if 'fromLatLngToContainerPixel' is defined on the prototype, not on the class. (See #994).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 23:47:40 +00:00
euzuro
471e5c5a1b whitespacing for google layer. strangely this has been there since 2.2. wierd. (See #983)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 21:03:35 +00:00
Tim Schaub
9ce8a4eb85 Use documented getContainer method instead of chasing obfuscated properties. Note that we are still tip-toeing around the dom here assuming they won't pull a fast one on us - Google users beware (see #994). Big thanks to Uz for help sleuthing this one out.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 19:04:54 +00:00
Tim Schaub
3f9aeb3ae6 speeling error in ndocs see (#983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4372 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 16:48:09 +00:00
crschmidt
e34178f4c9 In discussion with Jachym, Tim pointed out that he has already written a
proxy that supports post -- and his was more complete. Pull in Tim's. (This
is from the wfsv sandbox.) Thanks, Tim. (See #991)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4371 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 15:47:08 +00:00
crschmidt
0dd277b31b Add POST support to proxy.cgi (See #991) from jachym.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 13:48:52 +00:00
Tim Schaub
5c3abf8dd4 No circular dependencies allowed by toposort. Geometry requires WKT (for toString) and WKT requires geometry. Removing requires from WKT to fix the single file build (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4363 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-18 08:26:24 +00:00
euzuro
ccd7a34701 Replacing Tabs with Spaces. (See #988)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4356 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 23:43:48 +00:00
crschmidt
cc78cf3a13 Fix Layer.Image typo in setUrl (See #985) reported by Linda on the mailing
list. Thanks for the review Tim.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4355 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 22:49:25 +00:00
Tim Schaub
91fab27e7d Simplify click handling in the drag handler - this makes the sequence down, move, up a complete drag (see #982).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4354 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 19:25:26 +00:00
Tim Schaub
2337f9f2d8 Adding angle brackets to link class names in the docs (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4353 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:59:16 +00:00
Tim Schaub
1812c7fb0d documenting requirements for format classes (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4352 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:44:33 +00:00
Tim Schaub
0e417a3315 doc tweaks for Bounds (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4351 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:39:05 +00:00
Tim Schaub
9f0c017f92 A few doc tweaks for BaseTypes (see #983).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 16:30:44 +00:00
789 changed files with 122996 additions and 13658 deletions

View File

@@ -1,4 +1,4 @@
Format: 1.35
Format: Development Release 12-07-2007 (1.35 base)
# This is the Natural Docs languages file for this project. If you change
# anything here, it will apply to THIS PROJECT ONLY. If you'd like to change

View File

@@ -1,4 +1,4 @@
Format: 1.35
Format: Development Release 12-07-2007 (1.35 base)
Title: OpenLayers
@@ -8,6 +8,22 @@ SubTitle: JavaScript Mapping Library
# Footer: [text]
# If you want to add a copyright notice, this would be the place to do it.
# You can add a timestamp to your documentation like one of these:
# Timestamp: Generated on month day, year
# Timestamp: Updated mm/dd/yyyy
# Timestamp: Last updated mon day
#
# m - One or two digit month. January is "1"
# mm - Always two digit month. January is "01"
# mon - Short month word. January is "Jan"
# month - Long month word. January is "January"
# d - One or two digit day. 1 is "1"
# dd - Always two digit day. 1 is "01"
# day - Day with letter extension. 1 is "1st"
# yy - Two digit year. 2006 is "06"
# yyyy - Four digit year. 2006 is "2006"
# year - Four digit year. 2006 is "2006"
# --------------------------------------------------------------------------
#
@@ -29,10 +45,9 @@ SubTitle: JavaScript Mapping Library
# --------------------------------------------------------------------------
File: OpenLayers (OpenLayers.js)
Group: OpenLayers {
File: OpenLayers (no auto-title, OpenLayers.js)
File: Ajax (no auto-title, OpenLayers/Ajax.js)
Group: BaseTypes {
@@ -52,26 +67,42 @@ Group: OpenLayers {
File: Control (no auto-title, OpenLayers/Control.js)
File: ArgParser (no auto-title, OpenLayers/Control/ArgParser.js)
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
File: Attribution (no auto-title, OpenLayers/Control/Attribution.js)
File: Button (no auto-title, OpenLayers/Control/Button.js)
File: DragFeature (no auto-title, OpenLayers/Control/DragFeature.js)
File: DragPan (no auto-title, OpenLayers/Control/DragPan.js)
File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js)
File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js)
File: GetFeature (no auto-title, OpenLayers/Control/GetFeature.js)
File: Graticule (OpenLayers/Control/Graticule.js)
File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js)
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.js)
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
File: Pan (no auto-title, OpenLayers/Control/Pan.js)
File: Panel (no auto-title, OpenLayers/Control/Panel.js)
File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js)
File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js)
File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js)
File: Permalink (no auto-title, OpenLayers/Control/Permalink.js)
File: Scale (no auto-title, OpenLayers/Control/Scale.js)
File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js)
File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js)
File: Snapping (no auto-title, OpenLayers/Control/Snapping.js)
File: Split (no auto-title, OpenLayers/Control/Split.js)
File: WMSGetFeatureInfo (OpenLayers/Control/WMSGetFeatureInfo.js)
File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js)
File: PanZoom (OpenLayers/Control/PanZoom.js)
File: ZoomIn (no auto-title, OpenLayers/Control/ZoomIn.js)
File: ZoomOut (no auto-title, OpenLayers/Control/ZoomOut.js)
File: ZoomPanel (no auto-title, OpenLayers/Control/ZoomPanel.js)
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
} # Group: Control
File: Events (no auto-title, OpenLayers/Events.js)
@@ -79,26 +110,120 @@ Group: OpenLayers {
Group: Feature {
File: Feature (no auto-title, OpenLayers/Feature.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature
Group: Filter {
File: Filter (no auto-title, OpenLayers/Filter.js)
File: Comparison (no auto-title, OpenLayers/Filter/Comparison.js)
File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js)
File: Logical (no auto-title, OpenLayers/Filter/Logical.js)
File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js)
} # Group: Filter
Group: Format {
File: Format (OpenLayers/Format.js)
File: Format (no auto-title, OpenLayers/Format.js)
File: ArcXML (no auto-title, OpenLayers/Format/ArcXML.js)
File: ArcXML.Features (no auto-title, OpenLayers/Format/ArcXML/Features.js)
File: Atom (no auto-title, OpenLayers/Format/Atom.js)
File: CSWGetDomain.DEFAULTS (no auto-title, OpenLayers/Format/CSWGetDomain.js)
File: CSWGetDomain.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetDomain/v2_0_2.js)
File: CSWGetRecords.DEFAULTS (no auto-title, OpenLayers/Format/CSWGetRecords.js)
File: CSWGetRecords.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetRecords/v2_0_2.js)
Group: Filter {
File: Filter (no auto-title, OpenLayers/Format/Filter.js)
File: v1 (no auto-title, OpenLayers/Format/Filter/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/Filter/v1_0_0.js)
File: v1_1_0 (OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js)
File: Base (no auto-title, OpenLayers/Format/GML/Base.js)
File: v2 (no auto-title, OpenLayers/Format/GML/v2.js)
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML
File: GPX (no auto-title, OpenLayers/Format/GPX.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: OWSCommon.v1_1_0 (OpenLayers/Format/OWSCommon/v1_1_0.js)
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: SOSCapabilities (OpenLayers/Format/SOSCapabilities.js)
File: SOSCapabilities.v1_0_0 (OpenLayers/Format/SOSCapabilities/v1_0_0.js)
File: SOSGetObservation (OpenLayers/Format/SOSGetObservation.js)
File: Text (no auto-title, OpenLayers/Format/Text.js)
File: WFS (no auto-title, OpenLayers/Format/WFS.js)
Group: WFSCapabilities {
File: WFSCapabilities (no auto-title, OpenLayers/Format/WFSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WFSCapabilities/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js)
File: v1 (OpenLayers/Format/WFST/v1.js)
File: v1_0_0 (OpenLayers/Format/WFST/v1_0_0.js)
File: v1_1_0 (OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
Group: WMC {
File: WMC (no auto-title, OpenLayers/Format/WMC.js)
File: v1 (no auto-title, OpenLayers/Format/WMC/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WMC/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js)
} # Group: WMC
Group: WMSCapabilities {
File: WMSCapabilities (no auto-title, OpenLayers/Format/WMSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_0.js)
File: v1_1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1.js)
File: v1_3 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3.js)
File: v1_3_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3_0.js)
} # Group: WMSCapabilities
Group: WMSDescribeLayer {
File: WMSDescribeLayer (no auto-title, OpenLayers/Format/WMSDescribeLayer.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # Group: WMSDescribeLayer
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
File: XML (no auto-title, OpenLayers/Format/XML.js)
} # Group: Format
Group: Geometry {
File: Geometry (OpenLayers/Geometry.js)
File: Geometry (no auto-title, OpenLayers/Geometry.js)
File: Collection (no auto-title, OpenLayers/Geometry/Collection.js)
File: Curve (no auto-title, OpenLayers/Geometry/Curve.js)
File: LinearRing (no auto-title, OpenLayers/Geometry/LinearRing.js)
@@ -109,15 +234,16 @@ Group: OpenLayers {
File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
File: Surface (no auto-title, OpenLayers/Geometry/Surface.js)
} # Group: Geometry
Group: Handler {
File: Handler (OpenLayers/Handler.js)
File: Handler (no auto-title, OpenLayers/Handler.js)
File: Box (no auto-title, OpenLayers/Handler/Box.js)
File: Click (no auto-title, OpenLayers/Handler/Click.js)
File: Drag (no auto-title, OpenLayers/Handler/Drag.js)
File: Feature (no auto-title, OpenLayers/Handler/Feature.js)
File: Hover (no auto-title, OpenLayers/Handler/Hover.js)
File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js)
File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js)
File: Path (no auto-title, OpenLayers/Handler/Path.js)
@@ -128,9 +254,58 @@ Group: OpenLayers {
File: Icon (no auto-title, OpenLayers/Icon.js)
Group: Lang {
File: Lang (no auto-title, OpenLayers/Lang.js)
File: ar (no auto-title, OpenLayers/Lang/ar.js)
File: be-tarask (no auto-title, OpenLayers/Lang/be-tarask.js)
File: bg (no auto-title, OpenLayers/Lang/bg.js)
File: br (no auto-title, OpenLayers/Lang/br.js)
File: ca (no auto-title, OpenLayers/Lang/ca.js)
File: cs-CZ (no auto-title, OpenLayers/Lang/cs-CZ.js)
File: da-DK (no auto-title, OpenLayers/Lang/da-DK.js)
File: de (no auto-title, OpenLayers/Lang/de.js)
File: en (no auto-title, OpenLayers/Lang/en.js)
File: en-CA (no auto-title, OpenLayers/Lang/en-CA.js)
File: es (no auto-title, OpenLayers/Lang/es.js)
File: el (no auto-title, OpenLayers/Lang/el.js)
File: fi (no auto-title, OpenLayers/Lang/fi.js)
File: fr (no auto-title, OpenLayers/Lang/fr.js)
File: fur (no auto-title, OpenLayers/Lang/fur.js)
File: gl (no auto-title, OpenLayers/Lang/gl.js)
File: gsw (no auto-title, OpenLayers/Lang/gsw.js)
File: hr (no auto-title, OpenLayers/Lang/hr.js)
File: hsb (no auto-title, OpenLayers/Lang/hsb.js)
File: hu (no auto-title, OpenLayers/Lang/hu.js)
File: ia (no auto-title, OpenLayers/Lang/ia.js)
File: id (no auto-title, OpenLayers/Lang/id.js)
File: io (no auto-title, OpenLayers/Lang/io.js)
File: is (no auto-title, OpenLayers/Lang/is.js)
File: it (no auto-title, OpenLayers/Lang/it.js)
File: ja (no auto-title, OpenLayers/Lang/ja.js)
File: km (no auto-title, OpenLayers/Lang/km.js)
File: ksh (no auto-title, OpenLayers/Lang/ksh.js)
File: nds (no auto-title, OpenLayers/Lang/nds.js)
File: nb (no auto-title, OpenLayers/Lang/nb.js)
File: nl (no auto-title, OpenLayers/Lang/nl.js)
File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.js)
File: pt (no auto-title, OpenLayers/Lang/pt.js)
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js)
File: sk (no auto-title, OpenLayers/Lang/sk.js)
File: sv-SE (no auto-title, OpenLayers/Lang/sv-SE.js)
File: te (no auto-title, OpenLayers/Lang/te.js)
File: vi (no auto-title, OpenLayers/Lang/vi.js)
File: zh-CN (no auto-title, OpenLayers/Lang/zh-CN.js)
File: zh-TW (no auto-title, OpenLayers/Lang/zh-TW.js)
} # Group: Lang
Group: Layer {
File: Layer (OpenLayers/Layer.js)
File: Layer (no auto-title, OpenLayers/Layer.js)
File: ArcGIS93Rest (no auto-title, OpenLayers/Layer/ArcGIS93Rest.js)
File: ArcIMS (no auto-title, OpenLayers/Layer/ArcIMS.js)
File: Boxes (no auto-title, OpenLayers/Layer/Boxes.js)
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
@@ -141,54 +316,110 @@ Group: OpenLayers {
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js)
File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js)
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
File: Text (no auto-title, OpenLayers/Layer/Text.js)
File: TileCache (no auto-title, OpenLayers/Layer/TileCache.js)
File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
} # Group: Layer
File: Map (no auto-title, OpenLayers/Map.js)
Group: Marker {
File: Marker (OpenLayers/Marker.js)
File: Marker (no auto-title, OpenLayers/Marker.js)
File: Box (no auto-title, OpenLayers/Marker/Box.js)
} # Group: Marker
Group: Popup {
File: Popup (OpenLayers/Popup.js)
File: Popup (no auto-title, OpenLayers/Popup.js)
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
} # Group: Popup
File: Projection (no auto-title, OpenLayers/Projection.js)
Group: Protocol {
File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: SQL {
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
} # Group: SQL
Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
File: v1 (no auto-title, OpenLayers/Protocol/WFS/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Protocol/WFS/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Protocol/WFS/v1_1_0.js)
} # Group: WFS
} # Group: Protocol
Group: Renderer {
File: Renderer (OpenLayers/Renderer.js)
File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: Elements (no auto-title, OpenLayers/Renderer/Elements.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer
Group: Request {
File: Request (no auto-title, OpenLayers/Request.js)
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request
File: Rule (no auto-title, OpenLayers/Rule.js)
Group: Strategy {
File: Strategy (no auto-title, OpenLayers/Strategy.js)
File: BBOX (no auto-title, OpenLayers/Strategy/BBOX.js)
File: Cluster (no auto-title, OpenLayers/Strategy/Cluster.js)
File: Fixed (no auto-title, OpenLayers/Strategy/Fixed.js)
File: Paging (no auto-title, OpenLayers/Strategy/Paging.js)
File: Refresh (OpenLayers/Strategy/Refresh.js)
File: Save (OpenLayers/Strategy/Save.js)
} # Group: Strategy
File: Style (no auto-title, OpenLayers/Style.js)
File: StyleMap (no auto-title, OpenLayers/StyleMap.js)
Group: Tile {
File: Tile (OpenLayers/Tile.js)
File: Tile (no auto-title, OpenLayers/Tile.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
File: IFrame (OpenLayers/Tile/Image/IFrame.js)
} # Group: Tile
File: Util (OpenLayers/Util.js)
File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js)
} # Group: OpenLayers
Group: Index {

View File

@@ -1,4 +1,4 @@
Format: 1.35
Format: Development Release 12-07-2007 (1.35 base)
# This is the Natural Docs topics file for this project. If you change anything
# here, it will apply to THIS PROJECT ONLY. If you'd like to change something
@@ -58,9 +58,6 @@ Ignore Keywords:
# Class Hierarchy: [yes|no]
# Whether the topics are part of the class hierarchy. Defaults to no.
#
# Variable Type: [yes|no]
# Whether the topics can be a variable type. Defaults to no.
#
# Page Title If First: [yes|no]
# Whether the topic's title becomes the page title if it's the first one in
# a file. Defaults to no.

View File

@@ -4,7 +4,7 @@
* Build:
cd build
./build.sh
./build.py
cd ..
* Upload the result to the server: e.g.

View File

@@ -2,11 +2,22 @@
import sys
sys.path.append("../tools")
import mergejs
import jsmin, mergejs
have_compressor = None
try:
import jsmin
have_compressor = "jsmin"
except ImportError:
try:
import minimize
have_compressor = "minimize"
except Exception, E:
print E
pass
sourceDirectory = "../lib"
configFilename = "library.cfg"
configFilename = "full.cfg"
outputFilename = "OpenLayers.js"
if len(sys.argv) > 1:
@@ -21,8 +32,15 @@ if len(sys.argv) > 2:
print "Merging libraries."
merged = mergejs.run(sourceDirectory, None, configFilename)
print "Compressing."
minimized = jsmin.jsmin(merged)
if have_compressor == "jsmin":
print "Compressing using jsmin."
minimized = jsmin.jsmin(merged)
elif have_compressor == "minimize":
print "Compressing using minimize."
minimized = minimize.minimize(merged)
else: # fallback
print "Not compressing."
minimized = merged
print "Adding license file."
minimized = file("license.txt").read() + minimized

2
build/buildUncompressed.py Normal file → Executable file
View File

@@ -6,7 +6,7 @@ sys.path.append("../tools")
import jsmin, mergejs
sourceDirectory = "../lib"
configFilename = "library.cfg"
configFilename = "full.cfg"
outputFilename = "OpenLayers.js"
if len(sys.argv) > 1:

View File

@@ -1,3 +1,6 @@
# This is the full build with all files: this includes the vector-related files
# like Renderers and Formats.
[first]
OpenLayers/SingleFile.js
OpenLayers.js
@@ -13,3 +16,17 @@ Rico/Corner.js
[exclude]
Firebug/firebug.js
Firebug/firebugx.js
OpenLayers/Lang/ca.js
OpenLayers/Lang/cs-CZ.js
OpenLayers/Lang/da-DK.js
OpenLayers/Lang/de.js
OpenLayers/Lang/en-CA.js
OpenLayers/Lang/es.js
OpenLayers/Lang/fr.js
OpenLayers/Lang/it.js
OpenLayers/Lang/nb.js
OpenLayers/Lang/nl.js
OpenLayers/Lang/pt-BR.js
OpenLayers/Lang/sv-SE.js
OpenLayers/Lang/zh-TW.js
OpenLayers/Lang/zh-CN.js

View File

@@ -1,3 +1,7 @@
# This file includes the OpenLayers code to create a build for everything that
# does not require vector support. build.py uses this profile if no other one
# is specified.
[first]
OpenLayers/SingleFile.js
OpenLayers.js
@@ -46,5 +50,19 @@ OpenLayers/Renderer/Elements.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/VML.js
OpenLayers/Renderer.js
OpenLayers/Lang/ca.js
OpenLayers/Lang/cs-CZ.js
OpenLayers/Lang/da-DK.js
OpenLayers/Lang/de.js
OpenLayers/Lang/en-CA.js
OpenLayers/Lang/es.js
OpenLayers/Lang/fr.js
OpenLayers/Lang/it.js
OpenLayers/Lang/nb.js
OpenLayers/Lang/nl.js
OpenLayers/Lang/pt-BR.js
OpenLayers/Lang/sv-SE.js
OpenLayers/Lang/zh-TW.js
OpenLayers/Lang/zh-CN.js

View File

@@ -2,8 +2,8 @@
OpenLayers.js -- OpenLayers Map Viewer Library
Copyright 2005-2007 MetaCarta, Inc., released under a modified BSD license.
Please see http://svn.openlayers.org/trunk/openlayers/repository-license.txt
Copyright 2005-2008 MetaCarta, Inc., released under the Clear BSD license.
Please see http://svn.openlayers.org/trunk/openlayers/license.txt
for the full text of the license.
Includes compressed code under the following licenses:
@@ -21,7 +21,7 @@
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
*
/*--------------------------------------------------------------------------*/
*--------------------------------------------------------------------------*/
/**
*
@@ -43,3 +43,50 @@
*
**/
/**
* Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/>
* Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
/**
* Contains portions of Gears <http://code.google.com/apis/gears/>
*
* Copyright 2007, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of Google Inc. nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sets up google.gears.*, which is *the only* supported way to access Gears.
*
* Circumvent this file at your own risk!
*
* In the future, Gears may automatically define google.gears.* without this
* file. Gears may use these objects to transparently fix bugs and compatibility
* issues. Applications that use the code below will continue to work seamlessly
* when that happens.
*/

View File

@@ -1,3 +1,9 @@
# This file includes a small subset of OpenLayers code, designed to be
# integrated into another application. It includes only the Layer types
# neccesary to create tiled or untiled WMS, and does not include any Controls.
# This is the result of what was at the time called "Webmap.js" at the FOSS4G
# Web Mapping BOF.
[first]
OpenLayers/SingleFile.js
OpenLayers.js
@@ -8,16 +14,9 @@ OpenLayers/Util.js
[last]
[include]
OpenLayers/Events.js
OpenLayers/Map.js
OpenLayers/Layer.js
OpenLayers/Layer/Grid.js
OpenLayers/Layer/HTTPRequest.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/WMS/Untiled.js
OpenLayers/Tile.js
OpenLayers/Tile/Image.js
[exclude]
Firebug/firebug.js
Firebug/firebugx.js

View File

@@ -1,27 +1,50 @@
OpenLayers contributors:
Mike Adair
Jeff Adams
Seb Benthall
Howard Butler
Bertil Chaupis
John Cole
Tim Coulter
Robert Coup
Jeff Dege
Roald de Wit
Schuyler Erle
Christian López Espínola
John Frank
Sean Gilles
Pierre Giraud
Andreas Hocevar
Ian Johnson
Eric Lemoine
Philip Lindsay
Martijn van Oosterhout
David Overstrom
Corey Puffault
Peter William Robins
Gregers Rygg
Tim Schaub
Christopher Schmidt
Cameron Shorter
Pedro Simonetti
Paul Spencer
Paul Smith
Glen Stampoultzis
James Stembridge
Erik Uzureau
Bart van den Eijnden
Ivan Willig
Thomas Wood
Bill Woodall
Steve Woodbridge
David Zwarg
Some portions of OpenLayers are used under the Apache 2.0 license, available
in doc/licenses/APACHE-2.0.txt.
OpenLayers is graciously supported by MetaCarta, Inc.
<http://www.metacarta.com>.
Some portions of OpenLayers are used under the MIT license, availabie in
doc/licenses/MIT-LICENSE.txt.
Some portions of OpenLayers are Copyright 2001 Robert Penner, and are used
under the BSD license, available in doc/licenses/BSD-LICENSE.txt

202
doc/licenses/APACHE-2.0.txt Normal file
View File

@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -0,0 +1,28 @@
Redistribution and use of this software in source and binary forms, with or
without modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of Yahoo! Inc. nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of Yahoo! Inc.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,18 @@
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -1,3 +1,7 @@
Automatically generated OpenLayers API documentation is online:
http://dev.openlayers.org/docs/overview-tree.html
http://dev.openlayers.org/apidocs
More information on documentation is available from:
http://trac.openlayers.org/wiki/Documentation

96
doc/walkthru.html Normal file
View File

@@ -0,0 +1,96 @@
<html>
<head>
<title>OpenLayers examples walkthrough</title>
<style type="text/css">
a { color:blue; text-decoration: none; }
a:hover { text-decoration: underline; }
</style>
<base href="http://openlayers.org/dev/examples/">
</head>
<body style="font-family: sans-serif">
<h1><pre style="font-size: larger">&lt;ol&gt;</pre></h1>
<p>API documentation: <a href="http://dev.openlayers.org/docs/">http://dev.openlayers.org/docs/</a></p>
<p>Examples: <a href="http://dev.openlayers.org/examples/">http://openlayers.org/dev/examples/</a></p>
<h2>Maps</h2>
<ol>
<li><a href="../examples/lite.html">Basic example</a></li>
<li><a href="../examples/layerswitcher.html">Layer switcher (aka legend)</a></li>
<li><a href="../examples/example.html">Base layers versus overlays</a></li>
<li><a href="../examples/multiserver.html">Multiple WMS mirrors</a></li>
<li><a href="../examples/fullScreen.html">Full screen map</a></li>
<li><a href="../examples/wrapDateLine.html">Wrapping the date line</a></li>
<li><a href="../examples/projected-map.html">Other cartographic projections</a></li>
<li><a href="../examples/layer-opacity.html">Translucent overlays</a></li>
</ol>
<h2>Raster Layers</h2>
<ol>
<li><a href="../examples/wms-untiled.html">Untiled WMS layer</a></li>
<li><a href="../examples/kamap.html">Ka-Map layer</a></li>
<li><a href="../examples/mapserver.html">MapServer layer</a></li>
<li><a href="../examples/worldwind.html">Worldwind layer</a></li>
<li><a href="../examples/tms.html">TMS layer</a></li>
<li><a href="../examples/image-layer.html">Image layer</a></li>
<li><a href="../examples/google.html">Google layer</a></li>
<li><a href="../examples/ve.html">VirtualEarth layer</a></li>
<li><a href="../examples/spherical-mercator.html">Spherical Mercator ("EPSG:900913")</a></li>
<li><a href="http://tilecache.org/">TileCache</a></li>
</ol>
<h2>Marker Layers</h2>
<ol>
<li><a href="../examples/markers.html">Markers</a></li>
<li><a href="../examples/markerResize.html">Changing marker properties dynamically</a></li>
<li><a href="../examples/popups.html">Popups</a></li>
<li><a href="../examples/georss.html">GeoRSS</a> (<a href="georss.xml">example data</a>)</a></li>
<li><a href="../examples/georss-markers.html">GeoRSS with custom markers</a></li>
<li><a href="../examples/wfs.html">Point layer from WFS</a></li>
<li><a href="../examples/getfeatureinfo.html">WFS GetFeatureInfo example</a></li>
</ol>
<h2>Events and Controls</h2>
<ol>
<li><a href="../examples/navtoolbar.html">Navigation tools on the map</a></li>
<li><a href="../examples/navtoolbar-outsidemap.html">Navigation toolbar off the map</a></li>
<li><a href="../examples/mouse-position.html">Tracking the mouse position</a></li>
<li><a href="../examples/overview.html">Overview map</a></li>
<li><a href="../examples/attribution.html">Layer attribution</a></li>
<li><a href="../examples/controls.html">Full range of controls</a></li>
<li><a href="../examples/custom-control.html">Custom controls #1</a></li>
<li><a href="../examples/custom-control.html">Custom controls #2</a></li>
<li><a href="../examples/custom-style.html">Custom control styles</a></li>
<li><a href="../examples/click.html">Trapping click events</a></li>
<li><a href="../examples/layerLoadMonitoring.html">Tracking map events</a></li>
</ol>
<h2>Vector Layers</h2>
<ol>
<li><a href="../examples/vector-features.html">Generating features in JavaScript</a></li>
<li><a href="../examples/gml-layer.html">Loading features from GML</a></li>
<li><a href="../examples/kml-layer.html">Loading features from KML</a></li>
<li><a href="../examples/gml-serialize.html">Serializing features to GML</a></li>
<li><a href="../examples/vector-formats.html">Serializing to other formats</a></li>
<li><a href="../examples/select-feature.html">Selecting features</a></li>
<li><a href="../examples/select-feature-openpopup.html">Attaching popups to features</a></li>
</ol>
<h2>Editing Tools</h2>
<ol>
<li><a href="../examples/draw-feature.html">Drawing features</a></li>
<li><a href="../examples/editingtoolbar.html">Editing toolbar</a> (<a href="editingtoolbar-outside.html">outside the map</a>)</li>
<li><a href="../examples/regular-polygons.html">Creating regular polygons</a></li>
<li><a href="../examples/modify-feature.html">Modifying features</a></li>
<li><a href="../examples/resize-features.html">Resizing features</a></li>
<li><a href="../examples/rotate-features.html">Rotating features</a></li>
<li><a href="../examples/wfs-t.html">Transactional WFS example</a></li>
<li><a href="http://featureserver.org/">FeatureServer</a></li>
</ol>
<h2>Testing</h2>
<ol>
<li><a href="../tests/run-tests.html">Test.AnotherWay suite</a></li>
</ol>
<h1><pre style="font-size: larger">&lt;/ol&gt;</pre></h1>
</body>
</html>

View File

@@ -1,4 +1,4 @@
Format: 1.35
Format: Development Release 12-07-2007 (1.35 base)
# This is the Natural Docs languages file for this project. If you change
# anything here, it will apply to THIS PROJECT ONLY. If you'd like to change

View File

@@ -1,4 +1,4 @@
Format: 1.35
Format: Development Release 12-07-2007 (1.35 base)
Title: OpenLayers
@@ -8,6 +8,22 @@ SubTitle: JavaScript Mapping Library
# Footer: [text]
# If you want to add a copyright notice, this would be the place to do it.
# You can add a timestamp to your documentation like one of these:
# Timestamp: Generated on month day, year
# Timestamp: Updated mm/dd/yyyy
# Timestamp: Last updated mon day
#
# m - One or two digit month. January is "1"
# mm - Always two digit month. January is "01"
# mon - Short month word. January is "Jan"
# month - Long month word. January is "January"
# d - One or two digit day. 1 is "1"
# dd - Always two digit day. 1 is "01"
# day - Day with letter extension. 1 is "1st"
# yy - Two digit year. 2006 is "06"
# yyyy - Four digit year. 2006 is "2006"
# year - Four digit year. 2006 is "2006"
# --------------------------------------------------------------------------
#
@@ -29,10 +45,9 @@ SubTitle: JavaScript Mapping Library
# --------------------------------------------------------------------------
File: OpenLayers (OpenLayers.js)
Group: OpenLayers {
File: OpenLayers (no auto-title, OpenLayers.js)
File: Ajax (no auto-title, OpenLayers/Ajax.js)
Group: BaseTypes {
@@ -50,55 +65,165 @@ Group: OpenLayers {
Group: Control {
File: Control (OpenLayers/Control.js)
File: Control (no auto-title, OpenLayers/Control.js)
File: ArgParser (no auto-title, OpenLayers/Control/ArgParser.js)
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
File: Attribution (no auto-title, OpenLayers/Control/Attribution.js)
File: Button (no auto-title, OpenLayers/Control/Button.js)
File: DragFeature (no auto-title, OpenLayers/Control/DragFeature.js)
File: DragPan (no auto-title, OpenLayers/Control/DragPan.js)
File: DrawFeature (no auto-title, OpenLayers/Control/DrawFeature.js)
File: EditingToolbar (no auto-title, OpenLayers/Control/EditingToolbar.js)
File: GetFeature (no auto-title, OpenLayers/Control/GetFeature.js)
File: Graticule (OpenLayers/Control/Graticule.js)
File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js)
File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js)
File: Measure (no auto-title, OpenLayers/Control/Measure.js)
File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js)
File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js)
File: MousePosition (no auto-title, OpenLayers/Control/MousePosition.js)
File: MouseToolbar (no auto-title, OpenLayers/Control/MouseToolbar.js)
File: Navigation (no auto-title, OpenLayers/Control/Navigation.js)
File: NavigationHistory (no auto-title, OpenLayers/Control/NavigationHistory.js)
File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js)
File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js)
File: Pan (no auto-title, OpenLayers/Control/Pan.js)
File: Panel (no auto-title, OpenLayers/Control/Panel.js)
File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js)
File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js)
File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js)
File: Permalink (no auto-title, OpenLayers/Control/Permalink.js)
File: Scale (no auto-title, OpenLayers/Control/Scale.js)
File: ScaleLine (no auto-title, OpenLayers/Control/ScaleLine.js)
File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js)
File: Snapping (no auto-title, OpenLayers/Control/Snapping.js)
File: Split (no auto-title, OpenLayers/Control/Split.js)
File: WMSGetFeatureInfo (OpenLayers/Control/WMSGetFeatureInfo.js)
File: ZoomBox (no auto-title, OpenLayers/Control/ZoomBox.js)
File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js)
File: ZoomIn (no auto-title, OpenLayers/Control/ZoomIn.js)
File: ZoomOut (no auto-title, OpenLayers/Control/ZoomOut.js)
File: ZoomPanel (no auto-title, OpenLayers/Control/ZoomPanel.js)
File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js)
} # Group: Control
File: Events (no auto-title, OpenLayers/Events.js)
Group: Feature {
File: Feature (OpenLayers/Feature.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
File: Feature (no auto-title, OpenLayers/Feature.js)
File: Vector (no auto-title, OpenLayers/Feature/Vector.js)
File: WFS (no auto-title, OpenLayers/Feature/WFS.js)
} # Group: Feature
Group: Filter {
File: Filter (no auto-title, OpenLayers/Filter.js)
File: Comparison (no auto-title, OpenLayers/Filter/Comparison.js)
File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js)
File: Logical (no auto-title, OpenLayers/Filter/Logical.js)
File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js)
} # Group: Filter
Group: Format {
File: Format (OpenLayers/Format.js)
File: Format (no auto-title, OpenLayers/Format.js)
File: ArcXML (no auto-title, OpenLayers/Format/ArcXML.js)
File: ArcXML.Features (no auto-title, OpenLayers/Format/ArcXML/Features.js)
File: Atom (no auto-title, OpenLayers/Format/Atom.js)
File: CSWGetDomain.DEFAULTS (no auto-title, OpenLayers/Format/CSWGetDomain.js)
File: CSWGetDomain.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetDomain/v2_0_2.js)
File: CSWGetRecords.DEFAULTS (no auto-title, OpenLayers/Format/CSWGetRecords.js)
File: CSWGetRecords.v2_0_2 (no auto-title, OpenLayers/Format/CSWGetRecords/v2_0_2.js)
Group: Filter {
File: Filter (no auto-title, OpenLayers/Format/Filter.js)
File: v1 (no auto-title, OpenLayers/Format/Filter/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/Filter/v1_0_0.js)
File: v1_1_0 (OpenLayers/Format/Filter/v1_1_0.js)
} # Group: Filter
File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js)
File: GeoRSS (no auto-title, OpenLayers/Format/GeoRSS.js)
Group: GML {
File: GML (no auto-title, OpenLayers/Format/GML.js)
File: Base (no auto-title, OpenLayers/Format/GML/Base.js)
File: v2 (no auto-title, OpenLayers/Format/GML/v2.js)
File: v3 (no auto-title, OpenLayers/Format/GML/v3.js)
} # Group: GML
File: GPX (no auto-title, OpenLayers/Format/GPX.js)
File: JSON (no auto-title, OpenLayers/Format/JSON.js)
File: KML (no auto-title, OpenLayers/Format/KML.js)
File: OSM (no auto-title, OpenLayers/Format/OSM.js)
File: OWSCommon.v1_1_0 (OpenLayers/Format/OWSCommon/v1_1_0.js)
Group: SLD {
File: SLD (no auto-title, OpenLayers/Format/SLD.js)
File: v1 (no auto-title, OpenLayers/Format/SLD/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js)
} # Group: SLD
File: SOSCapabilities (OpenLayers/Format/SOSCapabilities.js)
File: SOSCapabilities.v1_0_0 (OpenLayers/Format/SOSCapabilities/v1_0_0.js)
File: SOSGetObservation (OpenLayers/Format/SOSGetObservation.js)
File: Text (no auto-title, OpenLayers/Format/Text.js)
File: WFS (no auto-title, OpenLayers/Format/WFS.js)
Group: WFSCapabilities {
File: WFSCapabilities (no auto-title, OpenLayers/Format/WFSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WFSCapabilities/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WFSCapabilities/v1_1_0.js)
} # Group: WFSCapabilities
File: WFSDescribeFeatureType (no auto-title, OpenLayers/Format/WFSDescribeFeatureType.js)
Group: WFST {
File: WFST (no auto-title, OpenLayers/Format/WFST.js)
File: v1 (OpenLayers/Format/WFST/v1.js)
File: v1_0_0 (OpenLayers/Format/WFST/v1_0_0.js)
File: v1_1_0 (OpenLayers/Format/WFST/v1_1_0.js)
} # Group: WFST
File: WKT (no auto-title, OpenLayers/Format/WKT.js)
Group: WMC {
File: WMC (no auto-title, OpenLayers/Format/WMC.js)
File: v1 (no auto-title, OpenLayers/Format/WMC/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Format/WMC/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WMC/v1_1_0.js)
} # Group: WMC
Group: WMSCapabilities {
File: WMSCapabilities (no auto-title, OpenLayers/Format/WMSCapabilities.js)
File: v1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1.js)
File: v1_1_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_0.js)
File: v1_1_1 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_1_1.js)
File: v1_3 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3.js)
File: v1_3_0 (no auto-title, OpenLayers/Format/WMSCapabilities/v1_3_0.js)
} # Group: WMSCapabilities
Group: WMSDescribeLayer {
File: WMSDescribeLayer (no auto-title, OpenLayers/Format/WMSDescribeLayer.js)
File: v1_1 (no auto-title, OpenLayers/Format/WMSDescribeLayer/v1_1.js)
} # Group: WMSDescribeLayer
File: WMSGetFeatureInfo (no auto-title, OpenLayers/Format/WMSGetFeatureInfo.js)
File: XML (no auto-title, OpenLayers/Format/XML.js)
} # Group: Format
Group: Geometry {
File: Geometry (OpenLayers/Geometry.js)
File: Geometry (no auto-title, OpenLayers/Geometry.js)
File: Collection (no auto-title, OpenLayers/Geometry/Collection.js)
File: Curve (no auto-title, OpenLayers/Geometry/Curve.js)
File: LinearRing (no auto-title, OpenLayers/Geometry/LinearRing.js)
@@ -109,15 +234,16 @@ Group: OpenLayers {
File: Point (no auto-title, OpenLayers/Geometry/Point.js)
File: Polygon (no auto-title, OpenLayers/Geometry/Polygon.js)
File: Rectangle (no auto-title, OpenLayers/Geometry/Rectangle.js)
File: Surface (no auto-title, OpenLayers/Geometry/Surface.js)
} # Group: Geometry
Group: Handler {
File: Handler (OpenLayers/Handler.js)
File: Handler (no auto-title, OpenLayers/Handler.js)
File: Box (no auto-title, OpenLayers/Handler/Box.js)
File: Click (no auto-title, OpenLayers/Handler/Click.js)
File: Drag (no auto-title, OpenLayers/Handler/Drag.js)
File: Feature (no auto-title, OpenLayers/Handler/Feature.js)
File: Hover (no auto-title, OpenLayers/Handler/Hover.js)
File: Keyboard (no auto-title, OpenLayers/Handler/Keyboard.js)
File: MouseWheel (no auto-title, OpenLayers/Handler/MouseWheel.js)
File: Path (no auto-title, OpenLayers/Handler/Path.js)
@@ -128,9 +254,58 @@ Group: OpenLayers {
File: Icon (no auto-title, OpenLayers/Icon.js)
Group: Lang {
File: Lang (no auto-title, OpenLayers/Lang.js)
File: ar (no auto-title, OpenLayers/Lang/ar.js)
File: be-tarask (no auto-title, OpenLayers/Lang/be-tarask.js)
File: bg (no auto-title, OpenLayers/Lang/bg.js)
File: br (no auto-title, OpenLayers/Lang/br.js)
File: ca (no auto-title, OpenLayers/Lang/ca.js)
File: cs-CZ (no auto-title, OpenLayers/Lang/cs-CZ.js)
File: da-DK (no auto-title, OpenLayers/Lang/da-DK.js)
File: de (no auto-title, OpenLayers/Lang/de.js)
File: en (no auto-title, OpenLayers/Lang/en.js)
File: en-CA (no auto-title, OpenLayers/Lang/en-CA.js)
File: es (no auto-title, OpenLayers/Lang/es.js)
File: el (no auto-title, OpenLayers/Lang/el.js)
File: fi (no auto-title, OpenLayers/Lang/fi.js)
File: fr (no auto-title, OpenLayers/Lang/fr.js)
File: fur (no auto-title, OpenLayers/Lang/fur.js)
File: gl (no auto-title, OpenLayers/Lang/gl.js)
File: gsw (no auto-title, OpenLayers/Lang/gsw.js)
File: hr (no auto-title, OpenLayers/Lang/hr.js)
File: hsb (no auto-title, OpenLayers/Lang/hsb.js)
File: hu (no auto-title, OpenLayers/Lang/hu.js)
File: ia (no auto-title, OpenLayers/Lang/ia.js)
File: id (no auto-title, OpenLayers/Lang/id.js)
File: io (no auto-title, OpenLayers/Lang/io.js)
File: is (no auto-title, OpenLayers/Lang/is.js)
File: it (no auto-title, OpenLayers/Lang/it.js)
File: ja (no auto-title, OpenLayers/Lang/ja.js)
File: km (no auto-title, OpenLayers/Lang/km.js)
File: ksh (no auto-title, OpenLayers/Lang/ksh.js)
File: nds (no auto-title, OpenLayers/Lang/nds.js)
File: nb (no auto-title, OpenLayers/Lang/nb.js)
File: nl (no auto-title, OpenLayers/Lang/nl.js)
File: nn (no auto-title, OpenLayers/Lang/nn.js)
File: oc (no auto-title, OpenLayers/Lang/oc.js)
File: pt (no auto-title, OpenLayers/Lang/pt.js)
File: pt-BR (no auto-title, OpenLayers/Lang/pt-BR.js)
File: ru (no auto-title, OpenLayers/Lang/ru.js)
File: sk (no auto-title, OpenLayers/Lang/sk.js)
File: sv-SE (no auto-title, OpenLayers/Lang/sv-SE.js)
File: te (no auto-title, OpenLayers/Lang/te.js)
File: vi (no auto-title, OpenLayers/Lang/vi.js)
File: zh-CN (no auto-title, OpenLayers/Lang/zh-CN.js)
File: zh-TW (no auto-title, OpenLayers/Lang/zh-TW.js)
} # Group: Lang
Group: Layer {
File: Layer (OpenLayers/Layer.js)
File: Layer (no auto-title, OpenLayers/Layer.js)
File: ArcGIS93Rest (no auto-title, OpenLayers/Layer/ArcGIS93Rest.js)
File: ArcIMS (no auto-title, OpenLayers/Layer/ArcIMS.js)
File: Boxes (no auto-title, OpenLayers/Layer/Boxes.js)
File: EventPane (no auto-title, OpenLayers/Layer/EventPane.js)
File: FixedZoomLevels (no auto-title, OpenLayers/Layer/FixedZoomLevels.js)
@@ -141,21 +316,27 @@ Group: OpenLayers {
File: HTTPRequest (no auto-title, OpenLayers/Layer/HTTPRequest.js)
File: Image (no auto-title, OpenLayers/Layer/Image.js)
File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js)
File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js)
File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js)
File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js)
File: MapServer.Untiled (no auto-title, OpenLayers/Layer/MapServer/Untiled.js)
File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (no auto-title, OpenLayers/Layer/MultiMap.js)
File: PointTrack (no auto-title, OpenLayers/Layer/PointTrack.js)
File: SphericalMercator (no auto-title, OpenLayers/Layer/SphericalMercator.js)
File: Text (no auto-title, OpenLayers/Layer/Text.js)
File: TileCache (no auto-title, OpenLayers/Layer/TileCache.js)
File: TMS (no auto-title, OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: Vector.RootContainer (no auto-title, OpenLayers/Layer/Vector/RootContainer.js)
File: VirtualEarth (no auto-title, OpenLayers/Layer/VirtualEarth.js)
File: WFS (no auto-title, OpenLayers/Layer/WFS.js)
File: WMS (no auto-title, OpenLayers/Layer/WMS.js)
File: WMS.Untiled (no auto-title, OpenLayers/Layer/WMS/Untiled.js)
File: WMS.Post (no auto-title, OpenLayers/Layer/WMS/Post.js)
File: WorldWind (no auto-title, OpenLayers/Layer/WorldWind.js)
File: Yahoo (no auto-title, OpenLayers/Layer/Yahoo.js)
File: XYZ (no auto-title, OpenLayers/Layer/XYZ.js)
} # Group: Layer
File: Map (no auto-title, OpenLayers/Map.js)
@@ -168,27 +349,77 @@ Group: OpenLayers {
Group: Popup {
File: Popup (OpenLayers/Popup.js)
File: Popup (no auto-title, OpenLayers/Popup.js)
File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js)
File: AnchoredBubble (no auto-title, OpenLayers/Popup/AnchoredBubble.js)
File: Framed (no auto-title, OpenLayers/Popup/Framed.js)
File: FramedCloud (no auto-title, OpenLayers/Popup/FramedCloud.js)
} # Group: Popup
File: Projection (no auto-title, OpenLayers/Projection.js)
Group: Protocol {
File: Protocol (no auto-title, OpenLayers/Protocol.js)
File: HTTP (no auto-title, OpenLayers/Protocol/HTTP.js)
Group: SQL {
File: SQL (no auto-title, OpenLayers/Protocol/SQL.js)
File: Gears (no auto-title, OpenLayers/Protocol/SQL/Gears.js)
} # Group: SQL
Group: WFS {
File: WFS (no auto-title, OpenLayers/Protocol/WFS.js)
File: v1 (no auto-title, OpenLayers/Protocol/WFS/v1.js)
File: v1_0_0 (no auto-title, OpenLayers/Protocol/WFS/v1_0_0.js)
File: v1_1_0 (no auto-title, OpenLayers/Protocol/WFS/v1_1_0.js)
} # Group: WFS
} # Group: Protocol
Group: Renderer {
File: Renderer (OpenLayers/Renderer.js)
File: Renderer (no auto-title, OpenLayers/Renderer.js)
File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js)
File: Elements (no auto-title, OpenLayers/Renderer/Elements.js)
File: SVG (no auto-title, OpenLayers/Renderer/SVG.js)
File: VML (no auto-title, OpenLayers/Renderer/VML.js)
} # Group: Renderer
Group: Request {
File: Request (no auto-title, OpenLayers/Request.js)
File: XMLHttpRequest (no auto-title, OpenLayers/Request/XMLHttpRequest.js)
} # Group: Request
File: Rule (no auto-title, OpenLayers/Rule.js)
Group: Strategy {
File: Strategy (no auto-title, OpenLayers/Strategy.js)
File: BBOX (no auto-title, OpenLayers/Strategy/BBOX.js)
File: Cluster (no auto-title, OpenLayers/Strategy/Cluster.js)
File: Fixed (no auto-title, OpenLayers/Strategy/Fixed.js)
File: Paging (no auto-title, OpenLayers/Strategy/Paging.js)
File: Refresh (OpenLayers/Strategy/Refresh.js)
File: Save (OpenLayers/Strategy/Save.js)
} # Group: Strategy
File: Style (no auto-title, OpenLayers/Style.js)
File: StyleMap (no auto-title, OpenLayers/StyleMap.js)
Group: Tile {
File: Tile (OpenLayers/Tile.js)
File: Tile (no auto-title, OpenLayers/Tile.js)
File: Image (no auto-title, OpenLayers/Tile/Image.js)
File: WFS (no auto-title, OpenLayers/Tile/WFS.js)
File: IFrame (OpenLayers/Tile/Image/IFrame.js)
} # Group: Tile
File: Util (OpenLayers/Util.js)
File: Tween (no auto-title, OpenLayers/Tween.js)
File: Util (no auto-title, OpenLayers/Util.js)
} # Group: OpenLayers
Group: Index {

View File

@@ -1,4 +1,4 @@
Format: 1.35
Format: Development Release 12-07-2007 (1.35 base)
# This is the Natural Docs topics file for this project. If you change anything
# here, it will apply to THIS PROJECT ONLY. If you'd like to change something
@@ -55,9 +55,6 @@ Format: 1.35
# Class Hierarchy: [yes|no]
# Whether the topics are part of the class hierarchy. Defaults to no.
#
# Variable Type: [yes|no]
# Whether the topics can be a variable type. Defaults to no.
#
# Page Title If First: [yes|no]
# Whether the topic's title becomes the page title if it's the first one in
# a file. Defaults to no.

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers GML Parser</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function parseData(req) {
@@ -21,7 +17,7 @@
}
html += "</ul>"
}
document.body.innerHTML = html;
document.getElementById('output').innerHTML = html;
}
function load() {
OpenLayers.loadURL("gml/owls.xml", "", null, parseData);
@@ -29,5 +25,19 @@
</script>
</head>
<body onload="load()">
<h1 id="title">GML Parser Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate the operation of the GML parser.
</p>
<div id="output"></div>
<div id="docs">
This script reads data from a GML file and parses out the coordinates, appending them to a HTML string with markup tags.
This markup is dumped to an element in the page.
</div>
</body>
</html>

84
examples/Jugl.js Normal file
View File

@@ -0,0 +1,84 @@
/**
* Jugl.js -- JavaScript Template Library
*
* Copyright 2007 Tim Schaub
* Released under the MIT license. Please see
* http://svn.tschaub.net/jugl/trunk/license.txt for the full license.
*/
(function(){var Jugl={prefix:"jugl",namespaceURI:"http://namespace.jugl.org/"};Jugl.Array={indexOf:function(array,obj){for(var i=0;i<array.length;i++){if(array[i]==obj)return i;}
return-1;}};Jugl.Function={bind:function(method,object){var args=[];for(var i=2;i<arguments.length;++i){args.push(arguments[i]);}
return function(){for(var i=0;i<arguments.length;++i){args.push(arguments[i]);}
return method.apply(object,args);}}};Jugl.Node={appendChild:function(parent,child){if(typeof(parent)=="string"){var obj=document.getElementById(parent);if(!obj){throw Error("Element id not found: "+parent);}
parent=obj;}
if(typeof(child)=="string"){var obj=document.getElementById(child);if(!obj){throw Error("Element id not found: "+child);}
child=obj;}
if(child.namespaceURI&&child.xml){var wrapper=document.createElement('div');wrapper.innerHTML=child.xml;var children=wrapper.childNodes;for(var i=0;i<children.length;++i){parent.appendChild(children[i]);}}else{if(parent.ownerDocument&&parent.ownerDocument.importNode){child=parent.ownerDocument.importNode(child,true);}
parent.appendChild(child);}
return child;}};Jugl.Object={extend:function(destination,source){destination=destination||{};source=source||{};for(property in source){destination[property]=source[property];}
return destination;},applyDefaults:function(destination,source){destination=destination||{};source=source||{};for(property in source){if(destination[property]===undefined){destination[property]=source[property];}}
return destination;}};Jugl.Request={loadTemplate:function(url,onComplete,caller){var createTemplate=function(request){var doc,template;try{doc=request.responseXML;template=new Jugl.Template(doc.documentElement);}catch(invalidXML){try{doc=document.createElement("div");doc.innerHTML=request.responseText;template=new Jugl.Template(doc.firstChild);}catch(invalidHTML){var msg="Can't make HTML out of response: "+
request.responseText;Jugl.Console.error(msg);throw invalidHTML;}}
var complete=Jugl.Function.bind(onComplete,caller);complete(template);}
Jugl.Request.loadUrl(url,createTemplate);},loadUrl:function(url,onComplete,caller){var complete=(caller)?Jugl.Function.bind(onComplete,caller):onComplete;var request=Jugl.Request.createXMLHttpRequest();request.open("GET",url);request.onreadystatechange=function(){if(request.readyState==4){complete(request);}}
request.send(null);},createXMLHttpRequest:function(){if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest();}else if(typeof ActiveXObject!="undefined"){return new ActiveXObject("Microsoft.XMLHTTP");}else{throw new Error("XMLHttpRequest not supported");}}};Jugl.Class=function(){var Class=function(){if(this===Jugl){var msg="Create an instance of a Jugl "+"class with the new keyword";throw Error(msg);}
this.initialize.apply(this,arguments);}
var extended={toString:function(){return"["+this.CLASS_NAME+"]";}};var parent;for(var i=0;i<arguments.length;++i){if(typeof arguments[i]=="function"){parent=arguments[i].prototype;}else{parent=arguments[i];}
Jugl.Object.extend(extended,parent);}
Class.prototype=extended;return Class;};Jugl.Console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){},dir:function(){},dirxml:function(){},trace:function(){},group:function(){},groupEnd:function(){},time:function(){},timeEnd:function(){},profile:function(){},profileEnd:function(){},count:function(){}};(function(){if(window.console){var scripts=document.getElementsByTagName("script");for(var i=0;i<scripts.length;++i){if(scripts[i].src.indexOf("firebug.js")!=-1){Jugl.Object.extend(Jugl.Console,console);break;}}}})();Jugl.Attribute=Jugl.Class({element:null,node:null,type:null,nodeValue:null,template:null,initialize:function(element,node,type){this.element=element;this.node=node;this.type=type;this.nodeValue=node.nodeValue;this.nodeName=node.nodeName;this.template=element.template;},splitAttributeValue:function(value){value=(value!=null)?value:this.nodeValue;var matches=this.template.regExes.trimSpace.exec(value);var items;if(matches&&matches.length==3){items=[matches[1],matches[2]];}
return items;},splitExpressionPrefix:function(){var items=this.splitAttributeValue();if(!items||(items[0]!='structure'&&items[0]!='text')){items=[null,this.nodeValue];}
return items;},getAttributeValues:function(){var trimmed=this.nodeValue.replace(/[\t\n]/g,"").replace(/;\s*$/,"");var tabbed=trimmed.replace(/;;/g,"\t");var newlined=tabbed.split(";").join("\n");return newlined.replace(/\t/g,";").split(/\n/g);},removeSelf:function(){this.element.removeAttributeNode(this);},process:function(){return this.processAttribute[this.type].apply(this,[]);},evalInScope:function(str){var expression="with(this.element.scope){"+str+"}";return eval(expression);},processAttribute:{"define":function(){var values=this.getAttributeValues();var pair;for(var i=0;i<values.length;++i){pair=this.splitAttributeValue(values[i]);this.element.scope[pair[0]]=this.evalInScope(pair[1]);}
this.removeSelf();return true;},"condition":function(){var proceed;try{proceed=!!(this.evalInScope(this.nodeValue));}catch(err){var message=err.name+": "+err.message+"\n"+"attribute: "+this.nodeName;Jugl.Console.error(message);throw err;}
this.removeSelf();if(!proceed){this.element.removeSelf();}
return proceed;},"repeat":function(){var pair=this.splitAttributeValue();var key=pair[0];var list=this.evalInScope(pair[1]);this.removeSelf();if(!(list instanceof Array)){var items=new Array();for(var p in list){items.push(p);}
list=items;}
var element;var previousSibling=this.element;var length=list.length;for(var i=0;i<length;++i){element=this.element.clone();element.scope[key]=list[i];element.scope.repeat[key]={index:i,number:i+1,even:!(i%2),odd:!!(i%2),start:(i==0),end:(i==length-1),length:length};previousSibling.insertAfter(element);element.process();previousSibling=element;}
this.element.removeSelf();return false;},"content":function(){var pair=this.splitExpressionPrefix();var str;try{str=this.evalInScope(pair[1]);}catch(err){Jugl.Console.error("Failed to eval in element scope: "+
pair[1]);throw err;}
this.removeSelf();if(pair[0]=='structure'){try{this.element.node.innerHTML=str;}catch(err){var wrapper=document.createElement('div');var msg;try{wrapper.innerHTML=str;}catch(invalidHTML){msg="Can't transform string into valid HTML : "+
str;Jugl.Console.error(msg);throw invalidHTML;}
if(this.element.node.xml&&this.template.xmldom){while(this.element.node.firstChild){this.element.node.removeChild(this.element.node.firstChild);}
this.template.xmldom.loadXML(wrapper.outerHTML);var children=this.template.xmldom.firstChild.childNodes;try{for(var i=0;i<children.length;++i){this.element.node.appendChild(children[i]);}}catch(invalidXML){msg="Can't transform string into valid XHTML : "+
str;Jugl.Console.error(msg);throw invalidXML;}}else{try{this.element.node.innerHTML=wrapper.innerHTML;}catch(invalidXML){msg="Can't transform string into valid XHTML : "+
str;Jugl.Console.error(msg);throw invalidXML;}}}}else{var text;if(this.element.node.xml&&this.template.xmldom){text=this.template.xmldom.createTextNode(str);}else{text=document.createTextNode(str);}
var child=new Jugl.Element(this.template,text);this.element.removeChildNodes();this.element.appendChild(child);}
return true;},"replace":function(){var pair=this.splitExpressionPrefix();var str;try{str=this.evalInScope(pair[1]);}catch(err){Jugl.Console.error("Failed to eval in element scope: "+
pair[1]);throw err;}
this.removeSelf();if(pair[0]=='structure'){var wrapper=document.createElement('div');try{wrapper.innerHTML=str;}catch(err){msg="Can't transform string into valid HTML : "+
str;Jugl.Console.error(msg);throw err;}
if(this.element.node.xml&&this.template.xmldom){try{this.template.xmldom.loadXML(wrapper.outerHTML);}catch(err){msg="Can't transform string into valid XML : "+
str;Jugl.Console.error(msg);throw err;}
wrapper=this.template.xmldom.firstChild;}
while(wrapper.firstChild){var child=wrapper.removeChild(wrapper.firstChild);if(this.element.node.ownerDocument&&this.element.node.ownerDocument.importNode){if(child.ownerDocument!=this.element.node.ownerDocument){child=this.element.node.ownerDocument.importNode(child,true);}}
this.element.node.parentNode.insertBefore(child,this.element.node);}}else{var text;if(this.element.node.xml&&this.template.xmldom){text=this.template.xmldom.createTextNode(str);}else{text=document.createTextNode(str);}
var replacement=new Jugl.Element(this.template,text);this.element.insertBefore(replacement);}
this.element.removeSelf();return true;},"attributes":function(){var values=this.getAttributeValues();var pair,name,value;for(var i=0;i<values.length;++i){pair=this.splitAttributeValue(values[i]);name=pair[0];value=this.evalInScope(pair[1]);if(value!==false){this.element.setAttribute(name,value);}}
this.removeSelf();return true;},"omit-tag":function(){var omit;try{omit=((this.nodeValue=="")||!!(this.evalInScope(this.nodeValue)));}catch(err){Jugl.Console.error("Failed to eval in element scope: "+
this.nodeValue);throw err;}
this.removeSelf();if(omit){var children=this.element.getChildNodes();var child;for(var i=0;i<children.length;++i){this.element.insertBefore(children[i]);}
this.element.removeSelf();}},"reflow":function(){var reflow;try{reflow=((this.nodeValue=="")||!!(this.evalInScope(this.nodeValue)));}catch(err){Jugl.Console.error("Failed to eval in element scope: "+
this.nodeValue);throw err;}
this.removeSelf();if(reflow){if(this.element.node.outerHTML){this.element.node.outerHTML=this.element.node.outerHTML;}else{this.element.node.innerHTML=this.element.node.innerHTML;}}}},CLASS_NAME:"Jugl.Attribute"});Jugl.Element=Jugl.Class({template:null,node:null,scope:null,initialize:function(template,node){this.template=template;this.node=node;this.scope=new Object();this.scope.repeat=new Object();},clone:function(){var node=this.node.cloneNode(true);node.removeAttribute("id");var element=new Jugl.Element(this.template,node);Jugl.Object.extend(element.scope,this.scope);return element;},getAttribute:function(localName){var node;if(this.node.nodeType==1){if(this.template.usingNS){node=this.node.getAttributeNodeNS(Jugl.namespaceURI,localName);}else{node=this.node.getAttributeNode(Jugl.prefix+":"+
localName);}
if(node&&!node.specified){node=false;}}
var attribute;if(node){attribute=new Jugl.Attribute(this,node,localName);}else{attribute=node;}
return attribute;},setAttribute:function(name,value){this.node.setAttribute(name,value);},removeAttributeNode:function(attribute){this.node.removeAttributeNode(attribute.node);},getChildNodes:function(){var numNodes=this.node.childNodes.length;var children=new Array(numNodes);var node,scope;for(var i=0;i<numNodes;++i){node=new Jugl.Element(this.template,this.node.childNodes[i]);node.scope=Jugl.Object.extend({},this.scope);children[i]=node;}
return children;},removeChildNodes:function(){while(this.node.hasChildNodes()){this.node.removeChild(this.node.firstChild);}},removeChild:function(element){this.node.removeChild(element.node);return node;},removeSelf:function(){this.node.parentNode.removeChild(this.node);},importNode:function(element){if(this.node.ownerDocument&&this.node.ownerDocument.importNode){if(element.node.ownerDocument!=this.node.ownerDocument){element.node=this.node.ownerDocument.importNode(element.node,true);}}},appendChild:function(element){this.importNode(element);this.node.appendChild(element.node);},insertAfter:function(element){this.importNode(element);var parent=this.node.parentNode;var sibling=this.node.nextSibling;if(sibling){parent.insertBefore(element.node,sibling);}else{parent.appendChild(element.node);}},insertBefore:function(element){this.importNode(element);var parent=this.node.parentNode;parent.insertBefore(element.node,this.node);},process:function(){var attribute;var keepProcessing=true;var series=["define","condition","repeat"];for(var i=0;i<series.length;++i){attribute=this.getAttribute(series[i]);if(attribute){try{keepProcessing=attribute.process();}catch(err){Jugl.Console.error("Failed to process "+
series[i]+" attribute");throw err;}
if(!keepProcessing){return;}}}
var content=this.getAttribute("content");if(content){try{content.process();}catch(err){Jugl.Console.error("Failed to process content attribute");throw err;}}else{var replace=this.getAttribute("replace");if(replace){try{replace.process();}catch(err){Jugl.Console.error("Failed to process replace attribute");throw err;}}}
var attributes=this.getAttribute("attributes");if(attributes){try{attributes.process();}catch(err){Jugl.Console.error("Failed to process attributes attribute");throw err;}}
if(!content&&!replace){this.processChildNodes();}
var omit=this.getAttribute("omit-tag");if(omit){try{omit.process();}catch(err){Jugl.Console.error("Failed to process omit-tag attribute");throw err;}}
var reflow=this.getAttribute("reflow");if(reflow){try{reflow.process();}catch(err){Jugl.Console.error("Failed to process reflow attribute");throw err;}}},processChildNodes:function(){var children=this.getChildNodes();for(var i=0;i<children.length;++i){try{children[i].process();}catch(err){Jugl.Console.error("Failed to process child node: "+i);throw err;}}},CLASS_NAME:"Jugl.Element"});Jugl.Template=Jugl.Class({node:null,usingNS:false,xhtmlns:"http://www.w3.org/1999/xhtml",xmldom:window.ActiveXObject?new ActiveXObject("Microsoft.XMLDOM"):null,regExes:{trimSpace:(/^\s*(\w+)\s+(.*?)\s*$/)},loaded:false,loading:false,initialize:function(config){if(typeof config=="string"||(config&&config.nodeType==1)){config={node:config};}
config=config||{};if(typeof(config.node)=="string"){config.node=document.getElementById(config.node);if(!config.node){throw Error("Element id not found: "+config.node);}}
if(config.node){this.node=config.node;this.loaded=true;}else if(config.url){this.load({url:config.url,callback:config.callback,scope:config.scope});}},process:function(config){if(config&&!config.context&&!config.clone&&!config.string&&!config.parent){config={context:config}}
config=Jugl.Object.applyDefaults(config,{context:null,clone:false,string:false});if(this.node.getAttributeNodeNS){if(this.node.getAttributeNodeNS(Jugl.xhtmlns,Jugl.prefix)){this.usingNS=true;}}
var element=new Jugl.Element(this,this.node);if(config.clone){element=element.clone();}
if(config.context){element.scope=config.context;}
try{element.process();}catch(err){Jugl.Console.error("Failed to process "+
this.node.nodeName+" node");throw err;}
var data;if(config.string){if(element.node.innerHTML){data=element.node.innerHTML;}else{if(this.xmldom){data=element.node.xml;}else{var serializer=new XMLSerializer();data=serializer.serializeToString(element.node);}}}else{data=element.node;if(config.parent){if(config.clone){data=Jugl.Node.appendChild(config.parent,element.node);}else{this.appendTo(config.parent);}}}
return data;},load:function(config){if(typeof config=="string"){config={url:config};}
config=config||{};this.loading=true;var setNode=function(template){this.node=template.node;this.loading=false;this.loaded=true;if(config.callback){config.callback.apply(config.scope,[template]);}}
Jugl.Request.loadTemplate(config.url,setNode,this);},appendTo:function(parent){this.node=Jugl.Node.appendChild(parent,this.node);return this;},CLASS_NAME:"Jugl.Template"});window["http://jugl.tschaub.net/trunk/lib/Jugl.js"]=Jugl;})();

View File

@@ -1,27 +1,27 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers KML Parser Example</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function parseData(req) {
g = new OpenLayers.Format.KML();
g = new OpenLayers.Format.KML({extractStyles: true});
html = ""
features = g.read(req.responseText);
for(var feat in features) {
html += "Feature: Geometry: "+ features[feat].geometry+",";
html += "<ul>";
for (var j in features[feat].attributes) {
html += "<li>"+j+":"+features[feat].attributes[j]+"</li>";
html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>";
}
html += "</ul>"
html += "<ul>";
for (var j in features[feat].style) {
html += "<li>Style "+j+":"+features[feat].style[j]+"</li>";
}
html += "</ul>"
}
document.body.innerHTML = html;
document.getElementById('output').innerHTML = html;
}
function load() {
OpenLayers.loadURL("kml/lines.kml", "", null, parseData);
@@ -29,5 +29,19 @@
</script>
</head>
<body onload="load()">
<h1 id="title">KML Parser Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate the operation of the KML parser.
</p>
<div id="output"></div>
<div id="docs">
This script reads data from a KML file and parses out the coordinates, appending them to a HTML string with markup tags.
This markup is dumped to an element in the page.
</div>
</body>
</html>

View File

@@ -0,0 +1,41 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers WMSDescribeLayer Parser Example</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function parseData(req) {
format = new OpenLayers.Format.WMSDescribeLayer();
html = "<br />"
resp = format.read(req.responseText);
for(var i = 0; i < resp.length; i++) {
html += "Layer: typeName: "+ resp[i].typeName+",";
html += "<ul>";
html += "<li>owsURL: "+resp[i].owsURL+"</li>";
html += "<li>owsType: "+resp[i].owsType+"</li>";
html += "</ul>"
}
document.getElementById('output').innerHTML = html;
}
function load() {
OpenLayers.loadURL("xml/wmsdescribelayer.xml", "", null, parseData);
}
</script>
</head>
<body onload="load()">
<h1 id="title">WMSDescribeLayer Parser Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate the operation of the WMSDescribeLayer parser.
</p>
<div id="output"></div>
<div id="docs">
This script reads data from a file and parses out the coordinates, appending them to a HTML string with markup tags.
This markup is dumped to an element in the page.
</div>
</body>
</html>

175
examples/WMSPost.html Normal file
View File

@@ -0,0 +1,175 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Basic WMS Example via HTTP-POST protocol</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var sld = '<StyledLayerDescriptor version="1.0.0">';
sld+= '<NamedLayer>';
sld+= '<Name>topp:tasmania_roads</Name>';
sld+= '<UserStyle>';
sld+= '<IsDefault>1</IsDefault>';
sld+= '<FeatureTypeStyle>';
sld+= '<Rule>';
sld+= '<LineSymbolizer>';
sld+= '<Stroke>';
sld+= '<CssParameter name="stroke">';
sld+= '<Literal>#787878</Literal>';
sld+= '</CssParameter>';
sld+= '<CssParameter name="stroke-width">';
sld+= '<Literal>2</Literal>';
sld+= '</CssParameter>';
sld+= '</Stroke>';
sld+= '</LineSymbolizer>';
sld+= '</Rule>';
sld+= '</FeatureTypeStyle>';
sld+= '</UserStyle>';
sld+= '</NamedLayer>';
sld+= '<NamedLayer>';
sld+= '<Name>topp:tasmania_water_bodies</Name>';
sld+= '<UserStyle>';
sld+= '<IsDefault>1</IsDefault>';
sld+= '<FeatureTypeStyle>';
sld+= '<Rule>';
sld+= '<LineSymbolizer>';
sld+= '<Stroke>';
sld+= '<CssParameter name="stroke">';
sld+= '<Literal>#4F94CD</Literal>';
sld+= '</CssParameter>';
sld+= '<CssParameter name="stroke-width">';
sld+= '<Literal>3</Literal>';
sld+= '</CssParameter>';
sld+= '</Stroke>';
sld+= '</LineSymbolizer>';
sld+= '<PolygonSymbolizer>';
sld+= '<Fill>';
sld+= '<CssParameter name="fill">';
sld+= '<Literal>#63B8FF</Literal>';
sld+= '</CssParameter>';
sld+= '</Fill>';
sld+= '</PolygonSymbolizer>';
sld+= '</Rule>';
sld+= '</FeatureTypeStyle>';
sld+= '</UserStyle>';
sld+= '</NamedLayer>';
sld+= '<NamedLayer>';
sld+= '<Name>topp:tasmania_cities</Name>';
sld+= '<UserStyle>';
sld+= '<IsDefault>1</IsDefault>';
sld+= '<FeatureTypeStyle>';
sld+= '<Rule>';
sld+= '<PointSymbolizer>';
sld+= '<Graphic>';
sld+= '<Mark>';
sld+= '<WellKnownName>cross</WellKnownName>';
sld+= '<Fill>';
sld+= '<CssParameter name="fill">';
sld+= '<Literal>#00FF00</Literal>';
sld+= '</CssParameter>';
sld+= '</Fill>';
sld+= '</Mark>';
sld+= '<Size>15</Size>';
sld+= '</Graphic>';
sld+= '</PointSymbolizer>';
sld+= '<TextSymbolizer>';
sld+= '<Label><PropertyName>CITY_NAME</PropertyName></Label>';
sld+= '<Font>';
sld+= '<SvgParameter name="font-size">15</SvgParameter>';
sld+= '</Font>';
sld+= '</TextSymbolizer>';
sld+= '</Rule>';
sld+= '</FeatureTypeStyle>';
sld+= '</UserStyle>';
sld+= '</NamedLayer>';
sld+= '<NamedLayer>';
sld+= '<Name>topp:tasmania_state_boundaries</Name>';
sld+= '<UserStyle>';
sld+= '<IsDefault>1</IsDefault>';
sld+= '<FeatureTypeStyle>';
sld+= '<Rule>';
sld+= '<PolygonSymbolizer>';
sld+= '<Fill>';
sld+= '<CssParameter name="fill">';
sld+= '<Literal>#8B8989</Literal>';
sld+= '</CssParameter>';
sld+= '<CssParameter name="fill-opacity">';
sld+= '<Literal>0.2</Literal>';
sld+= '</CssParameter>';
sld+= '</Fill>';
sld+= '<Stroke>';
sld+= '<CssParameter name="stroke">';
sld+= '<Literal>#FF4040</Literal>';
sld+= '</CssParameter>';
sld+= '<CssParameter name="stroke-width">';
sld+= '<Literal>2</Literal>';
sld+= '</CssParameter>';
sld+= '</Stroke>';
sld+= '</PolygonSymbolizer>';
sld+= '</Rule>';
sld+= '</FeatureTypeStyle>';
sld+= '</UserStyle>';
sld+= '</NamedLayer>';
sld+= '</StyledLayerDescriptor>';
map = new OpenLayers.Map('map');
map.addControl(new OpenLayers.Control.LayerSwitcher());
var layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{
layers: 'basic'
}
);
var rcbw = new OpenLayers.Layer.WMS.Post("Roads, Cities, Boundaries, Water",
"http://demo.opengeo.org/geoserver/wms",
{
'layers': 'topp:tasmania_roads,topp:tasmania_water_bodies,topp:tasmania_state_boundaries,topp:tasmania_cities',
transparent: true,
format: 'image/jpeg',
sld_body: sld
},
{
isBaseLayer: false,
unsupportedBrowsers: []
}
);
map.addLayers([layer, rcbw]);
map.setCenter(new OpenLayers.LonLat(146.65748632815,-42.230763671875), 7);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Basic WMS Example via HTTP-POST protocol with a large SLD
included</h1>
<div id="tags"></div>
<div id="shortdesc">Creating a WMS layer with a large SLD in the sld_body</div>
<div id="map" style="width: 512; height: 256; border: 1px solid red;"></div>
<div id="docs">
This example uses a large SLD created on the client side to style a WMS
layer. This example uses a WMS.Post layer which transfers data via the
HTTP-POST protocol. <br>
NOTE: Opera is not able to display transparent tiles with this layer,
and in some Firefox browsers can appear ugly viewport-shaking effects
while dragging arround. Use the 'unsupportedBrowsers' property to
control which browsers should use plain image tiles (like Layer.WMS)
instead. The default setting (["mozilla", "firefox", "opera"])
excludes problematic browsers without removing the ability to use long
request parameters, because all these browsers support long urls via
GET.
</div>
</body>
</html>

View File

@@ -1,11 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Accessible Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 512px;
height: 256px;
border: 1px solid #eee;
}
table {
border: 1 px solid white;
padding: 0;
@@ -25,6 +23,10 @@
a:hover {
text-decoration: underline;
}
a.api {
font-size:1em;
text-decoration:underline;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
@@ -45,7 +47,15 @@
</script>
</head>
<body onload="init()">
<h3>OpenLayers Example</h3>
<h1 id="title">Accessible Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate how to use the KeyboardDefaults option parameter for layer types.
</p>
<table>
<tbody>
<tr>
@@ -75,7 +85,7 @@
pan <em>w</em>est
</a>
</td>
<td id="map"></td>
<td id="map" class="smallmap"></td>
<td>
<a href="javascript: void map.pan(map.getSize().w / 4, 0);"
accesskey="e">
@@ -95,6 +105,8 @@
</tr>
</tbody>
</table>
<div id="docs">
<p>Navigate the map in one of three ways:
<ul>
<li>Click on the named links to zoom and pan</li>
@@ -120,5 +132,8 @@
</li>
</ul>
</p>
This is an example of using alternate methods to control panning and zooming. This approach uses map.pan() and map.zoom(). You'll note that to pan, additional math is necessary along with map.size() in order to set the distance to pan.
</div>
</body>
</html>

View File

@@ -0,0 +1,69 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>All Overlays Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init() {
map = new OpenLayers.Map({
div: "map",
allOverlays: true,
maxExtent: new OpenLayers.Bounds(
1549471.9221, 6403610.94, 1550001.32545, 6404015.8
)
});
// give the features some style
var styles = new OpenLayers.StyleMap({
"default": {
strokeWidth: 2
},
"select": {
strokeColor: "#0099cc",
strokeWidth: 4
}
});
// add rules from the above lookup table
styles.addUniqueValueRules("default", "RP_TYPE", {
10: {strokeColor: "#000000", strokeWidth: 2},
12: {strokeColor: "#222222", strokeWidth: 2},
14: {strokeColor: "#444444", strokeWidth: 2},
16: {strokeColor: "#666666", strokeWidth: 2},
18: {strokeColor: "#888888", strokeWidth: 2},
19: {strokeColor: "#666666", strokeWidth: 1}
});
var vectors = new OpenLayers.Layer.Vector("Lines", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "data/roads.json",
format: new OpenLayers.Format.GeoJSON()
}),
styleMap: styles
});
map.addLayer(vectors);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Overlays Only Example</h1>
<p id="shortdesc">
Demonstrates a map with overlays only.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
To create a map that allows any draw order with all layer types
and lets you set the visibility of any layer independently, set
the allOverlays property on the map to true.
</div>
</body>
</html>

View File

@@ -0,0 +1,92 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Animated Panning of the Map via map.panTo</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer, running = false;
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
defaultHandlerOptions: {
'single': true,
'delay': 200
},
initialize: function(options) {
this.handlerOptions = OpenLayers.Util.extend(
{}, this.defaultHandlerOptions
);
OpenLayers.Control.prototype.initialize.apply(
this, arguments
);
this.handler = new OpenLayers.Handler.Click(
this, {
'click': this.onClick
}, this.handlerOptions
);
},
onClick: function(evt) {
map.panTo(map.getLonLatFromPixel(evt.xy));
}
});
function init(){
map = new OpenLayers.Map('map', {numZoomLevels: 2});
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.zoomToMaxExtent();
var click = new OpenLayers.Control.Click();
map.addControl(click);
click.activate();
map.addControl(new OpenLayers.Control.OverviewMap());
map2 = new OpenLayers.Map('map2', {'panMethod': null, numZoomLevels: 2} );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map2.addLayer(layer);
map2.zoomToMaxExtent();
}
function setCenterInterval() {
if (!running) {
setCenter();
running = setInterval('setCenter()', 500);
} else {
clearInterval(running);
running = false;
}
}
function setCenter() {
var lon = Math.random() * 360 - 180;
var lat = Math.random() * 180 - 90;
var lonlat = new OpenLayers.LonLat(lon, lat);
map.panTo(lonlat);
}
</script>
</head>
<body onload="init()">
<h1 id="title">map.panTo Example</h1>
<div id="tags">map.panTo</div>
<div id="shortdesc">Show animated panning effects in the map</div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This is an example of transition effects. If the new random center is in the current extent, the map will pan smoothly. <br />
The random selection will continue until you press it again. Additionally, you can single click in the map to pan smoothly
to that area, or use the pan control to pan smoothly.
</p>
</div>
<button onclick="setCenterInterval()">Start/stop random recenter</button>
<div id="map2" class="smallmap"></div>
<div>
<p>To turn off Animated Panning, create a map with an panMethod set to
null. </p>
</div>
</body>
</html>

670
examples/animator.js Normal file
View File

@@ -0,0 +1,670 @@
/*
Animator.js 1.1.9
This library is released under the BSD license:
Copyright (c) 2006, Bernard Sumption. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer. Redistributions in binary
form must reproduce the above copyright notice, this list of conditions and
the following disclaimer in the documentation and/or other materials
provided with the distribution. Neither the name BernieCode nor
the names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
*/
// Applies a sequence of numbers between 0 and 1 to a number of subjects
// construct - see setOptions for parameters
function Animator(options) {
this.setOptions(options);
var _this = this;
this.timerDelegate = function(){_this.onTimerEvent()};
this.subjects = [];
this.target = 0;
this.state = 0;
this.lastTime = null;
};
Animator.prototype = {
// apply defaults
setOptions: function(options) {
this.options = Animator.applyDefaults({
interval: 20, // time between animation frames
duration: 400, // length of animation
onComplete: function(){},
onStep: function(){},
transition: Animator.tx.easeInOut
}, options);
},
// animate from the current state to provided value
seekTo: function(to) {
this.seekFromTo(this.state, to);
},
// animate from the current state to provided value
seekFromTo: function(from, to) {
this.target = Math.max(0, Math.min(1, to));
this.state = Math.max(0, Math.min(1, from));
this.lastTime = new Date().getTime();
if (!this.intervalId) {
this.intervalId = window.setInterval(this.timerDelegate, this.options.interval);
}
},
// animate from the current state to provided value
jumpTo: function(to) {
this.target = this.state = Math.max(0, Math.min(1, to));
this.propagate();
},
// seek to the opposite of the current target
toggle: function() {
this.seekTo(1 - this.target);
},
// add a function or an object with a method setState(state) that will be called with a number
// between 0 and 1 on each frame of the animation
addSubject: function(subject) {
this.subjects[this.subjects.length] = subject;
return this;
},
// remove all subjects
clearSubjects: function() {
this.subjects = [];
},
// forward the current state to the animation subjects
propagate: function() {
var value = this.options.transition(this.state);
for (var i=0; i<this.subjects.length; i++) {
if (this.subjects[i].setState) {
this.subjects[i].setState(value);
} else {
this.subjects[i](value);
}
}
},
// called once per frame to update the current state
onTimerEvent: function() {
var now = new Date().getTime();
var timePassed = now - this.lastTime;
this.lastTime = now;
var movement = (timePassed / this.options.duration) * (this.state < this.target ? 1 : -1);
if (Math.abs(movement) >= Math.abs(this.state - this.target)) {
this.state = this.target;
} else {
this.state += movement;
}
try {
this.propagate();
} finally {
this.options.onStep.call(this);
if (this.target == this.state) {
window.clearInterval(this.intervalId);
this.intervalId = null;
this.options.onComplete.call(this);
}
}
},
// shortcuts
play: function() {this.seekFromTo(0, 1)},
reverse: function() {this.seekFromTo(1, 0)},
// return a string describing this Animator, for debugging
inspect: function() {
var str = "#<Animator:\n";
for (var i=0; i<this.subjects.length; i++) {
str += this.subjects[i].inspect();
}
str += ">";
return str;
}
}
// merge the properties of two objects
Animator.applyDefaults = function(defaults, prefs) {
prefs = prefs || {};
var prop, result = {};
for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop];
return result;
}
// make an array from any object
Animator.makeArray = function(o) {
if (o == null) return [];
if (!o.length) return [o];
var result = [];
for (var i=0; i<o.length; i++) result[i] = o[i];
return result;
}
// convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!)
Animator.camelize = function(string) {
var oStringList = string.split('-');
if (oStringList.length == 1) return oStringList[0];
var camelizedString = string.indexOf('-') == 0
? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1)
: oStringList[0];
for (var i = 1, len = oStringList.length; i < len; i++) {
var s = oStringList[i];
camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
}
return camelizedString;
}
// syntactic sugar for creating CSSStyleSubjects
Animator.apply = function(el, style, options) {
if (style instanceof Array) {
return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1]));
}
return new Animator(options).addSubject(new CSSStyleSubject(el, style));
}
// make a transition function that gradually accelerates. pass a=1 for smooth
// gravitational acceleration, higher values for an exaggerated effect
Animator.makeEaseIn = function(a) {
return function(state) {
return Math.pow(state, a*2);
}
}
// as makeEaseIn but for deceleration
Animator.makeEaseOut = function(a) {
return function(state) {
return 1 - Math.pow(1 - state, a*2);
}
}
// make a transition function that, like an object with momentum being attracted to a point,
// goes past the target then returns
Animator.makeElastic = function(bounces) {
return function(state) {
state = Animator.tx.easeInOut(state);
return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state;
}
}
// make an Attack Decay Sustain Release envelope that starts and finishes on the same level
//
Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
if (sustainLevel == null) sustainLevel = 0.5;
return function(state) {
if (state < attackEnd) {
return state / attackEnd;
}
if (state < decayEnd) {
return 1 - ((state - attackEnd) / (decayEnd - attackEnd) * (1 - sustainLevel));
}
if (state < sustainEnd) {
return sustainLevel;
}
return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd)));
}
}
// make a transition function that, like a ball falling to floor, reaches the target and/
// bounces back again
Animator.makeBounce = function(bounces) {
var fn = Animator.makeElastic(bounces);
return function(state) {
state = fn(state);
return state <= 1 ? state : 2-state;
}
}
// pre-made transition functions to use with the 'transition' option
Animator.tx = {
easeInOut: function(pos){
return ((-Math.cos(pos*Math.PI)/2) + 0.5);
},
linear: function(x) {
return x;
},
easeIn: Animator.makeEaseIn(1.5),
easeOut: Animator.makeEaseOut(1.5),
strongEaseIn: Animator.makeEaseIn(2.5),
strongEaseOut: Animator.makeEaseOut(2.5),
elastic: Animator.makeElastic(1),
veryElastic: Animator.makeElastic(3),
bouncy: Animator.makeBounce(1),
veryBouncy: Animator.makeBounce(3)
}
// animates a pixel-based style property between two integer values
function NumericalStyleSubject(els, property, from, to, units) {
this.els = Animator.makeArray(els);
if (property == 'opacity' && window.ActiveXObject) {
this.property = 'filter';
} else {
this.property = Animator.camelize(property);
}
this.from = parseFloat(from);
this.to = parseFloat(to);
this.units = units != null ? units : 'px';
}
NumericalStyleSubject.prototype = {
setState: function(state) {
var style = this.getStyle(state);
var visibility = (this.property == 'opacity' && state == 0) ? 'hidden' : '';
var j=0;
for (var i=0; i<this.els.length; i++) {
try {
this.els[i].style[this.property] = style;
} catch (e) {
// ignore fontWeight - intermediate numerical values cause exeptions in firefox
if (this.property != 'fontWeight') throw e;
}
if (j++ > 20) return;
}
},
getStyle: function(state) {
state = this.from + ((this.to - this.from) * state);
if (this.property == 'filter') return "alpha(opacity=" + Math.round(state*100) + ")";
if (this.property == 'opacity') return state;
return Math.round(state) + this.units;
},
inspect: function() {
return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n";
}
}
// animates a colour based style property between two hex values
function ColorStyleSubject(els, property, from, to) {
this.els = Animator.makeArray(els);
this.property = Animator.camelize(property);
this.to = this.expandColor(to);
this.from = this.expandColor(from);
this.origFrom = from;
this.origTo = to;
}
ColorStyleSubject.prototype = {
// parse "#FFFF00" to [256, 256, 0]
expandColor: function(color) {
var hexColor, red, green, blue;
hexColor = ColorStyleSubject.parseColor(color);
if (hexColor) {
red = parseInt(hexColor.slice(1, 3), 16);
green = parseInt(hexColor.slice(3, 5), 16);
blue = parseInt(hexColor.slice(5, 7), 16);
return [red,green,blue]
}
if (window.DEBUG) {
alert("Invalid colour: '" + color + "'");
}
},
getValueForState: function(color, state) {
return Math.round(this.from[color] + ((this.to[color] - this.from[color]) * state));
},
setState: function(state) {
var color = '#'
+ ColorStyleSubject.toColorPart(this.getValueForState(0, state))
+ ColorStyleSubject.toColorPart(this.getValueForState(1, state))
+ ColorStyleSubject.toColorPart(this.getValueForState(2, state));
for (var i=0; i<this.els.length; i++) {
this.els[i].style[this.property] = color;
}
},
inspect: function() {
return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n";
}
}
// return a properly formatted 6-digit hex colour spec, or false
ColorStyleSubject.parseColor = function(string) {
var color = '#', match;
if(match = ColorStyleSubject.parseColor.rgbRe.exec(string)) {
var part;
for (var i=1; i<=3; i++) {
part = Math.max(0, Math.min(255, parseInt(match[i])));
color += ColorStyleSubject.toColorPart(part);
}
return color;
}
if (match = ColorStyleSubject.parseColor.hexRe.exec(string)) {
if(match[1].length == 3) {
for (var i=0; i<3; i++) {
color += match[1].charAt(i) + match[1].charAt(i);
}
return color;
}
return '#' + match[1];
}
return false;
}
// convert a number to a 2 digit hex string
ColorStyleSubject.toColorPart = function(number) {
if (number > 255) number = 255;
var digits = number.toString(16);
if (number < 16) return '0' + digits;
return digits;
}
ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;
ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
// Animates discrete styles, i.e. ones that do not scale but have discrete values
// that can't be interpolated
function DiscreteStyleSubject(els, property, from, to, threshold) {
this.els = Animator.makeArray(els);
this.property = Animator.camelize(property);
this.from = from;
this.to = to;
this.threshold = threshold || 0.5;
}
DiscreteStyleSubject.prototype = {
setState: function(state) {
var j=0;
for (var i=0; i<this.els.length; i++) {
this.els[i].style[this.property] = state <= this.threshold ? this.from : this.to;
}
},
inspect: function() {
return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n";
}
}
// animates between two styles defined using CSS.
// if style1 and style2 are present, animate between them, if only style1
// is present, animate between the element's current style and style1
function CSSStyleSubject(els, style1, style2) {
els = Animator.makeArray(els);
this.subjects = [];
if (els.length == 0) return;
var prop, toStyle, fromStyle;
if (style2) {
fromStyle = this.parseStyle(style1, els[0]);
toStyle = this.parseStyle(style2, els[0]);
} else {
toStyle = this.parseStyle(style1, els[0]);
fromStyle = {};
for (prop in toStyle) {
fromStyle[prop] = CSSStyleSubject.getStyle(els[0], prop);
}
}
// remove unchanging properties
var prop;
for (prop in fromStyle) {
if (fromStyle[prop] == toStyle[prop]) {
delete fromStyle[prop];
delete toStyle[prop];
}
}
// discover the type (numerical or colour) of each style
var prop, units, match, type, from, to;
for (prop in fromStyle) {
var fromProp = String(fromStyle[prop]);
var toProp = String(toStyle[prop]);
if (toStyle[prop] == null) {
if (window.DEBUG) alert("No to style provided for '" + prop + '"');
continue;
}
if (from = ColorStyleSubject.parseColor(fromProp)) {
to = ColorStyleSubject.parseColor(toProp);
type = ColorStyleSubject;
} else if (fromProp.match(CSSStyleSubject.numericalRe)
&& toProp.match(CSSStyleSubject.numericalRe)) {
from = parseFloat(fromProp);
to = parseFloat(toProp);
type = NumericalStyleSubject;
match = CSSStyleSubject.numericalRe.exec(fromProp);
var reResult = CSSStyleSubject.numericalRe.exec(toProp);
if (match[1] != null) {
units = match[1];
} else if (reResult[1] != null) {
units = reResult[1];
} else {
units = reResult;
}
} else if (fromProp.match(CSSStyleSubject.discreteRe)
&& toProp.match(CSSStyleSubject.discreteRe)) {
from = fromProp;
to = toProp;
type = DiscreteStyleSubject;
units = 0; // hack - how to get an animator option down to here
} else {
if (window.DEBUG) {
alert("Unrecognised format for value of "
+ prop + ": '" + fromStyle[prop] + "'");
}
continue;
}
this.subjects[this.subjects.length] = new type(els, prop, from, to, units);
}
}
CSSStyleSubject.prototype = {
// parses "width: 400px; color: #FFBB2E" to {width: "400px", color: "#FFBB2E"}
parseStyle: function(style, el) {
var rtn = {};
// if style is a rule set
if (style.indexOf(":") != -1) {
var styles = style.split(";");
for (var i=0; i<styles.length; i++) {
var parts = CSSStyleSubject.ruleRe.exec(styles[i]);
if (parts) {
rtn[parts[1]] = parts[2];
}
}
}
// else assume style is a class name
else {
var prop, value, oldClass;
oldClass = el.className;
el.className = style;
for (var i=0; i<CSSStyleSubject.cssProperties.length; i++) {
prop = CSSStyleSubject.cssProperties[i];
value = CSSStyleSubject.getStyle(el, prop);
if (value != null) {
rtn[prop] = value;
}
}
el.className = oldClass;
}
return rtn;
},
setState: function(state) {
for (var i=0; i<this.subjects.length; i++) {
this.subjects[i].setState(state);
}
},
inspect: function() {
var str = "";
for (var i=0; i<this.subjects.length; i++) {
str += this.subjects[i].inspect();
}
return str;
}
}
// get the current value of a css property,
CSSStyleSubject.getStyle = function(el, property){
var style;
if(document.defaultView && document.defaultView.getComputedStyle){
style = document.defaultView.getComputedStyle(el, "").getPropertyValue(property);
if (style) {
return style;
}
}
property = Animator.camelize(property);
if(el.currentStyle){
style = el.currentStyle[property];
}
return style || el.style[property]
}
CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;
CSSStyleSubject.numericalRe = /^-?\d+(?:\.\d+)?(%|[a-zA-Z]{2})?$/;
CSSStyleSubject.discreteRe = /^\w+$/;
// required because the style object of elements isn't enumerable in Safari
/*
CSSStyleSubject.cssProperties = ['background-color','border','border-color','border-spacing',
'border-style','border-top','border-right','border-bottom','border-left','border-top-color',
'border-right-color','border-bottom-color','border-left-color','border-top-width','border-right-width',
'border-bottom-width','border-left-width','border-width','bottom','color','font-size','font-size-adjust',
'font-stretch','font-style','height','left','letter-spacing','line-height','margin','margin-top',
'margin-right','margin-bottom','margin-left','marker-offset','max-height','max-width','min-height',
'min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding',
'padding-top','padding-right','padding-bottom','padding-left','quotes','right','size','text-indent',
'top','width','word-spacing','z-index','opacity','outline-offset'];*/
CSSStyleSubject.cssProperties = ['azimuth','background','background-attachment','background-color','background-image','background-position','background-repeat','border-collapse','border-color','border-spacing','border-style','border-top','border-top-color','border-right-color','border-bottom-color','border-left-color','border-top-style','border-right-style','border-bottom-style','border-left-style','border-top-width','border-right-width','border-bottom-width','border-left-width','border-width','bottom','clear','clip','color','content','cursor','direction','display','elevation','empty-cells','css-float','font','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','height','left','letter-spacing','line-height','list-style','list-style-image','list-style-position','list-style-type','margin','margin-top','margin-right','margin-bottom','margin-left','max-height','max-width','min-height','min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding','padding-top','padding-right','padding-bottom','padding-left','pause','position','right','size','table-layout','text-align','text-decoration','text-indent','text-shadow','text-transform','top','vertical-align','visibility','white-space','width','word-spacing','z-index','opacity','outline-offset','overflow-x','overflow-y'];
// chains several Animator objects together
function AnimatorChain(animators, options) {
this.animators = animators;
this.setOptions(options);
for (var i=0; i<this.animators.length; i++) {
this.listenTo(this.animators[i]);
}
this.forwards = false;
this.current = 0;
}
AnimatorChain.prototype = {
// apply defaults
setOptions: function(options) {
this.options = Animator.applyDefaults({
// by default, each call to AnimatorChain.play() calls jumpTo(0) of each animator
// before playing, which can cause flickering if you have multiple animators all
// targeting the same element. Set this to false to avoid this.
resetOnPlay: true
}, options);
},
// play each animator in turn
play: function() {
this.forwards = true;
this.current = -1;
if (this.options.resetOnPlay) {
for (var i=0; i<this.animators.length; i++) {
this.animators[i].jumpTo(0);
}
}
this.advance();
},
// play all animators backwards
reverse: function() {
this.forwards = false;
this.current = this.animators.length;
if (this.options.resetOnPlay) {
for (var i=0; i<this.animators.length; i++) {
this.animators[i].jumpTo(1);
}
}
this.advance();
},
// if we have just play()'d, then call reverse(), and vice versa
toggle: function() {
if (this.forwards) {
this.seekTo(0);
} else {
this.seekTo(1);
}
},
// internal: install an event listener on an animator's onComplete option
// to trigger the next animator
listenTo: function(animator) {
var oldOnComplete = animator.options.onComplete;
var _this = this;
animator.options.onComplete = function() {
if (oldOnComplete) oldOnComplete.call(animator);
_this.advance();
}
},
// play the next animator
advance: function() {
if (this.forwards) {
if (this.animators[this.current + 1] == null) return;
this.current++;
this.animators[this.current].play();
} else {
if (this.animators[this.current - 1] == null) return;
this.current--;
this.animators[this.current].reverse();
}
},
// this function is provided for drop-in compatibility with Animator objects,
// but only accepts 0 and 1 as target values
seekTo: function(target) {
if (target <= 0) {
this.forwards = false;
this.animators[this.current].seekTo(0);
} else {
this.forwards = true;
this.animators[this.current].seekTo(1);
}
}
}
// an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in,
// and for each element an Animator and a activator button is created. When an Animator's activator button is
// clicked, the Animator and all before it seek to 0, and all Animators after it seek to 1. This can be used to
// create the classic Accordion effect, hence the name.
// see setOptions for arguments
function Accordion(options) {
this.setOptions(options);
var selected = this.options.initialSection, current;
if (this.options.rememberance) {
current = document.location.hash.substring(1);
}
this.rememberanceTexts = [];
this.ans = [];
var _this = this;
for (var i=0; i<this.options.sections.length; i++) {
var el = this.options.sections[i];
var an = new Animator(this.options.animatorOptions);
var from = this.options.from + (this.options.shift * i);
var to = this.options.to + (this.options.shift * i);
an.addSubject(new NumericalStyleSubject(el, this.options.property, from, to, this.options.units));
an.jumpTo(0);
var activator = this.options.getActivator(el);
activator.index = i;
activator.onclick = function(){_this.show(this.index)};
this.ans[this.ans.length] = an;
this.rememberanceTexts[i] = activator.innerHTML.replace(/\s/g, "");
if (this.rememberanceTexts[i] === current) {
selected = i;
}
}
this.show(selected);
}
Accordion.prototype = {
// apply defaults
setOptions: function(options) {
this.options = Object.extend({
// REQUIRED: an array of elements to use as the accordion sections
sections: null,
// a function that locates an activator button element given a section element.
// by default it takes a button id from the section's "activator" attibute
getActivator: function(el) {return document.getElementById(el.getAttribute("activator"))},
// shifts each animator's range, for example with options {from:0,to:100,shift:20}
// the animators' ranges will be 0-100, 20-120, 40-140 etc.
shift: 0,
// the first page to show
initialSection: 0,
// if set to true, document.location.hash will be used to preserve the open section across page reloads
rememberance: true,
// constructor arguments to the Animator objects
animatorOptions: {}
}, options || {});
},
show: function(section) {
for (var i=0; i<this.ans.length; i++) {
this.ans[i].seekTo(i > section ? 1 : 0);
}
if (this.options.rememberance) {
document.location.hash = this.rememberanceTexts[section];
}
}
}

View File

@@ -0,0 +1,64 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
var layer;
function init(){
var mapOptions = {
maxExtent: new OpenLayers.Bounds(-174,18.4,-63.5,71),
maxResolution: 0.25,
projection: "EPSG:4326"};
map = new OpenLayers.Map( 'map', mapOptions );
layer = new OpenLayers.Layer.ArcGIS93Rest( "ArcGIS Server Layer",
"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export",
{layers: "show:0,2"});
map.addLayer(layer);
map.addControl( new OpenLayers.Control.MousePosition() );
map.setCenter(new OpenLayers.LonLat(-115, 45), 0);
}
function enableFilter() {
layer.setLayerFilter(2, "STATE_NAME LIKE '%" + document.getElementById('filterValueField').value + "%'");
layer.redraw();
}
function disableFilter() {
layer.setLayerFilter(2, null);
layer.redraw();
}
function updateButton() {
document.getElementById('filterButton').value = "Show '" +
document.getElementById('filterValueField').value + "' States";
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcGIS Server 9.3 Rest API Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Shows the basic use of openlayers using an ArcGIS Server 9.3 Rest API layer
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of how to add an ArcGIS Server 9.3 Rest API layer to the OpenLayers window.
</div>
<input id="filterValueField" type="textfield" value="A"/>
<input id="filterButton" type="button" onclick="enableFilter();" value="Filter States"/>
<input type="button" onclick="disableFilter();" value="Show All States"/>
<br>
(Filter is case sensitive.)
</body>
</html>

View File

@@ -0,0 +1,77 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ArcIMS Thematic Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 0;
var lat = 0;
var zoom = 1;
var map, layer;
var query, renderer;
function init() {
OpenLayers.ProxyHost = "proxy.cgi?url=";
map = new OpenLayers.Map('map');
query = {where: "FIPS_ID>100 AND FIPS_ID<200"};
renderer = {
type: 'valuemap',
lookupfield: 'FIPS_ID',
ranges: [
{ lower: 100, upper: 120, symbol: { type: 'simplepolygon', fillcolor: '255,0,0' } },
{ lower: 120, upper: 140, symbol: { type: 'simplepolygon', fillcolor: '255,255,0' } },
{ lower: 140, upper: 160, symbol: { type: 'simplepolygon', fillcolor: '0,255,0' } },
{ lower: 160, upper: 180, symbol: { type: 'simplepolygon', fillcolor: '0,255,255' } },
{ lower: 180, upper: 200, symbol: { type: 'simplepolygon', fillcolor: '0,0,255' } }
]
};
var options = {
layers: [{
id: "1",
visible: true,
query: query,
renderer: renderer
}],
serviceName: "OpenLayers_Sample",
singleTile: true,
async: true
};
layer = new OpenLayers.Layer.ArcIMS(
"Global Sample Map",
"http://sample.azavea.com/servlet/com.esri.esrimap.Esrimap",
options
);
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl(new OpenLayers.Control.LayerSwitcher());
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcIMS Thematic Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Shows the advanced use of OpenLayers using a thematic ArcIMS layer
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This is an example of how to add an ArcIMS layer to an OpenLayers map.</p>
<p>Following the ArcXML convention to create a thematic (or chloropleth) map,
a layer definition is created with a query and a renderer to select portions
of the map data, and change their representation in the generated map tiles.</p>
</div>
</body>
</html>

52
examples/arcims.html Normal file
View File

@@ -0,0 +1,52 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ArcIMS Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 0;
var lat = 0;
var zoom = 1;
var map, layer;
function init(){
OpenLayers.ProxyHost = "proxy.cgi?url=";
map = new OpenLayers.Map( 'map' );
var options = {
serviceName: "OpenLayers_Sample",
async: true
};
layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",
"http://sample.azavea.com/servlet/com.esri.esrimap.Esrimap", options );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
</script>
</head>
<body onload="init()">
<h1 id="title">ArcIMS Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Shows the basic use of OpenLayers using an ArcIMS layer
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of how to add an ArcIMS layer to the OpenLayers window.
</div>
</body>
</html>

View File

@@ -1,13 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<title>OpenLayers Attribution Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
@@ -18,10 +15,14 @@
{'attribution': 'Provided by <a href="http://labs.metacarta.com/">MetaCarta</a>'});
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"},{attribution:"Provided by NASA"});
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"},{attribution:"Provided by Telascience"});
var vector = new OpenLayers.Layer.Vector("Simple Geometry",
{attribution:"Vector Attibution in 2nd arg"});
map.addLayers([ol_wms, jpl_wms, vector]);
map.addLayers([ol_wms, jpl_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.Attribution());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
@@ -30,7 +31,24 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
<h1 id="title">Attribution Example</h1>
<div id="tags">
copyright watermark logo attribution
</div>
<p id="shortdesc">
Shows the use of the attribution layer option on a number of layer types.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of how to add an attribution block to the OpenLayers window. In order to use an
attribution block, an attribution parameter must be set in each layer that requires attribution. In
addition, an attribution control must be added to the map, though one is added to all OpenLayers Maps by default.
Be aware that this is a layer *option*: the options hash goes in
different places depending on the layer type you are using.
</div>
</body>
</html>

View File

@@ -1,11 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Base Layers Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 100%;
height: 512px;
border: 1px solid black;
background-color: blue;
#controls
{
width: 512px;
}
</style>
@@ -14,7 +16,7 @@
<!-- Localhost key -->
<!-- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTS6gjckBmeABOGXIUiOiZObZESPg'></script>-->
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script>
<script src='http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js'></script>
<script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
@@ -72,9 +74,23 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers With WMS, Google, VE Example</h1>
<div id="map"></div>
<h1 id="title">Base Layers Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
This example shows the use base layers from multiple commercial map image providers.
</p>
<div id="controls">
<div id="map" class="smallmap"></div>
<div style="background-color:green" onclick="add()"> click to add a marker to the map</div>
<div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div>
</div>
<div id="docs">
</div>
</body>
</html>

View File

@@ -0,0 +1,49 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Vector Behavior Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
var layer = new OpenLayers.Layer.Vector("GML", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "gml/polygon.xml",
format: new OpenLayers.Format.GML()
})
});
map.addLayers([wms, layer]);
map.zoomToExtent(new OpenLayers.Bounds(
-3.92, 44.34, 4.87, 49.55
));
}
</script>
</head>
<body onload="init()">
<h1 id="title">Vector Behavior Example (Fixed/HTTP/GML)</h1>
<p id="shortdesc">
Vector layer with a Fixed strategy, HTTP protocol, and GML format.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
The vector layer shown uses the Fixed strategy, the HTTP protocol,
and the GML format.
The Fixed strategy is a simple strategy that fetches features once
and never re-requests new data.
The HTTP protocol makes requests using HTTP verbs. It should be
constructed with a url that corresponds to a collection of features
(a resource on some server).
The GML format is used to serialize features.
</div>
</body>
</html>

49
examples/bing.html Normal file
View File

@@ -0,0 +1,49 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Bing Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=en-us"></script>
<script src="../lib/OpenLayers.js"></script>
<script>
var map;
function init(){
map = new OpenLayers.Map("map");
map.addControl(new OpenLayers.Control.LayerSwitcher());
var shaded = new OpenLayers.Layer.VirtualEarth("Shaded", {
type: VEMapStyle.Shaded
});
var hybrid = new OpenLayers.Layer.VirtualEarth("Hybrid", {
type: VEMapStyle.Hybrid
});
var aerial = new OpenLayers.Layer.VirtualEarth("Aerial", {
type: VEMapStyle.Aerial
});
map.addLayers([shaded, hybrid, aerial]);
map.setCenter(new OpenLayers.LonLat(-110, 45), 3);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Bing Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates the use of Bing layers.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">This example demonstrates the ability to create layers using tiles from Bing maps.</div>
</body>
</html>

View File

@@ -0,0 +1,54 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Boxes Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var box_extents = [
[-10, 50, 5, 60],
[-75, 41, -71, 44],
[-122.6, 37.6, -122.3, 37.9],
[10, 10, 20, 20]
];
var map;
function init(){
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
var boxes = new OpenLayers.Layer.Vector( "Boxes" );
for (var i = 0; i < box_extents.length; i++) {
ext = box_extents[i];
bounds = new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]);
box = new OpenLayers.Feature.Vector(bounds.toGeometry());
boxes.addFeatures(box);
}
map.addLayers([ol_wms, boxes]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
var sf = new OpenLayers.Control.SelectFeature(boxes);
map.addControl(sf);
sf.activate();
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title">Boxes Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate marker and box type annotations on a map.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<title>OpenLayers Boxes Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var box_extents = [
@@ -41,7 +37,17 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
<h1 id="title">Boxes Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate marker and box type annotations on a map.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -0,0 +1,89 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
// making this a global variable so that it is accessible for
// debugging/inspecting in Firebug
var map = null;
function init(){
//set title name to include Browser Detection
// this is the only way to test the functionality
// of the getBrowserName() function
//
var header = OpenLayers.Util.getElement("browserHeader");
header.innerHTML = "(browser: ";
var browserCode = OpenLayers.Util.getBrowserName();
switch (browserCode) {
case "opera":
browserName = "Opera";
break;
case "msie":
browserName = "Internet Explorer";
break;
case "safari":
browserName = "Safari";
break;
case "firefox":
browserName = "FireFox";
break;
case "mozilla":
browserName = "Mozilla";
break;
default:
browserName = "detection error"
break;
}
header.innerHTML += browserName + ")";
map = new OpenLayers.Map('map');
var options = {
resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
};
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'},
options);
var options2 = {
resolutions: [0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
};
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"}, options2);
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
"prov_bound,fedlimit,rail,road,popplace",
transparent: "true", format: "image/png"},
{minResolution: 0.17578125,
maxResolution: 0.703125});
map.addLayers([ol_wms, jpl_wms, dm_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title" style="display:inline;">Example Showing Browser Name</h1>
<h3 id="browserHeader" style="display:inline;"></h3>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a simple map that shows the browser name.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 694px;
height: 464px;
border: 1px solid black;
}
</style>
<title>OpenLayers Buffer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 0;
@@ -34,8 +30,20 @@
</script>
</head>
<body onload="init()">
<div id="map"></div>
<p>Use the buffer property to control how many tiles are included
outside the visible map area. Default is 2</p>
<h1 id="title">Buffer Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
This example shows the use of the buffer layer option for any layer that inherits from OpenLayers.Layer.Grid.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
Use the buffer property to control how many tiles are included
outside the visible map area. Default is 2.
</div>
</body>
</html>

28
examples/canvas.html Normal file
View File

@@ -0,0 +1,28 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Canvas Renderer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<script src="canvas.js"></script>
</head>
<body onload="init()">
<h1 id="title">Canvas Renderer Example</h1>
<p id="shortdesc">
Demonstrates the use of the canvas renderer with a vector layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
This example shows a vector layer that uses the Canvas renderer
where available. The order of the renderers given in the layer
options is used to locate the first available renderer.
</p>
<p>
See the <a href="canvas.js" target="_blank">canvas.js source</a>
to see how this is done.
</p>
</div>
</body>
</html>

62
examples/canvas.js Normal file
View File

@@ -0,0 +1,62 @@
var map, layer, styleMap;
OpenLayers.ProxyHost = "proxy.cgi?url=";
function init() {
map = new OpenLayers.Map({
div: "map",
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(
-20037508, -20037508, 20037508, 20037508
)
});
var g = new OpenLayers.Layer.Google("Google Layer", {
sphericalMercator: true
});
map.addLayers([g]);
// prepare to style the data
styleMap = new OpenLayers.StyleMap({
strokeColor: "black",
strokeWidth: 2,
strokeOpacity: 0.5,
fillOpacity: 0.2
});
// create a color table for state FIPS code
var colors = ["red", "orange", "yellow", "green", "blue", "purple"];
var code, fips = {};
for(var i=1; i<=66; ++i) {
code = "0" + i;
code = code.substring(code.length - 2);
fips[code] = {fillColor: colors[i % colors.length]};
}
// add unique value rules with your color lookup
styleMap.addUniqueValueRules("default", "STATE_FIPS", fips);
// create a vector layer using the canvas renderer (where available)
var wfs = new OpenLayers.Layer.Vector("States", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:900913",
url: "http://demo.opengeo.org/geoserver/wfs",
featureType: "states",
featureNS: "http://www.openplans.org/topp"
}),
styleMap: styleMap,
renderers: ["Canvas", "SVG", "VML"]
});
map.addLayer(wfs);
// if you want to use Geographic coords, transform to ESPG:900913
var ddBounds = new OpenLayers.Bounds(
-73.839111,40.287907,-68.214111,44.441624
);
map.zoomToExtent(
ddBounds.transform(map.displayProjection, map.getProjectionObject())
);
}

227
examples/click-handler.html Normal file
View File

@@ -0,0 +1,227 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Click Handler Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 340px;
height: 170px;
border: 1px solid gray;
}
#west {
width: 350px;
}
#east {
position: absolute;
left: 370px;
top: 3em;
}
table td {
text-align: center;
margin: 0;
border: 1px solid gray;
}
textarea.output {
text-align: left;
font-size: 0.9em;
width: 250px;
height: 65px;
overflow: auto;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
defaultHandlerOptions: {
'single': true,
'double': false,
'pixelTolerance': 0,
'stopSingle': false,
'stopDouble': false
},
initialize: function(options) {
this.handlerOptions = OpenLayers.Util.extend(
{}, this.defaultHandlerOptions
);
OpenLayers.Control.prototype.initialize.apply(
this, arguments
);
this.handler = new OpenLayers.Handler.Click(
this, {
'click': this.onClick,
'dblclick': this.onDblclick
}, this.handlerOptions
);
},
onClick: function(evt) {
var output = document.getElementById(this.key + "Output");
var msg = "click " + evt.xy;
output.value = output.value + msg + "\r\n";
},
onDblclick: function(evt) {
var output = document.getElementById(this.key + "Output");
var msg = "dblclick " + evt.xy;
output.value = output.value + msg + "\n";
}
});
var map, controls;
function init(){
map = new OpenLayers.Map('map');
var layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
map.addLayers([layer]);
controls = {
"single": new OpenLayers.Control.Click({
handlerOptions: {
"single": true
}
}),
"double": new OpenLayers.Control.Click({
handlerOptions: {
"single": false,
"double": true
}
}),
"both": new OpenLayers.Control.Click({
handlerOptions: {
"single": true,
"double": true
}
}),
"drag": new OpenLayers.Control.Click({
handlerOptions: {
"single": true,
"pixelTolerance": null
}
}),
"stopsingle": new OpenLayers.Control.Click({
handlerOptions: {
"single": true,
"stopSingle": true
}
}),
"stopdouble": new OpenLayers.Control.Click({
handlerOptions: {
"single": false,
"double": true,
"stopDouble": true
}
})
};
var props = document.getElementById("props");
var control;
for(var key in controls) {
control = controls[key];
// only to route output here
control.key = key;
map.addControl(control);
}
map.zoomToMaxExtent();
}
function toggle(key) {
var control = controls[key];
if(control.active) {
control.deactivate();
} else {
control.activate();
}
var status = document.getElementById(key + "Status");
status.innerHTML = control.active ? "on" : "off";
var output = document.getElementById(key + "Output");
output.value = "";
}
</script>
</head>
<body onload="init()">
<h1 id="title">Click Handler Example</h1>
<div id="west">
<div id="tags">
</div>
<p id="shortdesc">
This example shows the use of the click handler.
</p>
<div id="map" class="smallmap"></div>
<p>
The click handler can be used to gain more flexibility over handling
click events. The handler can be constructed with options to handle
only single click events, to handle single and double-click events,
to ignore clicks that include a drag, and to stop propagation of
single and/or double-click events. A single click is a click that
is not followed by another click for more than 300ms. This delay
is configured with the delay property.
</p>
<p>
The options to stop single and double clicks have to do with
stopping event propagation on the map events listener queue
(not stopping events from cascading to other elements). The
ability to stop an event from propagating has to do with the
order in which listeners are registered. With stopSingle or
stopDouble true, a click handler will stop propagation to all
listeners that were registered (or all handlers that were
activated) before the click handler was activated. So, for
example, activating a click handler with stopDouble true after
the navigation control is active will stop double-clicks from
zooming in.
</p>
</div>
<div id="east">
<table>
<caption>Controls with click handlers (toggle on/off to clear output)</caption>
<tbody>
<tr>
<td>single only</td>
<td><button id="singleStatus" onclick="toggle('single')">off</button></td>
<td><textarea class="output" id="singleOutput"></textarea></td>
</tr>
<tr>
<td>double only</td>
<td><button id="doubleStatus" onclick="toggle('double')">off</button></td>
<td><textarea class="output" id="doubleOutput"></textarea></td>
</tr>
<tr>
<td>both</td>
<td><button id="bothStatus" onclick="toggle('both')">off</button></td>
<td><textarea class="output" id="bothOutput"></textarea></td>
</tr>
<tr>
<td>single with drag</td>
<td><button id="dragStatus" onclick="toggle('drag')">off</button></td>
<td><textarea class="output" id="dragOutput"></textarea></td>
</tr>
<tr>
<td>single with stop</td>
<td><button id="stopsingleStatus" onclick="toggle('stopsingle')">off</button></td>
<td><textarea class="output" id="stopsingleOutput"></textarea></td>
</tr>
<tr>
<td>double with stop</td>
<td><button id="stopdoubleStatus" onclick="toggle('stopdouble')">off</button></td>
<td><textarea class="output" id="stopdoubleOutput"></textarea></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

View File

@@ -1,14 +1,41 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<title>OpenLayers Click Event Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
defaultHandlerOptions: {
'single': true,
'double': false,
'pixelTolerance': 0,
'stopSingle': false,
'stopDouble': false
},
initialize: function(options) {
this.handlerOptions = OpenLayers.Util.extend(
{}, this.defaultHandlerOptions
);
OpenLayers.Control.prototype.initialize.apply(
this, arguments
);
this.handler = new OpenLayers.Handler.Click(
this, {
'click': this.trigger
}, this.handlerOptions
);
},
trigger: function(e) {
var lonlat = map.getLonLatFromViewPortPx(e.xy);
alert("You clicked near " + lonlat.lat + " N, " +
+ lonlat.lon + " E");
}
});
var map;
function init(){
map = new OpenLayers.Map('map');
@@ -17,8 +44,8 @@
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"});
jpl_wms.setVisibility(false);
@@ -26,16 +53,29 @@
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
map.events.register("click", map, function(e) {
var lonlat = map.getLonLatFromViewPortPx(e.xy);
alert("You clicked near " + lonlat.lat + " N, " +
+ lonlat.lon + " E");
});
var click = new OpenLayers.Control.Click();
map.addControl(click);
click.activate();
}
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
<h1 id="title">Click Event Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
This example shows the use of the click handler and getLonLatFromViewPortPx functions to trigger events on mouse click.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
Using the Click handler allows you to (for example) catch clicks without catching double clicks, something that standard browser events don't do for you. (Try double clicking: you'll zoom in, whereas using the browser click event, you would just get two alerts.) This example click control shows you how to use it.
</div>
</body>
</html>

View File

@@ -1,35 +1,36 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<title>OpenLayers Map Controls Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map', { controls: [] });
map = new OpenLayers.Map('map', {
controls: [
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.LayerSwitcher({'ascending':false}),
new OpenLayers.Control.Permalink(),
new OpenLayers.Control.ScaleLine(),
new OpenLayers.Control.Permalink('permalink'),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.OverviewMap(),
new OpenLayers.Control.KeyboardDefaults()
],
numZoomLevels: 6
});
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.MouseToolbar());
map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));
map.addControl(new OpenLayers.Control.Permalink());
map.addControl(new OpenLayers.Control.Permalink('permalink'));
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.OverviewMap());
map.addControl(new OpenLayers.Control.KeyboardDefaults());
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"});
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
@@ -45,8 +46,18 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<h1 id="title">Map Controls Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Attach zooming, panning, layer switcher, overview map, and permalink map controls to an OpenLayers window.
</p>
<a style="float:right" href="" id="permalink">Permalink</a>
<div id="map"></div>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,15 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers Custom Control Point Examle</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
@@ -41,11 +36,21 @@
map.addControl(control);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
// -->
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">Custom Control Point Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate the addition of a point reporting control to the OpenLayers window.
</p>
<div id="map" class="smallmap"></div>
<div id="bounds"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,15 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>Custom Control Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
@@ -32,7 +27,12 @@
},
notice: function (bounds) {
alert(bounds);
var ll = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, bounds.bottom));
var ur = map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.right, bounds.top));
alert(ll.lon.toFixed(4) + ", " +
ll.lat.toFixed(4) + ", " +
ur.lon.toFixed(4) + ", " +
ur.lat.toFixed(4));
}
});
@@ -40,10 +40,20 @@
map.addControl(control);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
// -->
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">Custom Control Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate the addition of a draggable rectangle to the OpenLayers window.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,12 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Custom Style Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 500px;
height: 350px;
border: 1px solid gray;
}
p {
width: 500px;
}
@@ -18,7 +16,6 @@
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
@@ -34,11 +31,21 @@
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
// -->
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">Custom Style Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrate changing CSS styles on controls in the OpenLayers window.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>If you care to modify the style of any OpenLayers element, include
the default stylesheet as a link and declare any style modifications
below that link. These style declarations can be in other linked
@@ -49,5 +56,6 @@
<p>This example shows how to declare the font family, size, and color
for the mouse position. Note that only the style keys that you want to
modify (change from the default) need to be specified.</p>
</div>
</body>
</html>

10
examples/data/line.json Normal file
View File

@@ -0,0 +1,10 @@
{
"type": "FeatureCollection",
"features": [
{"type":"Feature", "id":"OpenLayers.Feature.Vector_458", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[-121.640625, 24.2578125], [-78.046875, 27.7734375], [-45.703125, 24.9609375], [-13.359375, 16.5234375], [12.65625, 6.6796875], [39.375, 1.0546875], [76.640625, 1.0546875], [108.28125, 1.7578125], [156.09375, 15.8203125]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1111", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[-122.34375, -35.5078125], [-48.515625, -33.3984375], [-5.625, -37.6171875], [20.390625, -32.6953125], [69.609375, -34.1015625], [121.640625, -38.3203125], [150.46875, -33.3984375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_634", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[-54.84375, 69.9609375], [-56.953125, 31.9921875], [-56.953125, 5.2734375], [-65.390625, -34.8046875], [-66.09375, -61.5234375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_820", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[39.375, 58.0078125], [42.890625, 25.6640625], [42.1875, -1.0546875], [37.96875, -50.2734375], [37.265625, -64.3359375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1280", "properties":{}, "geometry":{"type":"LineString", "coordinates":[[101.25, 42.5390625], [106.875, 13.7109375], [106.171875, -17.9296875], [104.765625, -49.5703125], [102.65625, -67.1484375]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
]
}

8
examples/data/point.json Normal file
View File

@@ -0,0 +1,8 @@
{
"type": "FeatureCollection",
"features": [
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1721", "properties":{}, "geometry":{"type":"Point", "coordinates":[-89.296875, -14.4140625]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1715", "properties":{}, "geometry":{"type":"Point", "coordinates":[-25.3125, -54.4921875]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1709", "properties":{}, "geometry":{"type":"Point", "coordinates":[73.828125, -23.5546875]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
]
}

9
examples/data/poly.json Normal file
View File

@@ -0,0 +1,9 @@
{
"type": "FeatureCollection",
"features": [
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1489", "properties":{}, "geometry":{"type":"Polygon", "coordinates":[[[-109.6875, 63.6328125], [-112.5, 35.5078125], [-85.078125, 34.8046875], [-68.90625, 39.7265625], [-68.203125, 67.1484375], [-109.6875, 63.6328125]]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}},
{"type":"Feature", "id":"OpenLayers.Feature.Vector_1668", "properties":{}, "geometry":{"type":"Polygon", "coordinates":[[[-40.78125, 65.0390625], [-40.078125, 34.8046875], [-12.65625, 25.6640625], [21.09375, 17.2265625], [22.5, 58.0078125], [-40.78125, 65.0390625]]]}, "crs":{"type":"OGC", "properties":{"urn":"urn:ogc:def:crs:OGC:1.3:CRS84"}}}
]
}

349
examples/data/roads.json Normal file
View File

@@ -0,0 +1,349 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "LINK_ID": 30760460.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "24", "L_NREFADDR": "22", "R_REFADDR": "27", "R_NREFADDR": "23", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 41.871700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.330250, 6403958.170400 ], [ 1549594.439950, 6403973.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730499.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 46.382600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549497.669850, 6403707.960000 ], [ 1549491.100000, 6403710.100000 ], [ 1549488.039950, 6403716.750400 ], [ 1549488.540100, 6403724.550400 ], [ 1549494.379850, 6403733.540000 ], [ 1549499.679900, 6403738.050400 ], [ 1549506.220000, 6403739.250400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760556.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "24", "L_NREFADDR": "16", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 70.310600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549754.276900, 6403854.802400 ], [ 1549728.459850, 6403920.200000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760712.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "9", "R_NREFADDR": "9", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 40.068900 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549571.899950, 6403675.450400 ], [ 1549592.674200, 6403684.530400 ], [ 1549608.619850, 6403691.500000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30837043.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 78.203400 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549741.089950, 6403765.520000 ], [ 1549730.790150, 6403779.880000 ], [ 1549703.919950, 6403834.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545558.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 20.687400 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549909.400050, 6403973.670400 ], [ 1549900.829950, 6403992.491200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760549.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "38", "L_NREFADDR": "36", "R_REFADDR": "33", "R_NREFADDR": "31", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 32.788800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549878.029900, 6403861.890400 ], [ 1549867.520100, 6403892.960000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547479.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "18", "L_NREFADDR": "14", "R_REFADDR": "15", "R_NREFADDR": "13", "SPEED_CAT": "8", "ZIPCODE": "59330", "SHAPE_LEN": 15.654700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549645.069900, 6403971.520000 ], [ 1549638.940000, 6403985.930400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760575.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "24", "L_NREFADDR": "14", "R_REFADDR": "19", "R_NREFADDR": "13", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 118.385000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549703.919950, 6403834.130400 ], [ 1549656.739950, 6403942.710400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760608.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "32", "L_NREFADDR": "32", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 74.462800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549566.450100, 6403780.090400 ], [ 1549635.170150, 6403808.780000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547481.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 13.834500 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549625.900050, 6403981.310400 ], [ 1549638.940000, 6403985.930400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730495.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 63.537000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549535.370100, 6403692.830400 ], [ 1549549.530050, 6403703.030400 ], [ 1549570.300100, 6403708.850400 ], [ 1549570.600050, 6403733.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545560.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 20.545100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.119850, 6403985.020000 ], [ 1549944.182350, 6403996.455200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760664.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "3", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 59.030600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549679.130150, 6403720.210400 ], [ 1549717.099900, 6403730.700000 ], [ 1549726.590150, 6403734.160000 ], [ 1549734.260050, 6403739.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547480.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "20", "L_NREFADDR": "20", "R_REFADDR": "21", "R_NREFADDR": "21", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 12.375300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549614.030150, 6403977.820000 ], [ 1549621.149850, 6403980.140000 ], [ 1549625.900050, 6403981.310400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760739.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "13", "R_NREFADDR": "11", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 57.793000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549522.250000, 6403645.880000 ], [ 1549571.899950, 6403675.450400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545557.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "26", "L_NREFADDR": "20", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 62.216100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549929.770050, 6403914.890400 ], [ 1549909.400050, 6403973.670400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760610.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "SLOTTSHOLMSV<53>GEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 60.324700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549921.910100, 6403780.010400 ], [ 1549931.136800, 6403785.640000 ], [ 1549946.150050, 6403794.800000 ], [ 1549960.880150, 6403807.230400 ], [ 1549962.209450, 6403808.998400 ], [ 1549968.489850, 6403817.350400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760475.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "SP<53>TORGET", "L_REFADDR": "9", "L_NREFADDR": "1", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "8", "ZIPCODE": "59330", "SHAPE_LEN": 70.301600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549656.739950, 6403942.710400 ], [ 1549631.800000, 6403936.830400 ], [ 1549614.030150, 6403977.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547460.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "30", "L_NREFADDR": "26", "R_REFADDR": "31", "R_NREFADDR": "29", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 62.288000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549496.649950, 6403937.400000 ], [ 1549525.699950, 6403946.670400 ], [ 1549555.330250, 6403958.170400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547482.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 22.019100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549645.069900, 6403971.520000 ], [ 1549637.249850, 6403978.110400 ], [ 1549633.070150, 6403979.170400 ], [ 1549625.900050, 6403981.310400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730502.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 26.440100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549535.370100, 6403692.830400 ], [ 1549528.510100, 6403718.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730491.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "48", "L_NREFADDR": "48", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 53.485400 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549608.619850, 6403691.500000 ], [ 1549600.079850, 6403708.100000 ], [ 1549584.219950, 6403739.090400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760461.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "R<>DHUSGATAN", "L_REFADDR": "52", "L_NREFADDR": "50", "R_REFADDR": "43", "R_NREFADDR": "41", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 62.397200 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.330250, 6403958.170400 ], [ 1549531.400050, 6404015.800000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760674.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 13.834500 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549666.080050, 6403715.590400 ], [ 1549679.130150, 6403720.210400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545555.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "SLOTTSHOLMSV<53>GEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 185.679000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549968.489850, 6403817.350400 ], [ 1549977.779900, 6403836.400000 ], [ 1549983.460050, 6403858.740000 ], [ 1549982.539900, 6403884.350400 ], [ 1549978.140050, 6403903.230400 ], [ 1549947.139850, 6403954.090400 ], [ 1549927.119850, 6403985.020000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760515.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 22.968600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549938.960000, 6403893.840000 ], [ 1549929.770050, 6403914.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760497.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 24.829800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549488.599950, 6403913.910400 ], [ 1549496.649950, 6403937.400000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30837044.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 146.769000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549776.080150, 6403777.100000 ], [ 1549785.590000, 6403778.330400 ], [ 1549886.280100, 6403772.890400 ], [ 1549908.484450, 6403777.327200 ], [ 1549921.910100, 6403780.010400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760477.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "14", "L_NREFADDR": "12", "R_REFADDR": "19", "R_NREFADDR": "11", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 78.700300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549723.519950, 6403934.620000 ], [ 1549697.600000, 6404008.930400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760542.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "22", "L_NREFADDR": "18", "R_REFADDR": "29", "R_NREFADDR": "21", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 34.587000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549798.179850, 6403867.590400 ], [ 1549830.790050, 6403879.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760457.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NYGATAN", "L_REFADDR": "8", "L_NREFADDR": "6", "R_REFADDR": "15", "R_NREFADDR": "7", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 45.468000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549796.459950, 6403958.910400 ], [ 1549839.739900, 6403972.810400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573703846.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 8.208130 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549734.260050, 6403739.820000 ], [ 1549738.939900, 6403746.560000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760631.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 46.824600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549741.290150, 6403748.820000 ], [ 1549753.539450, 6403766.201600 ], [ 1549754.750100, 6403767.920000 ], [ 1549761.249950, 6403772.460000 ], [ 1549776.080150, 6403777.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760491.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 15.240700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549728.459850, 6403920.200000 ], [ 1549723.519950, 6403934.620000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760566.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "NORRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 54.648300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549960.410100, 6403843.980000 ], [ 1549959.139950, 6403850.640000 ], [ 1549952.470000, 6403860.580000 ], [ 1549938.960000, 6403893.840000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547447.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 13.369300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.421200, 6403767.822400 ], [ 1549921.910100, 6403780.010400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730503.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 44.681900 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549528.510100, 6403718.360000 ], [ 1549570.600050, 6403733.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80545559.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 21.047100 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549909.400050, 6403973.670400 ], [ 1549927.119850, 6403985.020000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547444.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 46.504800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549967.599100, 6403744.932000 ], [ 1549943.650000, 6403755.770400 ], [ 1549927.421200, 6403767.822400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730492.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 44.681800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549584.219950, 6403739.090400 ], [ 1549566.450100, 6403780.090400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760700.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "7", "R_NREFADDR": "5", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 62.310700 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549608.619850, 6403691.500000 ], [ 1549666.080050, 6403715.590400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760611.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 51.110800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549921.910100, 6403780.010400 ], [ 1549913.480000, 6403787.710400 ], [ 1549891.640000, 6403820.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547478.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BREDGATAN", "L_REFADDR": "24", "L_NREFADDR": "20", "R_REFADDR": "19", "R_NREFADDR": "17", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 31.088600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549656.739950, 6403942.710400 ], [ 1549645.069900, 6403971.520000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760451.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 20.146600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549594.439950, 6403973.130400 ], [ 1549614.030150, 6403977.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760525.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "16", "L_NREFADDR": "14", "R_REFADDR": "19", "R_NREFADDR": "15", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 39.254300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549830.790050, 6403879.130400 ], [ 1549867.520100, 6403892.960000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760497.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 24.829800 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549488.599950, 6403913.910400 ], [ 1549496.649950, 6403937.400000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573703847.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 3.259030 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549738.939900, 6403746.560000 ], [ 1549741.290150, 6403748.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730500.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 31.544900 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549528.510100, 6403718.360000 ], [ 1549511.590050, 6403738.200000 ], [ 1549506.220000, 6403739.250400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730504.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 32.542600 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549497.669850, 6403707.960000 ], [ 1549528.510100, 6403718.360000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760589.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "", "CHANGED": "", "USERID": "", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "23", "R_NREFADDR": "21", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 47.569300 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549771.489900, 6403810.460000 ], [ 1549754.276900, 6403854.802400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270836", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 34.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549967.599100, 6403744.932000 ], [ 1549999.352500, 6403730.830400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270839", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 9.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549967.599100, 6403744.932000 ], [ 1549975.575600, 6403750.824800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270840", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 18.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549975.575600, 6403750.824800 ], [ 1549992.301750, 6403743.152800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 22, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270840", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 16.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1550001.325450, 6403756.464000 ], [ 1549992.301750, 6403743.152800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270842", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 12.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.421200, 6403767.822400 ], [ 1549936.717550, 6403775.876000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270842", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 46.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549936.717550, 6403775.876000 ], [ 1549958.789600, 6403758.524000 ], [ 1549975.575600, 6403750.824800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547691.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270844", "USERID": "LO-JKP", "ST_NAME": "NORRA BANGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 209.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549937.660100, 6403662.140000 ], [ 1549881.800100, 6403701.550400 ], [ 1549764.730000, 6403731.290400 ], [ 1549745.501350, 6403736.423200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547691.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270844", "USERID": "LO-JKP", "ST_NAME": "NORRA BANGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 11.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549734.260050, 6403739.820000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270847", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 32.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549927.421200, 6403767.822400 ], [ 1549930.803600, 6403753.404000 ], [ 1549928.832400, 6403735.662400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270847", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 53.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549928.832400, 6403735.662400 ], [ 1549962.732350, 6403727.381600 ], [ 1549967.599100, 6403744.932000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270848", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 44.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549928.832400, 6403735.662400 ], [ 1549886.025300, 6403747.621600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270848", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 11.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549886.025300, 6403747.621600 ], [ 1549875.211350, 6403750.643200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270848", "USERID": "LO-JKP", "ST_NAME": "STATIONSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 19.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549888.409150, 6403767.056000 ], [ 1549886.025300, 6403747.621600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270922", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 20.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549760.669300, 6403722.331200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270923", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 126.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549760.669300, 6403722.331200 ], [ 1549771.919700, 6403716.340800 ], [ 1549815.248650, 6403610.940000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547535.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808270933", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 5.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549681.045700, 6403715.598400 ], [ 1549679.130150, 6403720.210400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270933", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 68.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549740.387150, 6403731.321600 ], [ 1549681.045700, 6403715.598400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760732.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270934", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "2", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 56.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549683.510050, 6403654.550400 ], [ 1549667.935400, 6403709.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760732.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808270934", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "2", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59332", "SHAPE_LEN": 6.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549667.935400, 6403709.100000 ], [ 1549666.080050, 6403715.590400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270934", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 14.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549681.045700, 6403715.598400 ], [ 1549667.935400, 6403709.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270935", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 40.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549763.755600, 6403714.004800 ], [ 1549738.019750, 6403704.509600 ], [ 1549731.660600, 6403715.640800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547428.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "10", "L_NREFADDR": "2", "R_REFADDR": "1", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59331", "SHAPE_LEN": 15.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549766.018350, 6403708.067200 ], [ 1549763.755600, 6403714.004800 ], [ 1549760.669300, 6403722.331200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 48.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549766.018350, 6403708.067200 ], [ 1549736.048550, 6403696.628800 ], [ 1549743.183300, 6403681.558400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547428.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "10", "L_NREFADDR": "2", "R_REFADDR": "1", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59331", "SHAPE_LEN": 22.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549774.118750, 6403686.709600 ], [ 1549766.018350, 6403708.067200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270936", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 36.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549774.118750, 6403686.709600 ], [ 1549747.876450, 6403676.916800 ], [ 1549751.868550, 6403670.136800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547428.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808270937", "USERID": "LO-JKP", "ST_NAME": "HALLSTR<54>MSGATAN", "L_REFADDR": "10", "L_NREFADDR": "2", "R_REFADDR": "1", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59331", "SHAPE_LEN": 25.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549783.651700, 6403662.588800 ], [ 1549778.530150, 6403674.660000 ], [ 1549774.118750, 6403686.709600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547535.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808270938", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 18.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549703.060000, 6403662.590400 ], [ 1549695.854900, 6403679.940000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547535.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808270938", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "6", "ZIPCODE": "59331", "SHAPE_LEN": 38.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549695.854900, 6403679.940000 ], [ 1549681.045700, 6403715.598400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270938", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 27.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549695.854900, 6403679.940000 ], [ 1549710.817400, 6403684.797600 ], [ 1549716.384850, 6403674.867200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808270939", "USERID": "LO-JKP", "ST_NAME": "ESPLANADEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 18.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549704.982200, 6403658.172000 ], [ 1549717.515000, 6403662.725600 ], [ 1549719.527500, 6403657.506400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271124", "USERID": "LO-JKP", "ST_NAME": "F<>NGELSETORGET", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 192.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549908.200950, 6403637.271200 ], [ 1549910.100750, 6403648.924800 ], [ 1549887.237000, 6403693.868800 ], [ 1549878.956000, 6403699.779200 ], [ 1549807.205300, 6403714.370400 ], [ 1549760.669300, 6403722.331200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 1900112527.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808271126", "USERID": "LO-JKP", "ST_NAME": "F<>NGELSETORGET", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 100.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549809.770450, 6403695.048800 ], [ 1549792.424450, 6403687.958400 ], [ 1549824.218800, 6403612.351200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271126", "USERID": "LO-JKP", "ST_NAME": "F<>NGELSETOGET", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 17.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549817.102950, 6403710.910400 ], [ 1549809.770450, 6403695.048800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547449.000000, "RP_TYPE": 10, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271128", "USERID": "LO-JKP", "ST_NAME": "S<>DRA VARVSGATAN", "L_REFADDR": "40", "L_NREFADDR": "32", "R_REFADDR": "21", "R_NREFADDR": "15", "SPEED_CAT": "6", "ZIPCODE": "59350", "SHAPE_LEN": 23.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549989.554600, 6403806.848000 ], [ 1549976.880050, 6403812.990400 ], [ 1549968.489850, 6403817.350400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730501.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271500", "USERID": "LO-JKP", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 9.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549570.600050, 6403733.360000 ], [ 1549579.722100, 6403737.201600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730501.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271500", "USERID": "LO-JKP", "ST_NAME": "", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 4.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549579.722100, 6403737.201600 ], [ 1549584.219950, 6403739.090400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 573730505.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271504", "USERID": "LO-JKP", "ST_NAME": "L<>ROVERKSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 79.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549471.922100, 6403800.288000 ], [ 1549539.838900, 6403825.187200 ], [ 1549546.809850, 6403827.740000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59332", "SHAPE_LEN": 23.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549574.529850, 6403669.305600 ], [ 1549580.125650, 6403672.576800 ], [ 1549595.345750, 6403678.918400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "S<>DRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59332", "SHAPE_LEN": 80.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549595.345750, 6403678.918400 ], [ 1549617.976400, 6403688.348000 ], [ 1549648.329450, 6403702.939200 ], [ 1549654.639250, 6403704.509600 ], [ 1549660.157350, 6403703.329600 ], [ 1549667.935400, 6403709.100000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 68.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549579.722100, 6403737.201600 ], [ 1549586.633550, 6403729.352000 ], [ 1549598.065250, 6403704.509600 ], [ 1549595.698200, 6403698.599200 ], [ 1549588.604750, 6403693.078400 ], [ 1549592.674200, 6403684.530400 ], [ 1549595.345750, 6403678.918400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "KVARNGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 185.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549495.671350, 6403901.486400 ], [ 1549498.716350, 6403900.056000 ], [ 1549509.356700, 6403886.655200 ], [ 1549520.005100, 6403865.753600 ], [ 1549533.012150, 6403839.740800 ], [ 1549539.838900, 6403825.187200 ], [ 1549547.990750, 6403807.808000 ], [ 1549557.459650, 6403786.516800 ], [ 1549566.128450, 6403765.624800 ], [ 1549574.805650, 6403746.692800 ], [ 1549579.722100, 6403737.201600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547462.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "44", "L_NREFADDR": "38", "R_REFADDR": "61", "R_NREFADDR": "53", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 14.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549501.325600, 6403908.552800 ], [ 1549497.550150, 6403911.790400 ], [ 1549488.599950, 6403913.910400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271508", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 9.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549495.671350, 6403901.486400 ], [ 1549501.325600, 6403908.552800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 29.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549745.501350, 6403736.423200 ], [ 1549760.487650, 6403761.674400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 130.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549760.487650, 6403761.674400 ], [ 1549773.107600, 6403768.775200 ], [ 1549794.000150, 6403771.925600 ], [ 1549806.223900, 6403771.925600 ], [ 1549847.621200, 6403768.775200 ], [ 1549874.427700, 6403767.595200 ], [ 1549888.409150, 6403767.056000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760574.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "26", "L_NREFADDR": "24", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 5.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549703.919950, 6403834.130400 ], [ 1549709.114300, 6403836.262400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760574.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271509", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "26", "L_NREFADDR": "24", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 48.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549709.114300, 6403836.262400 ], [ 1549754.276900, 6403854.802400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760590.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271510", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 37.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549635.170150, 6403808.780000 ], [ 1549670.099800, 6403821.660000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271510", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 45.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549670.099800, 6403821.660000 ], [ 1549661.138750, 6403843.681600 ], [ 1549652.074100, 6403839.340800 ], [ 1549647.702600, 6403850.082400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760590.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271511", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 4.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549670.099800, 6403821.660000 ], [ 1549674.526600, 6403823.292000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760590.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271511", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "30", "L_NREFADDR": "28", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 31.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549674.526600, 6403823.292000 ], [ 1549703.919950, 6403834.130400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271511", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 23.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549674.526600, 6403823.292000 ], [ 1549664.644350, 6403844.952000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271512", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 47.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549760.487650, 6403761.674400 ], [ 1549753.539450, 6403766.201600 ], [ 1549734.473200, 6403778.625600 ], [ 1549728.022350, 6403793.287200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271513", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 9.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549728.022350, 6403793.287200 ], [ 1549724.270700, 6403801.813600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271513", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 37.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549724.270700, 6403801.813600 ], [ 1549709.114300, 6403836.262400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 51.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549754.276900, 6403854.802400 ], [ 1549737.228050, 6403806.618400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BREDGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 13.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549737.228050, 6403806.618400 ], [ 1549724.270700, 6403801.813600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547503.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "25", "R_NREFADDR": "25", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 17.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549774.889100, 6403793.607200 ], [ 1549771.489900, 6403810.460000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271514", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 40.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549737.228050, 6403806.618400 ], [ 1549769.560700, 6403793.607200 ], [ 1549774.889100, 6403793.607200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547503.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271515", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "25", "R_NREFADDR": "25", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 14.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549776.080150, 6403777.100000 ], [ 1549775.301400, 6403791.567200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547503.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271515", "USERID": "LO-JKP", "ST_NAME": "BRUNNSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "25", "R_NREFADDR": "25", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 2.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549775.301400, 6403791.567200 ], [ 1549774.889100, 6403793.607200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 23.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549888.409150, 6403767.056000 ], [ 1549894.924400, 6403766.804800 ], [ 1549911.882600, 6403767.984800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "SLOTTHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 15.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549911.882600, 6403767.984800 ], [ 1549927.421200, 6403767.822400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760596.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "12", "L_NREFADDR": "6", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 68.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549818.068600, 6403799.888800 ], [ 1549884.091550, 6403818.700000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760596.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "12", "L_NREFADDR": "6", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 7.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549884.091550, 6403818.700000 ], [ 1549891.640000, 6403820.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271516", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 58.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549911.882600, 6403767.984800 ], [ 1549908.484450, 6403777.327200 ], [ 1549905.284050, 6403786.126400 ], [ 1549884.091550, 6403818.700000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760579.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271517", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 6.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549891.640000, 6403820.850400 ], [ 1549897.839200, 6403822.604000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271517", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 61.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549936.717550, 6403775.876000 ], [ 1549931.136800, 6403785.640000 ], [ 1549927.257050, 6403792.427200 ], [ 1549897.839200, 6403822.604000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271517", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 7.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549982.841250, 6403805.048000 ], [ 1549989.554600, 6403806.848000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271518", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 14.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549775.301400, 6403791.567200 ], [ 1549789.273750, 6403792.036800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808271518", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 116.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549789.273750, 6403792.036800 ], [ 1549820.418850, 6403786.116800 ], [ 1549862.599800, 6403784.936000 ], [ 1549905.284050, 6403786.126400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 16, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808271518", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 29.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549818.068600, 6403799.888800 ], [ 1549789.273750, 6403792.036800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547461.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280759", "USERID": "LO-JKP", "ST_NAME": "V<>RDTR<54>DSPLAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "7", "R_NREFADDR": "3", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 93.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549635.170150, 6403808.780000 ], [ 1549633.900000, 6403814.330400 ], [ 1549618.609900, 6403847.560000 ], [ 1549614.980050, 6403851.970400 ], [ 1549605.460050, 6403851.850400 ], [ 1549590.180100, 6403883.960800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547461.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280759", "USERID": "LO-JKP", "ST_NAME": "V<>RDTR<54>DSPLAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "7", "R_NREFADDR": "3", "SPEED_CAT": "6", "ZIPCODE": "59330", "SHAPE_LEN": 51.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549590.180100, 6403883.960800 ], [ 1549568.259950, 6403874.780000 ], [ 1549542.790100, 6403864.450400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280759", "USERID": "LO-JKP", "ST_NAME": "V<>RDTR<54>DSPLAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 99.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.330250, 6403958.170400 ], [ 1549562.119900, 6403948.800800 ], [ 1549569.040100, 6403929.018400 ], [ 1549576.364550, 6403927.638400 ], [ 1549583.482500, 6403925.468800 ], [ 1549590.600800, 6403917.357600 ], [ 1549593.767950, 6403909.047200 ], [ 1549596.737350, 6403902.126400 ], [ 1549585.857950, 6403894.605600 ], [ 1549590.180100, 6403883.960800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760476.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280801", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "12", "L_NREFADDR": "10", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 62.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549723.519950, 6403934.620000 ], [ 1549782.972000, 6403954.418400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760476.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280801", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "12", "L_NREFADDR": "10", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 14.200000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549782.972000, 6403954.418400 ], [ 1549796.459950, 6403958.910400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760555.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280803", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "33", "R_NREFADDR": "31", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 37.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549754.276900, 6403854.802400 ], [ 1549789.877500, 6403865.172000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760555.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280803", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "33", "R_NREFADDR": "31", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 8.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549789.877500, 6403865.172000 ], [ 1549798.179850, 6403867.590400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280803", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 44.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549763.127350, 6403899.236800 ], [ 1549769.602000, 6403885.904800 ], [ 1549772.571400, 6403880.964800 ], [ 1549789.877500, 6403865.172000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280805", "USERID": "LO-JKP", "ST_NAME": "GR<47>NA GR<47>ND", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 42.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549782.972000, 6403954.418400 ], [ 1549793.934000, 6403923.878400 ], [ 1549786.164350, 6403917.663200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280805", "USERID": "LO-JKP", "ST_NAME": "GR<47>NA GR<47>ND", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 29.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549786.164350, 6403917.663200 ], [ 1549763.127350, 6403899.236800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760512.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "TR<54>DG<44>RDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "3", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 16.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549763.127350, 6403899.236800 ], [ 1549754.840050, 6403906.050400 ], [ 1549749.691200, 6403908.812000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760512.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 2, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "TR<54>DG<44>RDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "3", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 24.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549749.691200, 6403908.812000 ], [ 1549728.459850, 6403920.200000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 49.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549786.477600, 6403917.288000 ], [ 1549786.164350, 6403917.663200 ], [ 1549781.471200, 6403923.288000 ], [ 1549778.501800, 6403931.988800 ], [ 1549753.386150, 6403924.078400 ], [ 1549757.605750, 6403919.492000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 7.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549757.605750, 6403919.492000 ], [ 1549762.549850, 6403914.117600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280806", "USERID": "LO-JKP", "ST_NAME": "G<>STA BERNARDS GATA", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 13.300000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549749.691200, 6403908.812000 ], [ 1549757.605750, 6403919.492000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760580.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280807", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "42", "L_NREFADDR": "40", "R_REFADDR": "37", "R_NREFADDR": "35", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 25.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549891.640000, 6403820.850400 ], [ 1549883.651250, 6403844.940000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760580.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280807", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "42", "L_NREFADDR": "40", "R_REFADDR": "37", "R_NREFADDR": "35", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 17.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549883.651250, 6403844.940000 ], [ 1549878.029900, 6403861.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280807", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 19.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549883.651250, 6403844.940000 ], [ 1549902.215600, 6403851.322400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760588.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "24", "L_NREFADDR": "14", "R_REFADDR": "23", "R_NREFADDR": "15", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 85.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549771.489900, 6403810.460000 ], [ 1549848.872800, 6403847.815200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760588.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "24", "L_NREFADDR": "14", "R_REFADDR": "23", "R_NREFADDR": "15", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 32.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.872800, 6403847.815200 ], [ 1549878.029900, 6403861.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 16.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.872800, 6403847.815200 ], [ 1549858.013750, 6403836.851200 ], [ 1549859.956250, 6403835.057600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 8.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549859.956250, 6403835.057600 ], [ 1549865.800200, 6403829.660800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280808", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 7.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549859.956250, 6403835.057600 ], [ 1549866.996150, 6403838.471200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760516.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 39.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549867.520100, 6403892.960000 ], [ 1549904.353050, 6403905.936000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760516.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 26.900000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549904.353050, 6403905.936000 ], [ 1549929.770050, 6403914.890400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760548.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "13", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 43.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549878.029900, 6403861.890400 ], [ 1549916.095200, 6403881.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760548.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "<22>TERV<52>NDSGATAN", "L_REFADDR": "12", "L_NREFADDR": "2", "R_REFADDR": "13", "R_NREFADDR": "13", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 25.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549916.095200, 6403881.850400 ], [ 1549938.960000, 6403893.840000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280809", "USERID": "LO-JKP", "ST_NAME": "B<>TSMANSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 26.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549904.353050, 6403905.936000 ], [ 1549912.608150, 6403888.475200 ], [ 1549916.095200, 6403881.850400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760517.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280811", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "34", "L_NREFADDR": "24", "R_REFADDR": "29", "R_NREFADDR": "19", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 23.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.114000, 6403950.774400 ], [ 1549839.739900, 6403972.810400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280811", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 30.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549848.114000, 6403950.774400 ], [ 1549869.289000, 6403957.700800 ], [ 1549866.484800, 6403965.702400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760517.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280812", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "34", "L_NREFADDR": "24", "R_REFADDR": "29", "R_NREFADDR": "19", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 36.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549867.520100, 6403892.960000 ], [ 1549856.605700, 6403927.937600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760517.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280812", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "34", "L_NREFADDR": "24", "R_REFADDR": "29", "R_NREFADDR": "19", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 24.400000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549856.605700, 6403927.937600 ], [ 1549855.749950, 6403930.680000 ], [ 1549848.114000, 6403950.774400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280812", "USERID": "LO-JKP", "ST_NAME": "STR<54>MSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 22.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549856.605700, 6403927.937600 ], [ 1549842.391850, 6403922.888000 ], [ 1549839.991550, 6403930.109600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760453.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280813", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 44.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549839.739900, 6403972.810400 ], [ 1549882.122450, 6403986.464000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760453.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280814", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 4.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549882.122450, 6403986.464000 ], [ 1549885.859750, 6403988.054400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760453.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808280814", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "5", "R_NREFADDR": "1", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 15.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549885.859750, 6403988.054400 ], [ 1549900.829950, 6403992.491200 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808280814", "USERID": "LO-JKP", "ST_NAME": "NYGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 30.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549885.859750, 6403988.054400 ], [ 1549892.433450, 6403972.732800 ], [ 1549900.598950, 6403962.172000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "S<>DRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 43.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549936.717550, 6403775.876000 ], [ 1549969.438000, 6403803.858400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "S<>DRA VARVSGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59331", "SHAPE_LEN": 13.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549969.438000, 6403803.858400 ], [ 1549982.841250, 6403805.048000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760579.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 37.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549897.839200, 6403822.604000 ], [ 1549934.253900, 6403832.906400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760579.000000, "RP_TYPE": 14, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "NORRA J<>RNV<4E>GSGATAN", "L_REFADDR": "4", "L_NREFADDR": "2", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "7", "ZIPCODE": "59330", "SHAPE_LEN": 29.500000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549934.253900, 6403832.906400 ], [ 1549957.490050, 6403839.480000 ], [ 1549960.410100, 6403843.980000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 19, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808281227", "USERID": "LO-JKP", "ST_NAME": "SLOTTSHOLMSLEDEN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59330", "SHAPE_LEN": 45.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549969.438000, 6403803.858400 ], [ 1549962.209450, 6403808.998400 ], [ 1549954.459400, 6403814.508800 ], [ 1549934.253900, 6403832.906400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547462.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290805", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "44", "L_NREFADDR": "38", "R_REFADDR": "61", "R_NREFADDR": "53", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 23.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549546.809850, 6403827.740000 ], [ 1549537.632500, 6403849.605600 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 80547462.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290805", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "44", "L_NREFADDR": "38", "R_REFADDR": "61", "R_NREFADDR": "53", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 70.100000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549537.632500, 6403849.605600 ], [ 1549533.320150, 6403859.880000 ], [ 1549518.660050, 6403889.780000 ], [ 1549507.790100, 6403903.010400 ], [ 1549501.325600, 6403908.552800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808290805", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 46.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549537.632500, 6403849.605600 ], [ 1549561.402400, 6403858.662400 ], [ 1549569.328850, 6403839.652000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760609.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290829", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "46", "L_NREFADDR": "46", "R_REFADDR": "65", "R_NREFADDR": "63", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 26.800000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549566.450100, 6403780.090400 ], [ 1549555.974950, 6403804.818400 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760609.000000, "RP_TYPE": 12, "RP_FUNC": 1, "DIRECTION": 0, "LOGKOD": "R", "CHANGED": "0808290829", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "46", "L_NREFADDR": "46", "R_REFADDR": "65", "R_NREFADDR": "63", "SPEED_CAT": "7", "ZIPCODE": "59333", "SHAPE_LEN": 24.700000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.974950, 6403804.818400 ], [ 1549546.809850, 6403827.740000 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 0.000000, "RP_TYPE": 18, "RP_FUNC": 0, "DIRECTION": 0, "LOGKOD": "D", "CHANGED": "0808290829", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "", "L_NREFADDR": "", "R_REFADDR": "", "R_NREFADDR": "", "SPEED_CAT": "", "ZIPCODE": "59333", "SHAPE_LEN": 37.600000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549555.974950, 6403804.818400 ], [ 1549577.560500, 6403813.319200 ], [ 1549572.603450, 6403826.820800 ] ] } }
,
{ "type": "Feature", "properties": { "LINK_ID": 30760474.000000, "RP_TYPE": 12, "RP_FUNC": 0, "DIRECTION": 1, "LOGKOD": "R", "CHANGED": "0808290830", "USERID": "LO-JKP", "ST_NAME": "<22>STRA KYRKOGATAN", "L_REFADDR": "36", "L_NREFADDR": "32", "R_REFADDR": "51", "R_NREFADDR": "49", "SPEED_CAT": "6", "ZIPCODE": "59333", "SHAPE_LEN": 58.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ 1549496.649950, 6403937.400000 ], [ 1549483.100050, 6403973.990400 ], [ 1549475.242550, 6403991.259200 ] ] } }
]
}

View File

@@ -2,10 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Debug Example</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
function consoleLog() {
OpenLayers.Console.log("This is the result of an OpenLayers.Console.log() call");
}
@@ -21,16 +22,23 @@
function consoleDirxml() {
OpenLayers.Console.dirxml(document.getElementsByTagName('body')[0]);
}
// -->
</script>
</head>
<body>
<h1>OpenLayers Debug Example</h1>
<h1 id="title">Debug Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate console calls to a Firebug console. Requires Firefox. Mostly for developers.
</p>
<div id="docs">
<p>To run OpenLayers in debug mode, include the following script
tag <b>before</b> the tag that loads OpenLayers:
<pre>
&lt;script src="../lib/Firebug/firebug.js"&gt;&lt;/script&gt;
</pre>
<pre> &lt;script src="../lib/Firebug/firebug.js"&gt;&lt;/script&gt;</pre>
The path to firebug.js must be relative to your
html file. With this script included calls to OpenLayers.Console
will be displayed in the Firebug console. For browsers without
@@ -60,5 +68,6 @@
<p>The Firebug website has a complete list of
<a href="http://www.getfirebug.com/console.html">console calls</a>.
Note that not all are supported with Firebug Lite.</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,37 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Document Drag Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
function init(){
map = new OpenLayers.Map( 'map', {controls: [
new OpenLayers.Control.Navigation({documentDrag: true}),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution()
]} );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Document Drag Example</h1>
<div id="tags"></div>
<div id="shortdesc">Keep on dragging even when the mouse cursor moves outside of the map</div>
<div id="map" class="smallmap"></div>
<div id="docs">
This example shows how to make a map draggable outside of the map itself.
</div>
</body>
</html>

View File

@@ -1,9 +1,22 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<div style="width:100%; height:100%" id="map"></div>
<head>
<title>OpenLayers Double Set Center Example</title>
<script src="../lib/OpenLayers.js"></script>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<h1 id="title">Double Set Center Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate the behavior of two calls to set the center after instatiating the layer object.
</p>
<div id="map" class="smallmap"></div>
<script defer="defer" type="text/javascript">
var map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
@@ -12,6 +25,8 @@
map.setCenter(new OpenLayers.LonLat(100,10));
map.setCenter(new OpenLayers.LonLat(1,1));
</script>
</body>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,12 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Drag Feature</title>
<title>Drag Feature Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 512px;
height: 350px;
border: 1px solid gray;
}
#controls {
width: 512px;
}
@@ -19,7 +17,6 @@
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, vectors, controls;
function init(){
map = new OpenLayers.Map('map');
@@ -60,13 +57,19 @@
}
}
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Drag Feature Example</h1>
<div id="map"></div>
<h1 id="title">Drag Feature Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates point, line and polygon creation and editing.
</p>
<div id="map" class="smallmap"></div>
<div id="controls">
<ul id="controlToggle">
<li>
@@ -93,5 +96,7 @@
</li>
</ul>
</div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,23 +1,25 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Draw Feature Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 512px;
height: 350px;
border: 1px solid gray;
}
#controlToggle li {
list-style: none;
}
p {
width: 512px;
}
/* avoid pink tiles */
.olImageLoadError {
background-color: transparent !important;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, drawControls;
OpenLayers.Util.onImageLoadErrorColor = "transparent";
function init(){
map = new OpenLayers.Map('map');
@@ -32,14 +34,13 @@
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition());
var options = {handlerOptions: {freehand: true}};
drawControls = {
point: new OpenLayers.Control.DrawFeature(pointLayer,
OpenLayers.Handler.Point),
line: new OpenLayers.Control.DrawFeature(lineLayer,
OpenLayers.Handler.Path, options),
OpenLayers.Handler.Path),
polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.Polygon, options)
OpenLayers.Handler.Polygon)
};
for(var key in drawControls) {
@@ -61,12 +62,19 @@
}
}
}
// -->
</script>
</head>
<body onload="init()">
<h1>OpenLayers Draw Feature Example</h1>
<div id="map"></div>
<h1 id="title">OpenLayers Draw Feature Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate on-screen digitizing tools for point, line, and polygon creation.
</p>
<div id="map" class="smallmap"></div>
<ul id="controlToggle">
<li>
<input type="radio" name="type" value="none" id="noneToggle"
@@ -86,11 +94,16 @@
<label for="polygonToggle">draw polygon</label>
</li>
</ul>
<p>Feature digitizing is in freehand mode by default. In freehand mode, the mouse is treated as a pen.
Drawing begins on mouse down, continues with every mouse move, and ends with mouse up.</p>
<p>To turn freehand mode off, hold down the shift key while digitizing. With freehand mode off, one
vertex is added with each click and double-clicks finish drawing. Freehand mode can be toggled on and off
at any time while drawing.</p>
<div id="docs">
<p>With the point drawing control active, click on the map to add a point. You can drag the point
before letting the mouse up if you want to adjust the position.</p>
<p>With the line drawing control active, click on the map to add the points that make up your line.
Double-click to finish drawing.</p>
<p>With the polygon drawing control active, click on the map to add the points that make up your
polygon. Double-click to finish drawing.</p>
<p>Hold down the shift key while drawing to activate freehand mode. While drawing lines or polygons
in freehand mode, hold the mouse down and a point will be added with every mouse movement.<p>
</div>
</body>
</html>

View File

@@ -0,0 +1,90 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Vector Behavior Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
var layer = new OpenLayers.Layer.Vector("POIs", {
strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1.1})],
protocol: new OpenLayers.Protocol.HTTP({
url: "textfile.txt",
format: new OpenLayers.Format.Text()
})
});
map.addLayers([wms, layer]);
map.zoomToMaxExtent();
// Interaction; not needed for initial display.
selectControl = new OpenLayers.Control.SelectFeature(layer);
map.addControl(selectControl);
selectControl.activate();
layer.events.on({
'featureselected': onFeatureSelect,
'featureunselected': onFeatureUnselect
});
}
// Needed only for interaction, not for the display.
function onPopupClose(evt) {
// 'this' is the popup.
selectControl.unselect(this.feature);
}
function onFeatureSelect(evt) {
feature = evt.feature;
popup = new OpenLayers.Popup.FramedCloud("featurePopup",
feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(100,100),
"<h2>"+feature.attributes.title + "</h2>" +
feature.attributes.description,
null, true, onPopupClose);
feature.popup = popup;
popup.feature = feature;
map.addPopup(popup);
}
function onFeatureUnselect(evt) {
feature = evt.feature;
if (feature.popup) {
popup.feature = null;
map.removePopup(feature.popup);
feature.popup.destroy();
feature.popup = null;
}
}
</script>
</head>
<body onload="init()">
<h1 id="title">Dynamic POIs via a Text Layer</h1>
<p id="shortdesc">
Loading dynamic data from a text file.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
The vector layer shown uses the BBOX strategy, the HTTP protocol,
and the Text format.
This setup appends "?bbox=west,south,east,north" to every
request. This allows you to configure the location as something
like 'textfile.php', and take the '?bbox=' parameter to select
data from a database or the like.
<br /><br />
There is nothing about this example that limits it to text files;
you can do the same thing with KML, GeoJSON, etc.
<br /><br />
This is an alternative to something like the <a href="http://wiki.openstreetmap.org/index.php/OpenLayers_Dynamic_POI">OpenStreetMap "Dynamic POI"</a> example. The Layer is a standard vector layer, and interaction can be
configured via the SelectFeature control, as you can see in the
latter half of the code, which allows you to open a popup when
a feature is selected.
</div>
</body>
</html>

View File

@@ -0,0 +1,52 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers: Custom Editing Toolbar</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
.olControlEditingToolbar {
float:left;
right: 0px;
height: 30px;
width: 150px;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map('map', {theme: null});
layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: "basic"}
);
map.addLayer(layer);
vlayer = new OpenLayers.Layer.Vector( "Editable" );
map.addLayer(vlayer);
var container = document.getElementById("panel");
var panel = new OpenLayers.Control.EditingToolbar(
vlayer, {div: container}
);
map.addControl(panel);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers EditingToolbar Outside Viewport</h1>
<p id="shortdesc">
Display an editing toolbar panel outside the map viewport.
</p>
<div id="map" class="smallmap"></div>
<div id="panel" class="olControlEditingToolbar"></div>
</body>
</html>

View File

@@ -1,40 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers Editing Toolbar Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script src="../lib/Firebug/debug.js"></script>
<script type="text/javascript">
<!--
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map( 'map', { controls: [] } );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
vlayer = new OpenLayers.Layer.Vector( "Editable" );
map.addLayer(vlayer);
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));
map = new OpenLayers.Map( 'map', {
controls: [
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.EditingToolbar(vlayer)
]
});
map.addLayers([layer, vlayer]);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
// -->
</script>
</head>
<body onload="init()">
<h1 id="title">Editing Toolbar Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate polygon, polyline and point creation and editing tools.
</p>
<div id="panel"></div>
<div id="map"></div>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

150
examples/events.html Normal file
View File

@@ -0,0 +1,150 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Event Handling</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#panel {
margin: 5px;
height: 30px;
width: 200px;
}
#panel div {
float: left;
margin-left: 5px;
width: 25px;
height: 25px;
border: 1px solid gray;
}
#output {
position: absolute;
left: 550px;
top: 40px;
width: 350px;
height: 400px;
}
div.blueItemInactive {
background-color: #aac;
}
div.blueItemActive {
background-color: #33c;
}
div.orangeItemInactive {
background-color: #ca6;
}
div.orangeItemActive {
background-color: #ea0;
}
div.greenItemInactive {
background-color: #aca;
}
div.greenItemActive {
background-color: #3c3;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, panel;
function init(){
// define custom map event listeners
function mapEvent(event) {
log(event.type);
}
function mapBaseLayerChanged(event) {
log(event.type + " " + event.layer.name);
}
function mapLayerChanged(event) {
log(event.type + " " + event.layer.name + " " + event.property);
}
map = new OpenLayers.Map('map', {
eventListeners: {
"moveend": mapEvent,
"zoomend": mapEvent,
"changelayer": mapLayerChanged,
"changebaselayer": mapBaseLayerChanged
}
});
panel = new OpenLayers.Control.Panel(
{div: document.getElementById("panel")}
);
// define custom event listeners
function toolActivate(event) {
log("activate " + event.object.displayClass);
}
function toolDeactivate(event) {
log("deactivate " + event.object.displayClass);
}
// Multiple objects can share listeners with the same scope
var toolListeners = {
"activate": toolActivate,
"deactivate": toolDeactivate
};
var blue = new OpenLayers.Control({
type: OpenLayers.Control.TYPE_TOGGLE,
eventListeners: toolListeners,
displayClass: "blue"
});
var orange = new OpenLayers.Control({
type: OpenLayers.Control.TYPE_TOGGLE,
eventListeners: toolListeners,
displayClass: "orange"
});
var green = new OpenLayers.Control({
type: OpenLayers.Control.TYPE_TOGGLE,
eventListeners: toolListeners,
displayClass: "green"
});
// add buttons to a panel
panel.addControls([blue, orange, green]);
map.addControl(panel);
var vmap = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
var landsat = new OpenLayers.Layer.WMS(
"NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"}
);
var nexrad = new OpenLayers.Layer.WMS(
"Nexrad",
"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi",
{layers:"nexrad-n0r-wmst", transparent: "TRUE", format: 'image/png'},
{isBaseLayer: false}
);
map.addLayers([vmap, landsat, nexrad]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
function log(msg) {
document.getElementById("output").innerHTML += msg + "\n";
}
</script>
</head>
<body onload="init()">
<h1 id="title">Event Handling</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrating various styles of event handling in OpenLayers.
</p>
<div id="map" class="smallmap"></div>
<div id="panel"></div>
<textarea id="output"></textarea>
<div id="docs"></div>
</body>
</html>

239
examples/example-list.html Normal file
View File

@@ -0,0 +1,239 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
<head>
<!-- This is the example list source: if you are trying to look at the
source of an example, YOU ARE IN THE WRONG PLACE. If you want to view
the source of just one example, you can typically choose
"This Frame -> View source" when right clicking on the exmaple. If not,
choose to open the example in a new window (via the context menu
click on the link), and view source from there. -->
<title>OpenLayers Examples</title>
<link rel="alternate" href="example-list.xml" type="application/atom+xml" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
html, body {
height: 100%;
overflow: hidden;
margin: 0;
padding: 0;
line-height: 1.25em;
}
.ex_container{
border-bottom: 1px solid #cccccc;
}
.ex_container a {
text-decoration: none;
padding: 5px 1em;
display: block;
}
.ex_container a:hover {
background-color: #eeeeee;
}
.ex_title{
display: inline;
font-weight: bold;
color: #333;
}
.ex_filename {
font-weight: normal;
font-size: 0.8em;
color: #ccc
}
.ex_description{
color: #222;
padding: 3px;
}
.ex_classes{
font-size: .7em;
color: grey;
display: none;
}
#toc {
width: 30%;
height: 100%;
}
#filter {
top: 0px;
height: 50px;
padding: 10px 1em 10px 1em;
}
#examples {
border-top: 1px solid #cccccc;
position: absolute;
width: 30%;
top: 70px;
bottom: 0px;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
#examples ul {
list-style: none;
margin: 0;
padding: 0;
}
#examples ul li {
display: block;
margin: 0;
padding: 0;
}
#exwin {
position: absolute;
top: 0;
left: 30%;
width: 70%;
height: 100%;
border: none;
border-left: 1px solid #cccccc;
margin: 0;
}
</style>
<script type="text/javascript" src="Jugl.js"></script>
<script type="text/javascript" src="example-list.js"></script>
<script type="text/javascript">
// import
var Jugl = window["http://jugl.tschaub.net/trunk/lib/Jugl.js"];
var template, target;
function listExamples(examples) {
target.innerHTML = "";
var node = template.process({
context: {examples: examples},
clone: true,
parent: target
});
document.getElementById("count").innerHTML = "(" + examples.length + ")";
}
var timerId;
function inputChange() {
if(timerId) {
window.clearTimeout(timerId);
}
var text = this.value;
timerId = window.setTimeout(function() {
filterList(text);
}, 500);
}
function filterList(text) {
var examples;
if(text.length < 2) {
examples = info.examples;
} else {
var words = text.split(/\W+/);
var scores = {};
for(var i=0; i<words.length; ++i) {
var word = words[i].toLowerCase()
var dict = info.index[word];
if(dict) {
for(exIndex in dict) {
var count = dict[exIndex];
if(scores[exIndex]) {
if(scores[exIndex][word]) {
scores[exIndex][word] += count;
} else {
scores[exIndex][word] = count;
}
} else {
scores[exIndex] = {};
scores[exIndex][word] = count;
}
}
}
}
examples = [];
for(var j in scores) {
var ex = info.examples[j];
ex.score = scores[j];
examples.push(ex);
}
// sort examples by first by number of words matched, then
// by word frequency
examples.sort(function(a, b) {
var cmp;
var aWords = 0, bWords = 0;
var aScore = 0, bScore = 0;
for(var i in a.score) {
aScore += a.score[i];
aWords += 1;
}
for(var j in b.score) {
bScore += b.score[j];
bWords += 1;
}
if(aWords == bWords) {
cmp = bScore - aScore;
} else {
cmp = bWords - aWords;
}
return cmp;
});
}
listExamples(examples);
}
function showAll() {
document.getElementById("keywords").value = "";
listExamples(info.examples);
}
function parseQuery() {
var params = {};
var list = window.location.search.substring(1).split("&");
for(var i=0; i<list.length; ++i) {
var pair = list[i].split("=");
if(pair.length == 2) {
params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
}
}
if(params["q"]) {
var input = document.getElementById("keywords");
input.value = params["q"];
inputChange.call(input);
}
}
window.onload = function() {
template = new Jugl.Template("template");
target = document.getElementById("examples");
listExamples(info.examples);
document.getElementById("exwin").src = "../examples/example.html";
document.getElementById("keywords").onkeyup = inputChange
parseQuery();
};
</script>
</head>
<body>
<div id="toc">
<div id="filter">
<p>
<label for="keywords">Filter by keywords</label><br />
<input type="text" id="keywords" />
<span id="count"></span><br />
<a href="javascript:void showAll();">show all</a>
</p>
</div>
<div id="examples"></div>
</div>
<iframe id="exwin" name="exwin" frameborder="0"></iframe>
<div style="display: none;">
<ul id="template">
<li class="ex_container" jugl:repeat="example examples">
<a jugl:attributes="href example.link" target="exwin">
<h5 class="ex_title">
<span jugl:replace="example.title">title</span><br />
<span class="ex_filename" jugl:content="'(' + example.example + ')'">filename</span>
</h5>
<div class="ex_description" jugl:content="example.shortdesc">
Short Description goes here
</div>
<p class="ex_classes" jugl:content="example.classes">
Related Classes go here
</p>
</a>
</li>
</ul>
</div>
</body>
</html>

View File

@@ -1,89 +1,55 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<title>OpenLayers Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
// making this a global variable so that it is accessible for
// debugging/inspecting in Firebug
var map = null;
<!--
function init(){
//set title name to include Browser Detection
// this is the only way to test the functionality
// of the getBrowserName() function
//
var header = OpenLayers.Util.getElement("browserHeader");
header.innerHTML = "(browser: ";
var browserCode = OpenLayers.Util.getBrowserName();
switch (browserCode) {
case "opera":
browserName = "Opera";
break;
case "msie":
browserName = "Internet Explorer";
break;
case "safari":
browserName = "Safari";
break;
case "firefox":
browserName = "FireFox";
break;
case "mozilla":
browserName = "Mozilla";
break;
default:
browserName = "detection error"
break;
}
header.innerHTML += browserName + ")";
map = new OpenLayers.Map('map');
var options = {
resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
};
var ol_wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'},
options);
var jpl_wms = new OpenLayers.Layer.WMS(
"NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"}
);
var options2 = {
resolutions: [0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
};
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"}, options2);
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
var dm_wms = new OpenLayers.Layer.WMS(
"Canadian Data",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
{
layers: "bathymetry,land_fn,park,drain_fn,drainage," +
"prov_bound,fedlimit,rail,road,popplace",
transparent: "true", format: "image/png"},
{minResolution: 0.17578125,
maxResolution: 0.703125});
transparent: "true",
format: "image/png"
},
{isBaseLayer: false, visibility: false}
);
map.addLayers([ol_wms, jpl_wms, dm_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.zoomToMaxExtent();
}
// -->
</script>
</head>
<body onload="init()">
<table><tr><td>
<h1>OpenLayers Example</h1>
</td><td>
<h3 id="browserHeader"></h3>
</td></tr></table>
<div id="map"></div>
<h1 id="title">OpenLayers Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a simple map with an overlay that includes layer switching controls.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

99
examples/filter.html Normal file
View File

@@ -0,0 +1,99 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style>
#in {
width: 90%;
height: 250px;
}
#out0, #out1 {
height: 100px;
width: 90%;
overflow: auto;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var filter_1_0 = new OpenLayers.Format.Filter({version: "1.0.0"});
var filter_1_1 = new OpenLayers.Format.Filter({version: "1.1.0"});
var xml = new OpenLayers.Format.XML();
var filter;
function write() {
var code = input.value;
try {
eval(code);
} catch(err) {
out0.value = err.message;
out1.value = "";
}
try {
out0.value = xml.write(filter_1_0.write(filter));
} catch(err) {
out0.value = err.message;
if(err.lineNumber != undefined) {
out0.value += " (line " + err.lineNumber + " " +
err.fileName + ")";
}
}
try {
out1.value = xml.write(filter_1_1.write(filter));
} catch(err) {
out1.value = err.message;
if(err.lineNumber != undefined) {
out1.value += " (line " + err.lineNumber + " " +
err.fileName + ")";
}
}
}
var input, out0;
window.onload = function() {
input = document.getElementById("in");
out0 = document.getElementById("out0");
out1 = document.getElementById("out1");
out0.value = "";
out1.value = "";
document.getElementById("write").onclick = write;
};
</script>
</head>
<body>
<h1 id="title">Filter Encoding</h1>
<p id="shortdesc">
Using the filter format write out filter objects.
</p>
<textarea id="in">
filter = new OpenLayers.Filter.Logical({
type: OpenLayers.Filter.Logical.AND,
filters: [
new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LIKE,
property: "person",
value: "me"
}),
new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.NOT_EQUAL_TO,
property: "mean",
value: "yes"
}),
new OpenLayers.Filter.Spatial({
type: OpenLayers.Filter.Spatial.BBOX,
value: new OpenLayers.Bounds(-180, -90, 180, 90),
projection: "EPSG:4326"
})
]
});
</textarea>
<button id="write">write</button><br />
Filter Encoding 1.0
<textarea id="out0"></textarea><br />
Filter Encoding 1.1
<textarea id="out1"></textarea><br />
<p id="docs">
</p>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init() {
map = new OpenLayers.Map('map',
{controls: [new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar()],
numZoomLevels: 10 });
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
map.addLayers([wms]);
map.events.register("moveend", null, displayZoom);
map.zoomToMaxExtent();
update(document.getElementById("fractional"));
}
function displayZoom() {
document.getElementById("zoom").innerHTML = map.zoom.toFixed(4);
}
function update(input) {
map.fractionalZoom = input.checked;
map.zoomTo(Math.round(map.zoom));
}
</script>
</head>
<body onload="init()">
<h1 id="title">Fractional Zoom Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Shows the use of a map with fractional (or non-discrete) zoom levels.
</p>
<div id="map" class="smallmap"></div>
<input type="checkbox" name="fractional"
id="fractional" checked="checked" onclick="update(this)" />
<label for="fractional">Fractional Zoom</label>
(zoom: <span id="zoom"></span>)
<br /><br />
<div id="docs">
<p>
Setting the map.fractionalZoom property to true allows zooming to
an arbitrary level (between the min and max resolutions). This
can be demonstrated by shift-dragging a box to zoom to an arbitrary
extent.
</p>
</div>
</body>
</html>

View File

@@ -1,10 +1,22 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Full Screen Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
body {
margin: 0;
}
#map {
width: 100%;
height: 100%;
border: 1px solid black;
}
#text {
position: absolute;
bottom: 1em;
left: 1em;
width: 512px;
}
</style>
<script src="../lib/OpenLayers.js"></script>
@@ -14,11 +26,11 @@
map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com:80/wms/vmap0?", {layers: 'basic'});
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"});
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
@@ -35,5 +47,20 @@
</head>
<body onload="init()">
<div id="map"></div>
<div id="text">
<h1 id="title">Full Screen Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a map that fill the entire browser window.
</p>
<div id="docs">
This example uses CSS to define the dimensions of the map element in order to fill the screen.
When the user resizes the window, the map size changes correspondingly. No scroll bars!
</div>
</div>
</body>
</html>

62
examples/geojson.html Normal file
View File

@@ -0,0 +1,62 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map( 'map' );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
var featurecollection = {
"type": "FeatureCollection",
"features": [
{"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "LineString",
"coordinates":
[[11.0878902207, 45.1602390564],
[15.01953125, 48.1298828125]]
},
{
"type": "Polygon",
"coordinates":
[[[11.0878902207, 45.1602390564],
[14.931640625, 40.9228515625],
[0.8251953125, 41.0986328125],
[7.63671875, 48.96484375],
[11.0878902207, 45.1602390564]]]
},
{
"type":"Point",
"coordinates":[15.87646484375, 44.1748046875]
}
]
},
"type": "Feature",
"properties": {}}
]
};
var geojson_format = new OpenLayers.Format.GeoJSON();
var vector_layer = new OpenLayers.Layer.Vector();
map.addLayer(vector_layer);
vector_layer.addFeatures(geojson_format.read(featurecollection));
}
</script>
</head>
<body onload="init()">
<h1 id="title">GeoJSON Example</h1>
<div id="map" class="smallmap"></div>
</body>
</html>

100
examples/georss-flickr.html Normal file
View File

@@ -0,0 +1,100 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
.olPopupContent {
font-size: smaller;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer, markerLayer, style, popup;
function init(){
map = new OpenLayers.Map('map', {maxResolution:'auto'});
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(0, 0), 0);
map.addControl(new OpenLayers.Control.LayerSwitcher());
// create a property style that reads the externalGraphic url from
// the thumbail attribute of the rss item
style = new OpenLayers.Style({externalGraphic: "${thumbnail}"});
// create a rule with a point symbolizer that will make the thumbnail
// larger if the title of the rss item contains "powder"
var rule = new OpenLayers.Rule({
symbolizer: {pointRadius: 30},
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LIKE,
property: "title",
value: "*powder*"
})
});
rule.filter.value2regex("*");
// If the above rule does not apply, use a smaller pointRadius.
var elseRule = new OpenLayers.Rule({
elseFilter: true,
symbolizer: {pointRadius: 20}
});
style.addRules([rule, elseRule]);
// Create a GML layer with GeoRSS format and a style map.
markerLayer = new OpenLayers.Layer.GML("Some images from Flickr",
"xml/georss-flickr.xml", {
format: OpenLayers.Format.GeoRSS,
formatOptions: {
// adds the thumbnail attribute to the feature
createFeatureFromItem: function(item) {
var feature = OpenLayers.Format.GeoRSS.prototype
.createFeatureFromItem.apply(this, arguments);
feature.attributes.thumbnail =
this.getElementsByTagNameNS(
item, "*", "thumbnail")[0].getAttribute("url");
return feature;
}
},
// Giving the style map keys for "default" and "select"
// rendering intent, to make the image larger when selected
styleMap: new OpenLayers.StyleMap({
"default": style,
"select": new OpenLayers.Style({pointRadius: 35})
})
});
map.addLayer(markerLayer);
// control that will show a popup when clicking on a thumbnail
var popupControl = new OpenLayers.Control.SelectFeature(markerLayer, {
onSelect: function(feature) {
var pos = feature.geometry;
if (popup) {
map.removePopup(popup);
}
popup = new OpenLayers.Popup("popup",
new OpenLayers.LonLat(pos.x, pos.y),
new OpenLayers.Size(254,320),
"<h3>" + feature.attributes.title + "</h3>" +
feature.attributes.description,
true);
map.addPopup(popup);
}
});
map.addControl(popupControl);
popupControl.activate();
}
</script>
</head>
<body onload="init()">
<h1 id="title">GeoRSS from Flickr in OpenLayers</h1>
<p>The displayed GeoRSS feed has a <tt>&lt;media:thumbnail/&gt;</tt> property for each item. An extended <tt>createFeatureFromItem()</tt> function is used to add this attribute to the attributes hash of each feature read in by <tt>OpenLayers.Format.GeoRSS</tt>. The example is configured with a style to render each item with its thumbnail image. Also, to show how rules work, we defined a rule that if the title of an rss item contains "powder", it will be rendered larger than the others.</p>
<div id="map" class="smallmap"></div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 400px;
border: 1px solid black;
}
</style>
<title>OpenLayers GeoRSS Marker Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
@@ -28,7 +24,16 @@
</script>
</head>
<body onload="init()">
<h1>GeoRSS in OpenLayers</h1>
<div id="map"></div>
<h1 id="title">GeoRSS Marker Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate loading a GeoRSS feed using the GeoRSS parser.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,46 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 45%;
height: 350px;
border: 1px solid gray;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, drawControl, g;
function serialize(feature) {
feature.attributes = {};
var name = prompt("Title for feature?");
feature.attributes['title'] = name;
var data = g.write(feature.layer.features);
OpenLayers.Util.getElement("gml").value = data;
}
function init(){
g = new OpenLayers.Format.GeoRSS();
map = new OpenLayers.Map('map');
var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
pointLayer.onFeatureInsert = serialize;
map.addLayers([wmsLayer, pointLayer]);
map.addControl(new OpenLayers.Control.EditingToolbar(pointLayer));
map.addControl(new OpenLayers.Control.MousePosition());
map.setCenter(new OpenLayers.LonLat(0, 0), 3);
}
</script>
</head>
<body onload="init()">
<h1>OpenLayers Draw Point Example</h1>
<div style="float:right;width:50%">
<textarea id="gml" style="width:100%" rows="30"></textarea>
</div>
<div id="map"></div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 400px;
border: 1px solid black;
}
</style>
<title>OpenLayers GeoRSS Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
@@ -31,12 +27,31 @@
</script>
</head>
<body onload="init()">
<h1>GeoRSS in OpenLayers</h1>
<p style="font-size:.9em;">This demo uses the OpenLayers GeoRSS parser, which supports GeoRSS Simple and W3C GeoRSS. Only points are currently supported. <a href="http://trac.openlayers.org/wiki/HowToDownload">Get the code!</a></p>
<h1 id="title">GeoRSS Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Display a couple of locally cached georss feeds on an a basemap.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This demo uses the OpenLayers GeoRSS parser, which supports GeoRSS Simple and W3C GeoRSS. Only points are
currently supported. The OpenLayers GeoRSS parser will automatically connect an information bubble to the map
markers, similar to Google maps. In addition, the parser can use custom PNG icons for markers. A sample GeoRSS
file (georss.xml) is included.
<form onsubmit="return false;">
GeoRSS URL: <input type="text" id="url" size="50" /><input type="submit" onclick="addUrl(); return false;" value="Load Feed" onsubmit="addUrl(); return false;" />
GeoRSS URL: <input type="text" id="url" size="50" value="georss.xml" />
<input type="submit" onclick="addUrl(); return false;" value="Load Feed" onsubmit="addUrl(); return false;" />
</form>
<p>The above input box allows the input of a URL to a GeoRSS feed. This feed can be local to the HTML page -- for example, entering 'georss.xml' will work by default, because there is a local file in the directory called georss.xml -- or, with a properly set up ProxyHost variable (as is used here), it will be able to load any HTTP URL which contains GeoRSS and display it. Anything else will simply have no effect.</p>
<div id="map"></div>
<p>The above input box allows the input of a URL to a GeoRSS feed. This feed can be local to the HTML page --
for example, entering 'georss.xml' will work by default, because there is a local file in the directory called
georss.xml -- or, with a properly set up ProxyHost variable (as is used here), it will be able to load any
HTTP URL which contains GeoRSS and display it. Anything else will simply have no effect.</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,83 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<title>WFS: GetFeature Example (GeoServer)</title>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer, select, hover, control;
function init(){
OpenLayers.ProxyHost= "proxy.cgi?url=";
map = new OpenLayers.Map('map', {
controls: [
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.Permalink(),
new OpenLayers.Control.Navigation()
]
});
layer = new OpenLayers.Layer.WMS(
"States WMS/WFS",
"http://demo.opengeo.org/geoserver/ows",
{layers: 'topp:states', format: 'image/gif'}
);
select = new OpenLayers.Layer.Vector("Selection", {styleMap:
new OpenLayers.Style(OpenLayers.Feature.Vector.style["select"])
});
hover = new OpenLayers.Layer.Vector("Hover");
map.addLayers([layer, hover, select]);
control = new OpenLayers.Control.GetFeature({
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer),
box: true,
hover: true,
multipleKey: "shiftKey",
toggleKey: "ctrlKey"
});
control.events.register("featureselected", this, function(e) {
select.addFeatures([e.feature]);
});
control.events.register("featureunselected", this, function(e) {
select.removeFeatures([e.feature]);
});
control.events.register("hoverfeature", this, function(e) {
hover.addFeatures([e.feature]);
});
control.events.register("outfeature", this, function(e) {
hover.removeFeatures([e.feature]);
});
map.addControl(control);
control.activate();
map.setCenter(new OpenLayers.Bounds(-140.444336,25.115234,-44.438477,50.580078).getCenterLonLat(), 3);
}
</script>
</head>
<body onload="init()">
<h1 id="title">WFS GetFeature Example (GeoServer)</h1>
<div id="tags">
</div>
<p id="shortdesc">
Shows how to use the GetFeature control to select features from a WMS layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Click or drag a box to select features, use the Shift key to add
features to the selection, use the Ctrl key to toggle a feature's
selected status. Note that this control also has a hover option, which
is enabled in this example. This gives you a visual feedback by loading
the feature underneath the mouse pointer from the WFS, but causes a lot
of GetFeature requests to be issued.
</p>
</div>
</body>
</html>
</div>

View File

@@ -0,0 +1,217 @@
<html>
<head>
<title>OpenLayers WMS Feature Info Example (GeoServer)</title>
<script src="../lib/OpenLayers.js"></script>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
ul, li {
padding-left: 0px;
margin-left: 0px;
list-style: none;
}
#info {
position: absolute;
top: 6em;
left: 550px;
}
#info table td {
border:1px solid #ddd;
border-collapse: collapse;
margin: 0;
padding: 0;
font-size: 90%;
padding: .2em .1em;
background:#fff;
}
#info table th{
padding:.2em .2em;
text-transform: uppercase;
font-weight: bold;
background: #eee;
}
tr.odd td {
background:#eee;
}
table.featureInfo caption {
text-align:left;
font-size:100%;
font-weight:bold;
text-transform:uppercase;
padding:.2em .2em;
}
</style>
<script defer="defer" type="text/javascript">
OpenLayers.ProxyHost = "proxy.cgi?url=";
var map, infocontrols, water, highlightlayer;
function load() {
map = new OpenLayers.Map('map', {
maxExtent: new OpenLayers.Bounds(143.834,-43.648,148.479,-39.573)
});
var political = new OpenLayers.Layer.WMS("State Boundaries",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_state_boundaries', transparent: true, format: 'image/gif'},
{isBaseLayer: true}
);
var roads = new OpenLayers.Layer.WMS("Roads",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_roads', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
var cities = new OpenLayers.Layer.WMS("Cities",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_cities', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
water = new OpenLayers.Layer.WMS("Bodies of Water",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_water_bodies', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
highlightLayer = new OpenLayers.Layer.Vector("Highlighted Features", {
displayInLayerSwitcher: false,
isBaseLayer: false
}
);
infoControls = {
click: new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://demo.opengeo.org/geoserver/wms',
title: 'Identify features by clicking',
layers: [water],
queryVisible: true
}),
hover: new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://demo.opengeo.org/geoserver/wms',
title: 'Identify features by clicking',
layers: [water],
hover: true,
// defining a custom format options here
formatOptions: {
typeName: 'water_bodies',
featureNS: 'http://www.openplans.org/topp'
},
queryVisible: true
})
}
map.addLayers([political, roads, cities, water, highlightLayer]);
for (var i in infoControls) {
infoControls[i].events.register("getfeatureinfo", this, showInfo);
map.addControl(infoControls[i]);
}
map.addControl(new OpenLayers.Control.LayerSwitcher());
infoControls.click.activate();
map.zoomToMaxExtent();
}
function showInfo(evt) {
if (evt.features && evt.features.length) {
highlightLayer.destroyFeatures();
highlightLayer.addFeatures(evt.features);
highlightLayer.redraw();
} else {
$('responseText').innerHTML = evt.text;
}
}
function toggleControl(element) {
for (var key in infoControls) {
var control = infoControls[key];
if (element.value == key && element.checked) {
control.activate();
} else {
control.deactivate();
}
}
}
function toggleFormat(element) {
for (var key in infoControls) {
var control = infoControls[key];
control.infoFormat = element.value;
}
}
function toggleLayers(element) {
for (var key in infoControls) {
var control = infoControls[key];
if (element.value == 'Specified') {
control.layers = [water];
} else {
control.layers = null;
}
}
}
// function toggle(key
</script>
</head>
<body onload="load()">
<h1 id="title">Feature Info Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates the WMSGetFeatureInfo control for fetching information about a position from WMS (via GetFeatureInfo request).
</p>
<div id="info">
<h1>Tasmania</h1>
<p>Click on the map to get feature info.</p>
<div id="responseText">
</div>
</div>
<div id="map" class="smallmap"></div>
<div id="docs">
</div>
<ul id="control">
<li>
<input type="radio" name="controlType" value="click" id="click"
onclick="toggleControl(this);" checked="checked" />
<label for="click">Click</label>
</li>
<li>
<input type="radio" name="controlType" value="hover" id="hover"
onclick="toggleControl(this);" />
<label for="hover">Hover</label>
</li>
</ul>
<ul id="format">
<li>
<input type="radio" name="formatType" value="text/html" id="html"
onclick="toggleFormat(this);" checked="checked" />
<label for="html">Show HTML Description</label>
</li>
<li>
<input type="radio" name="formatType" value="application/vnd.ogc.gml" id="highlight"
onclick="toggleFormat(this);" />
<label for="highlight">Highlight Feature on Map</label>
</li>
</ul>
<ul id="layers">
<li>
<input type="radio" name="layerSelection" value="Specified" id="Specified"
onclick="toggleLayers(this);" checked="checked" />
<label for="Specified">Get water body info</label>
</li>
<li>
<input type="radio" name="layerSelection" value="Auto" id="Auto"
onclick="toggleLayers(this);" />
<label for="Auto">Get info for visible layers</label>
</li>
</ul>
</body>
</html>

View File

@@ -0,0 +1,90 @@
<html>
<head>
<title>GetFeatureInfo Popup</title>
<script src="../lib/OpenLayers.js"></script>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script>
OpenLayers.ProxyHost = "proxy.cgi?url=";
var map, info;
function load() {
map = new OpenLayers.Map({
div: "map",
maxExtent: new OpenLayers.Bounds(143.834,-43.648,148.479,-39.573)
});
var political = new OpenLayers.Layer.WMS("State Boundaries",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_state_boundaries', transparent: true, format: 'image/gif'},
{isBaseLayer: true}
);
var roads = new OpenLayers.Layer.WMS("Roads",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_roads', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
var cities = new OpenLayers.Layer.WMS("Cities",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_cities', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
var water = new OpenLayers.Layer.WMS("Bodies of Water",
"http://demo.opengeo.org/geoserver/wms",
{'layers': 'topp:tasmania_water_bodies', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
var highlight = new OpenLayers.Layer.Vector("Highlighted Features", {
displayInLayerSwitcher: false,
isBaseLayer: false
});
map.addLayers([political, roads, cities, water, highlight]);
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://demo.opengeo.org/geoserver/wms',
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
map.addControl(info);
info.activate();
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="load()">
<h1 id="title">Feature Info in Popup</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates the WMSGetFeatureInfo control for fetching information
about a position from WMS (via GetFeatureInfo request). Results
are displayed in a popup.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,20 +1,32 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<style type="text/css">
ul, li { padding-left: 0px; margin-left: 0px; }
</style>
<title>World Map Query</title>
</head>
<body>
<a id='permalink' href="">Permalink</a><br />
<head>
<title>OpenLayers Feature Info Example</title>
<script src="../lib/OpenLayers.js"></script>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
ul, li { padding-left: 0px; margin-left: 0px; }
</style>
</head>
<body>
<h1 id="title">Feature Info Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates sending a GetFeatureInfo query to an OWS. Returns information about a map feature in the side DIV.
</p>
<a id="permalink" href="">Permalink</a><br />
<div style="float:right;width:28%">
<h1 style="font-size:1.3em;">CIA Factbook</h1>
<p style='font-size:.8em;'>Click a country to see statistics about the country below.</p>
<p style="font-size:.8em;">Click a country to see statistics about the country below.</p>
<div id="nodeList">
</div>
</div>
<div id="map" style="width:70%; height:90%"></div>
<div id="map" class="smallmap"></div>
<script defer="defer" type="text/javascript">
OpenLayers.ProxyHost = "/dev/examples/proxy.cgi?url=";
var map = new OpenLayers.Map('map', {'maxResolution':'auto'});
@@ -43,5 +55,8 @@ ul, li { padding-left: 0px; margin-left: 0px; }
OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;
}
</script>
</body>
<div id="docs">
</div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers GML Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
@@ -25,6 +21,16 @@
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">GML Layer Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Loads locally stored GML vector data on a basemap. Includes GML example file.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,83 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 350px;
border: 1px solid gray;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, drawControl, g;
function serialize(feature) {
feature.attributes = {};
var name = prompt("Name for feature?");
feature.attributes['name'] = name;
var data = g.write(feature.layer.features);
OpenLayers.Util.getElement("gml").value = data;
}
function init(){
g = new OpenLayers.Format.GML();
map = new OpenLayers.Map('map');
var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
pointLayer.onFeatureInsert = serialize;
map.addLayers([wmsLayer, pointLayer]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition());
drawControls = {
point: new OpenLayers.Control.DrawFeature(pointLayer,
OpenLayers.Handler.Point),
line: new OpenLayers.Control.DrawFeature(pointLayer,
OpenLayers.Handler.Path)
};
for(var key in drawControls) {
map.addControl(drawControls[key]);
}
map.setCenter(new OpenLayers.LonLat(0, 0), 3);
}
function toggleControl(element) {
for(key in drawControls) {
var control = drawControls[key];
if(element.value == key && element.checked) {
control.activate();
} else {
control.deactivate();
}
}
}
</script>
</head>
<body onload="init()">
<h1>OpenLayers Draw Point Example</h1>
<div style="float:right">
<ul id="controlToggle">
<li>
<input type="radio" name="type" value="none" id="noneToggle"
onclick="toggleControl(this);" checked="checked" />
<label for="noneToggle">navigate</label>
</li>
<li>
<input type="radio" name="type" value="point" id="pointToggle" onclick="toggleControl(this);" />
<label for="pointToggle">draw point</label>
</li>
<li>
<input type="radio" name="type" value="line" id="lineToggle" onclick="toggleControl(this);" />
<label for="lineToggle">draw line</label>
</li>
</ul>
<p>Check the box to draw points. Uncheck to navigate normally.</p>
<textarea id="gml" cols="80" rows="30"></textarea>
</div>
<div id="map"></div>
</body>
</html>

View File

@@ -0,0 +1,57 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Google with Overlay Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map');
var satellite = new OpenLayers.Layer.Google(
"Google Satellite" , {type: G_SATELLITE_MAP}
);
var wms = new OpenLayers.Layer.WMS(
"World Map",
"http://world.freemap.in/cgi-bin/mapserv",
{
map: '/www/freemap.in/world/map/factbooktrans.map',
transparent: 'TRUE',
layers: 'factbook'
},
{'reproject': true}
);
map.addLayers([satellite, wms]);
map.setCenter(new OpenLayers.LonLat(10.205188,48.857593), 5);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
</script>
</head>
<body onload="init()">
<h1 id="title">Google with Overlay Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a Google basemap used with boundary overlay layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
An overlay in a Geographic projection can be stretched to somewhat
line up with Google tiles (in a Mercator projection). Results get
worse farther from the equator. Use the "reproject" option on a
layer to get this behavior. Use the sphericalMercator option on
a Google layer to get proper overlays (with other layers in
Spherical Mercator).
</div>
</body>
</html>

View File

@@ -1,75 +1,63 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 100%;
height: 512px;
border: 1px solid black;
background-color: red;
}
</style>
<title>OpenLayers Google Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="../theme/default/google.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<!-- Localhost key -->
<!-- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTS6gjckBmeABOGXIUiOiZObZESPg'></script>-->
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 17;
var map, layer;
var map;
function init(){
map = new OpenLayers.Map( 'map' ,
{ controls: [new OpenLayers.Control.MouseDefaults()] , 'numZoomLevels':20});
function init() {
map = new OpenLayers.Map('map');
map.addControl(new OpenLayers.Control.LayerSwitcher());
var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, 'maxZoomLevel':18} );
var gphy = new OpenLayers.Layer.Google(
"Google Physical",
{type: G_PHYSICAL_MAP}
);
var gmap = new OpenLayers.Layer.Google(
"Google Streets", // the default
{numZoomLevels: 20}
);
var ghyb = new OpenLayers.Layer.Google(
"Google Hybrid",
{type: G_HYBRID_MAP, numZoomLevels: 20}
);
var gsat = new OpenLayers.Layer.Google(
"Google Satellite",
{type: G_SATELLITE_MAP, numZoomLevels: 22}
);
map.addLayers([satellite]);
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic', 'transparent':true},
{isBaseLayer: false} );
layer.setVisibility(false);
var twms = new OpenLayers.Layer.WMS( "World Map",
"http://world.freemap.in/cgi-bin/mapserv?",
{map: '/www/freemap.in/world/map/factbooktrans.map', transparent:'true',
layers: 'factbook', 'format':'png'}, {'reproject': true} );
map.addLayer(twms);
markers = new OpenLayers.Layer.Markers("markers");
map.addLayer(markers);
map.setCenter(new OpenLayers.LonLat(10.205188,48.857593), 5);
map.addControl( new OpenLayers.Control.LayerSwitcher() );
map.addControl( new OpenLayers.Control.PanZoomBar() );
map.addLayers([gphy, gmap, ghyb, gsat]);
map.setCenter(new OpenLayers.LonLat(10.2, 48.9), 5);
}
function add() {
var url = 'http://boston.openguides.org/markers/AQUA.png';
var sz = new OpenLayers.Size(10, 17);
var calculateOffset = function(size) {
return new OpenLayers.Pixel(-(size.w/2), -size.h);
};
var icon = new OpenLayers.Icon(url, sz, null, calculateOffset);
var barcelona = new OpenLayers.LonLat(2.13134765625,
41.37062534198901);
marker = new OpenLayers.Marker(barcelona, icon);
markers.addMarker(marker);
}
function remove() {
markers.removeMarker(marker);
}
</script>
</head>
<body onload="init()">
<h1>OpenLayers With Google Layer Example</h1>
<div id="map"></div>
<div style="background-color:green" onclick="add()"> click to add a marker to the map</div>
<div style="background-color:red" onclick="remove()"> click to remove the marker from the map</div>
<h1 id="title">Google Layer Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate use of the various types of Google layers.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
For best performance, you must be using a version of the Google Maps
API which is v2.93 or higher. In order to use this version of the API,
it is best to simply set your application to use the string "v=2" in
the request, rather than tying your application to an explicit version.</p>
<p>
In order to position the Google attribution div in the default location,
you must include the extra theme/default/google.css stylesheet.</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,89 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Graphic Names</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
// user custom graphicname
OpenLayers.Renderer.symbol.lightning = [0,0, 4,2, 6,0, 10,5, 6,3, 4,5, 0,0];
OpenLayers.Renderer.symbol.rectangle = [0,0, 4,0, 4,10, 0,10, 0,0];
var map;
function init() {
map = new OpenLayers.Map('map');
// list of well-known graphic names
var graphics = ["star", "cross", "x", "square", "triangle", "circle", "lightning", "rectangle"];
// Create one feature for each well known graphic.
// Give features a type attribute with the graphic name.
var num = graphics.length;
var slot = map.maxExtent.getWidth() / num;
var features = Array(num);
for(var i=0; i<graphics.length; ++i) {
lon = map.maxExtent.left + (i * slot) + (slot / 2);
features[i] = new OpenLayers.Feature.Vector(
new OpenLayers.Geometry.Point(
map.maxExtent.left + (i * slot) + (slot / 2), 0
), {
type: graphics[i]
}
);
}
// Create a style map for painting the features.
// The graphicName property of the symbolizer is evaluated using
// the type attribute on each feature (set above).
var styles = new OpenLayers.StyleMap({
"default": {
graphicName: "${type}",
pointRadius: 10,
strokeColor: "fuchsia",
strokeWidth: 2,
fillColor: "lime",
fillOpacity: 0.6
},
"select": {
pointRadius: 20,
fillOpacity: 1,
rotation: 45
}
});
// Create a vector layer and give it your style map.
var layer = new OpenLayers.Layer.Vector(
"Graphics", {styleMap: styles, isBaseLayer: true}
);
layer.addFeatures(features);
map.addLayer(layer);
// Create a select feature control and add it to the map.
var select = new OpenLayers.Control.SelectFeature(layer, {hover: true});
map.addControl(select);
select.activate();
map.setCenter(new OpenLayers.LonLat(0, 0), 0);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Named Graphics Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Shows how to use well-known graphic names.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
OpenLayers supports well-known names for a few graphics. You can use
the names "star", "cross", "x", "square", "triangle", and "circle" as
the value for the graphicName property of a symbolizer.
</div>
</body>
</html>

102
examples/graticule.html Normal file
View File

@@ -0,0 +1,102 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Graticule Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 600px;
height: 300px;
border: 1px solid black;
float:left;
}
#map2 {
width: 400px;
height: 400px;
border: 1px solid black;
float:left;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script src="http://proj4js.org/lib/proj4js-compressed.js"></script>
<script type="text/javascript">
Proj4js.defs["EPSG:42304"]="+title=Atlas of Canada, LCC +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs";
var map1, map2;
function init(){
initLonLat();
initProjected();
}
function initLonLat(){
map1 = new OpenLayers.Map('map', {
controls: [
new OpenLayers.Control.Graticule({
numPoints: 2,
labelled: true,
visible: true
}),
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.Navigation()
]
});
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}, {wrapDateLine: true} );
map1.addLayers([ol_wms]);
if (!map1.getCenter()) map1.zoomToMaxExtent();
};
function initProjected(){
var extent = new OpenLayers.Bounds(-2200000,-712631,3072800,3840000);
var mapOptions = {
controls: [
new OpenLayers.Control.Graticule({
labelled: true,
targetSize: 200
}),
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.Navigation()
],
//scales: tempScales,
maxExtent: extent,
maxResolution: 50000,
units: 'm',
projection: 'EPSG:42304'
};
map2 = new OpenLayers.Map('map2', mapOptions);
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap", {
layers: "bathymetry",
format: "image/png"
},{
singleTile: true
});
map2.addLayers([dm_wms]);
if (!map2.getCenter()) map2.zoomToExtent(extent);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Graticule Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Adds a Graticule control to the map to display a grid of
latitude and longitude.
</p>
<div id="map" class="smallmap"></div>
<div id="map2" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,13 +1,11 @@
<html>
<head>
<title>OpenLayers Gutter Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 500px;
height: 300px;
border: 1px solid gray;
}
p.caption {
width: 500px;
width: 512px;
}
</style>
<script src="../lib/OpenLayers.js"></script>
@@ -33,8 +31,17 @@
</script>
</head>
<body>
<h1>OpenLayers Gutter Example</h1>
<div id="map"></div>
<h1 id="title">Gutter Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates map tiling artifacts, and OpenLayer's facility for correcting this distortion.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p class="caption">
When you render tiles with certain types of symbols, there are artifacts
at tile edges that make symbology not look continuous. In the center of
@@ -42,6 +49,6 @@
vertically by a tile. Open the layer switcher and change to the layer
with a 15 pixel gutter to see how the symbology looks nicer.
</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,80 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SelectFeature Control for Select and Highlight</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#controlToggle li {
list-style: none;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, controls;
OpenLayers.Feature.Vector.style['default']['strokeWidth'] = '2';
function init(){
map = new OpenLayers.Map('map');
var vectors = new OpenLayers.Layer.Vector("vector", {isBaseLayer: true});
map.addLayers([vectors]);
var feature = new OpenLayers.Feature.Vector(
OpenLayers.Geometry.fromWKT(
"POLYGON((28.828125 0.3515625, 132.1875 -13.0078125, -1.40625 -59.4140625, 28.828125 0.3515625))"
)
);
vectors.addFeatures([feature]);
var feature2 = new OpenLayers.Feature.Vector(
OpenLayers.Geometry.fromWKT(
"POLYGON((-120.828125 -50.3515625, -80.1875 -80.0078125, -40.40625 -20.4140625, -120.828125 -50.3515625))"
)
);
vectors.addFeatures([feature2]);
var report = function(e) {
OpenLayers.Console.log(e.type, e.feature.id);
};
var highlightCtrl = new OpenLayers.Control.SelectFeature(vectors, {
hover: true,
highlightOnly: true,
renderIntent: "temporary",
eventListeners: {
beforefeaturehighlighted: report,
featurehighlighted: report,
featureunhighlighted: report
}
});
var selectCtrl = new OpenLayers.Control.SelectFeature(vectors,
{clickout: true}
);
map.addControl(highlightCtrl);
map.addControl(selectCtrl);
highlightCtrl.activate();
selectCtrl.activate();
map.addControl(new OpenLayers.Control.EditingToolbar(vectors));
map.setCenter(new OpenLayers.LonLat(0, 0), 1);
}
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers Select and Highlight Feature Example</h1>
<p id="shortdesc">
Select features on click, highlight features on hover.
</p>
<div id="map" class="smallmap"></div>
<p>Select features by clicking on them. Just highlight features by hovering over
them.</p>
</body>
</html>

211
examples/hover-handler.html Normal file
View File

@@ -0,0 +1,211 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Hover Handler Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 340px;
height: 170px;
border: 1px solid gray;
}
#west {
width: 350px;
}
#east {
position: absolute;
left: 370px;
top: 3em;
}
table td {
text-align: center;
margin: 0;
border: 1px solid gray;
}
textarea.output {
text-align: left;
font-size: 0.9em;
width: 250px;
height: 65px;
overflow: auto;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
OpenLayers.Control.Hover = OpenLayers.Class(OpenLayers.Control, {
defaultHandlerOptions: {
'delay': 500,
'pixelTolerance': null,
'stopMove': false
},
initialize: function(options) {
this.handlerOptions = OpenLayers.Util.extend(
{}, this.defaultHandlerOptions
);
OpenLayers.Control.prototype.initialize.apply(
this, arguments
);
this.handler = new OpenLayers.Handler.Hover(
this,
{'pause': this.onPause, 'move': this.onMove},
this.handlerOptions
);
},
onPause: function(evt) {
var output = document.getElementById(this.key + 'Output');
var msg = 'pause ' + evt.xy;
output.value = output.value + msg + "\r\n";
},
onMove: function(evt) {
// if this control sent an Ajax request (e.g. GetFeatureInfo) when
// the mouse pauses the onMove callback could be used to abort that
// request.
}
});
var map, controls;
function init(){
map = new OpenLayers.Map('map');
var layer = new OpenLayers.Layer.WMS(
'OpenLayers WMS',
'http://labs.metacarta.com/wms/vmap0',
{layers: 'basic'}
);
map.addLayers([layer]);
controls = {
'long': new OpenLayers.Control.Hover({
handlerOptions: {
'delay': 2000
}
}),
'short': new OpenLayers.Control.Hover({
handlerOptions: {
'delay': 100
}
}),
'tolerant': new OpenLayers.Control.Hover({
handlerOptions: {
'delay': 1000,
'pixelTolerance': 6
}
}),
'untolerant': new OpenLayers.Control.Hover({
handlerOptions: {
'delay': 1000,
'pixelTolerance': 1
}
}),
'stoppropag': new OpenLayers.Control.Hover({
handlerOptions: {
'stopMove': true
}
})
};
var props = document.getElementById("props");
var control;
for(var key in controls) {
control = controls[key];
// only to route output here
control.key = key;
map.addControl(control);
}
map.addControl(new OpenLayers.Control.MousePosition());
map.zoomToMaxExtent();
}
function toggle(key) {
var control = controls[key];
if(control.active) {
control.deactivate();
} else {
control.activate();
}
var status = document.getElementById(key + "Status");
status.innerHTML = control.active ? "on" : "off";
var output = document.getElementById(key + "Output");
output.value = "";
}
</script>
</head>
<body onload="init()">
<h1 id="title">Hover Handler Example</h1>
<div id="west">
<div id="tags">
</div>
<p id="shortdesc">
This example shows the use of the hover handler.
</p>
<div id="map" class="smallmap"></div>
<p>
The hover handler is to be used to emulate mouseovers on
objects on the map that aren't DOM elements. For example
one can use the hover hander to send WMS/GetFeatureInfo
requests as the user moves the mouse over the map.
</p>
<p>
The "delay" option specifies the number of milliseconds
before the event is considered a hover. Default is 500
milliseconds.
</p>
<p>
The "pixelTolerance" option specifies the maximum number
of pixels between mousemoves for an event to be
considered a hover. Default is null, which means no
pixel tolerance.
</p>
<p>
The "stopMove" option specifies whether other mousemove
listeners registered before the hover handler listener must
be notified on mousemoves or not. Default is false (meaning
that the other mousemove listeners will be notified on
mousemove).
</p>
</div>
<div id="east">
<table>
<caption>Controls with hover handlers (toggle on/off to clear output)</caption>
<tbody>
<tr>
<td>long delay (2 sec)</td>
<td><button id="longStatus" onclick="toggle('long')">off</button></td>
<td><textarea class="output" id="longOutput"></textarea></td>
</tr>
<tr>
<td>short delay (100 msec)</td>
<td><button id="shortStatus" onclick="toggle('short')">off</button></td>
<td><textarea class="output" id="shortOutput"></textarea></td>
</tr>
<tr>
<td>tolerant (6 pixels)</td>
<td><button id="tolerantStatus" onclick="toggle('tolerant')">off</button></td>
<td><textarea class="output" id="tolerantOutput"></textarea></td>
</tr>
<tr>
<td>untolerant (1 pixel)</td>
<td><button id="untolerantStatus" onclick="toggle('untolerant')">off</button></td>
<td><textarea class="output" id="untolerantOutput"></textarea></td>
</tr>
<tr>
<td>stop propagation</td>
<td><button id="stoppropagStatus" onclick="toggle('stoppropag')">off</button></td>
<td><textarea class="output" id="stoppropagOutput"></textarea></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

View File

@@ -1,15 +1,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Image Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
p {
p.caption {
width: 512px;
}
#map {
width: 512px;
height: 256px;
border: 1px solid gray;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
@@ -23,11 +22,21 @@
'http://earthtrends.wri.org/images/maps/4_m_citylights_lg.gif',
new OpenLayers.Bounds(-180, -88.759, 180, 88.759),
new OpenLayers.Size(580, 288),
options);
options
);
graphic.events.on({
loadstart: function() {
OpenLayers.Console.log("loadstart");
},
loadend: function() {
OpenLayers.Console.log("loadend");
}
});
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"}, options);
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"}, options);
map.addLayers([graphic, jpl_wms]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
@@ -36,9 +45,18 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers Image Layer Example</h1>
<div id="map"></div>
<p>
<h1 id="title">Image Layer Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a single non-tiled image as a selectable base layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p class="caption">
The "City Lights" layer above is created from a single web accessible
image. If you construct it without any resolution related options,
the layer will be given a single resolution based on the extent/size.
@@ -46,5 +64,6 @@
intended to be used in an overview map - where another layer type
might not make a good overview.
</p>
</div>
</body>
</html>

183
examples/intersects.html Normal file
View File

@@ -0,0 +1,183 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Geometry Intersections</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
html, body {
margin: 0;
padding: 1em;
font: 0.9em Verdana, Arial, sans serif;
}
input, select, textarea {
font: 0.9em Verdana, Arial, sans-serif;
}
h2 {
margin-top: 0.75em;
font-size: 1.6em;
}
#leftcol {
position: absolute;
top: 0;
left: 1em;
padding: 0;
width: 455px;
}
#map {
width: 450px;
height: 225px;
border: 1px solid #ccc;
}
#input {
width: 450px;
}
#text {
font-size: 0.85em;
margin: 1em 0 1em 0;
width: 100%;
height: 10em;
}
#info {
position: relative;
padding: 2em 0;
margin-left: 470px;
}
#features {
font-size: 0.8em;
width: 100%;
height: 200px;
}
#intersections {
font-size: 0.8em;
width: 100%;
height: 200px;
}
p {
margin: 0;
padding: 0.75em 0 0.75em 0;
}
</style>
<script src="../lib/Firebug/firebug.js"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, vectors, geojson;
function init(){
map = new OpenLayers.Map('map');
vectors = new OpenLayers.Layer.Vector(
"Vector Layer",
{isBaseLayer: true}
);
map.addLayers([vectors]);
map.addControl(new OpenLayers.Control.MousePosition());
var panel = new OpenLayers.Control.EditingToolbar(vectors);
map.addControl(panel);
geojson = new OpenLayers.Format.GeoJSON();
map.setCenter(new OpenLayers.LonLat(0, 0), 1);
}
function serialize() {
var str = geojson.write(vectors.features, true);
document.getElementById('features').value = str;
}
function deserialize() {
var element = document.getElementById('text');
var features = geojson.read(element.value);
var bounds;
if(features) {
if(features.constructor != Array) {
features = [features];
}
for(var i=0; i<features.length; ++i) {
if (!bounds) {
bounds = features[i].geometry.getBounds();
} else {
bounds.extend(features[i].geometry.getBounds());
}
}
vectors.addFeatures(features);
map.zoomToExtent(bounds);
var plural = (features.length > 1) ? 's' : '';
element.value = features.length + ' feature' + plural + ' added'
} else {
element.value = 'Bad input';
}
}
function intersect() {
var features = vectors.features;
var feat1, feat2, intersects12, intersects21;
var parts = [];
// reset attributes
for(var i=0; i<features.length; ++i) {
features[i].attributes.intersectsWith = [];
}
for(var i=0; i<features.length-1; ++i) {
feat1 = features[i];
for(var j=i+1; j<features.length; ++j) {
feat2 = features[j];
intersects12 = feat1.geometry.intersects(feat2.geometry);
if(intersects12) {
feat1.attributes.intersectsWith.push("f" + j);
parts.push("f" + i + " intersects f" + j + "\n");
}
intersects21 = feat2.geometry.intersects(feat1.geometry);
if(intersects21) {
feat2.attributes.intersectsWith.push("f" + i);
parts.push("f" + j + " intersects f" + i + "\n");
}
if(intersects12 != intersects21) {
parts.push("trouble with " + i + " and " + j + "\n");
}
}
}
if(parts.length > 0) {
document.getElementById("intersections").value = parts.join("");
} else {
document.getElementById("intersections").value = "no intersections";
}
}
// preload images
(function() {
var roots = ["draw_point", "draw_line", "draw_polygon", "pan"];
var onImages = [];
var offImages = [];
for(var i=0; i<roots.length; ++i) {
onImages[i] = new Image();
onImages[i].src = "../theme/default/img/" + roots[i] + "_on.png";
offImages[i] = new Image();
offImages[i].src = "../theme/default/img/" + roots[i] + "_on.png";
}
})();
</script>
</head>
<body onload="init()">
<div id="leftcol">
<h1 id="title">OpenLayers Geometry Intersection Example</h1>
<p id="shortdesc">
Use of geometry.intersects method for testing geometry intersections.
</p>
<div id="map" class="smallmap"></div>
<div id="input">
<textarea id="text"></textarea>
<input type="button" value="add feature" onclick="deserialize();" />
<span id="selected"></span>
</div>
</div>
<div id="info">
Features
<input type="button" value="refresh" onclick="serialize();" /><br />
<textarea id="features"></textarea>
Intersections
<input type="button" value="intersect all" onclick="intersect();" /><br />
<textarea id="intersections"></textarea>
</div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers KaMap Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
@@ -28,7 +24,16 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="map"></div>
<h1 id="title">KaMap Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a tiled kamap layer as the base map, which can be pre-cached for higher performance.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -1,30 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map('map');
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.addLayer(new OpenLayers.Layer.GML("KML", "kml/lines.kml", {format: OpenLayers.Format.KML}));
map.zoomToExtent(new OpenLayers.Bounds(-112.292744,36.068477,-112.22408,36.109246));
}
</script>
</head>
<body onload="init()">
<div id="map"></div>
</body>
</html>

View File

@@ -1,12 +1,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
@@ -19,12 +14,30 @@
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.addLayer(new OpenLayers.Layer.GML("KML", "kml/mc-search.kml", {format: OpenLayers.Format.KML}));
map.zoomToMaxExtent();
map.addLayer(new OpenLayers.Layer.GML("KML", "kml/lines.kml",
{
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true,
maxDepth: 2
}
}));
map.zoomToExtent(new OpenLayers.Bounds(-112.306698,36.017792,-112.03204,36.18087));
}
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">KML Layer Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates loading and displaying a KML file on top of a basemap.
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>

View File

@@ -262,6 +262,14 @@
-112.2626894973474,36.10149062823369,630 </coordinates>
</LineString>
</Placemark>
<Placemark>
<name>Blue Icon</name>
<description>Just another blue icon.</description>
<styleUrl>kml/styles.kml#blueIcons</styleUrl>
<Point>
<coordinates>-112.292238941097,36.09520916122063,630</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>

21
examples/kml/styles.kml Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file contains styles referenced by other KML files in this project.
http://kml-samples.googlecode.com/svn/trunk/kml/Style/styles.kml
-->
<kml xmlns="http://earth.google.com/kml/2.1">
<Document id="globalStyles">
<Style id="blueIcons">
<IconStyle>
<color>ffff0000</color>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/sunny.png</href>
</Icon>
</IconStyle>
</Style>
</Document>
</kml>

2273
examples/kml/sundials.kml Normal file

File diff suppressed because it is too large Load Diff

42
examples/late-render.html Normal file
View File

@@ -0,0 +1,42 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Late Rendering Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
function init(){
map = new OpenLayers.Map();
layer = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
map.addLayer(layer);
map.render("container_id");
map.zoomTo(2);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Late Rendering</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrates how a map can be rendered to an empty container after
construction by calling the render method.
</p>
<div id="container_id" class="smallmap"></div>
<div id="docs">
In cases where you need to create a map first and render it to some
container later, call the map constructor without a "div" argument.
In this case, you can provide the options object as the first argument.
To render your map to some container after construction, call the map's
render method with the container id.
</div>
</body>
</html>

View File

@@ -1,14 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Layer Opacity Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
body {
font-family: sans-serif;
}
#map {
width: 512px;
height: 350px;
border: 1px solid lightgray;
}
p {
width: 512px;
}
@@ -47,29 +45,35 @@
}
function init(){
var options = {
projection: "EPSG:26912",
units: 'm',
maxExtent: new OpenLayers.Bounds(455402, 4967657, 473295, 4984095),
maxResolution: 'auto',
maxZoomLevel: 8
maxExtent: new OpenLayers.Bounds(-110.994, 45.885, -110.950, 45.929),
maxResolution: "auto"
};
map = new OpenLayers.Map('map', options);
var drg = new OpenLayers.Layer.WMS("Topo Maps",
"http://terraservice.net/ogcmap.ashx",
{layers: "DRG"});
shade = new OpenLayers.Layer.WMS("Shaded Relief",
"http://ims.cr.usgs.gov/servlet19/com.esri.wms.Esrimap/USGS_EDC_Elev_NED_3",
"http://gisdata.usgs.gov/wmsconnector/com.esri.wms.Esrimap?ServiceName=USGS_EDC_Elev_NED_3",
{layers: "HR-NED.IMAGE", reaspect: "false", transparent: 'true'},
{isBaseLayer: false, opacity: 0.3});
map.addLayers([drg, shade]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(464348.5,4975876), 1);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<h2>OpenLayers Layer Opacity Example</h2>
<div id="map"></div>
<h1 id="title">Layer Opacity Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a change in the opacity for an overlay layer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>
Note that if you also have the setOpacity method defined on the Layer
class, you can tweak the layer opacity after it has been added to the map.
@@ -80,5 +84,6 @@
<a title="increase opacity" href="javascript: changeOpacity(0.1);">&gt;&gt;</a>
</p>
<p class="note">IE users: Wait until the shade layer has finished loading to try this.</p>
</div>
</body>
</html>

View File

@@ -1,18 +1,15 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Layer Load Monitoring Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
position: absolute;
top: 5px;
left: 5px;
width: 450px;
height: 475px;
border: 1px solid black;
#controls {
float: left;
text-align: right;
}
#eventsLogID {
position: absolute;
top: 5px;
left: 460px;
text-align: left;
width: 350px;
height: 475px;
overflow: auto;
@@ -108,14 +105,25 @@
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">Layer Load Monitoring Example</h1>
<div id="tags"></div>
<p id="shortdesc">
Demonstrate a method for monitoring tile loading performance.
</p>
<div id="map" style="float:left;"></div>
<div id="controls">
<div id="eventsLogID">
<b>Events Log:</b>
</div>
<input type="button" value="Clear" onclick="clearLog()"/>
</div>
<div style="position:absolute; top: 500px; width: 700px">
<input type="button" value="Clear" style="float:right" onclick="clearLog()"/>
<div id="docs">
</div>
</body>
</html>

View File

@@ -1,17 +1,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<title>OpenLayers Layer Switcher Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
map = new OpenLayers.Map('map', { controls: [] });
map.addControl(new OpenLayers.Control.Navigation());
map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')}));
@@ -20,8 +17,8 @@
{layers: 'basic'}, {'displayInLayerSwitcher':false} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"}, {'isBaseLayer': false});
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
{layers: "landsat7"}, {'isBaseLayer': false});
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
@@ -38,9 +35,17 @@
</script>
</head>
<body onload="init()">
<h1>OpenLayers Example</h1>
<div id="layerswitcher" style="float:right; width: 20em;"></div>
<div id="map"></div>
<h1 id="title">Layer Switcher Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrates the use of the LayerSwitcher outside of the OpenLayers window.
</p>
<div id="layerswitcher" class="olControlLayerSwitcher"></div>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This demonstrates use of the LayerSwitcher outside the map div. It also shows use
of the displayInLayerSwitcher option on the Layer to cause it to not display in the

View File

@@ -1,30 +1,32 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>OpenLayers Basic Single WMS Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
var lat = 40;
var zoom = 5;
var map, layer;
function init(){
map = new OpenLayers.Map( 'map' );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">Basic Single WMS Example</h1>
<div id="tags"></div>
<div id="shortdesc">Show a Simple Map</div>
<div id="map" class="smallmap"></div>
<div id="docs">
This example shows a very simple layout with minimal controls. This example uses a single WMS base layer.
</div>
</body>
</html>

150
examples/mapguide.html Normal file
View File

@@ -0,0 +1,150 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers MapGuide Layer Example</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 400px;
height: 400px;
border: 1px solid black;
float:left;
}
#map2 {
width: 400px;
height: 400px;
border: 1px solid black;
float:left;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
var url = "http://data.mapguide.com/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&";
//you can use this URL when MapGuide OS is installed locally
//var url = "/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&";
//Adjust the scale assumptions for MapGuide layers
//Tiled layers MUST use a DPI value of 96, untiled layers can use a
//different DPI value which will be passed to the server as a parameter.
//Tiled and untiled layers must adjust the OL INCHES_PER_UNIT values
//for any degree-based projections.
var metersPerUnit = 111319.4908; //value returned from mapguide
var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * metersPerUnit;
OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit;
OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;
OpenLayers.DOTS_PER_INCH = 96;
//tiled version
function initTiled(){
var extent = new OpenLayers.Bounds(-87.764987,43.691398,-87.695522,43.797520);
var tempScales = [100000,51794.74679,26826.95795,13894.95494,7196.85673,3727.59372,1930.69773,1000];
var mapOptions = {
maxExtent: extent,
scales: tempScales
};
map = new OpenLayers.Map( 'map', mapOptions );
var params = {
mapdefinition: 'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition',
basemaplayergroupname: "Base Layer Group"
}
var options = {
singleTile: false
}
var layer = new OpenLayers.Layer.MapGuide( "MapGuide OS tiled layer", url, params, options );
map.addLayer(layer);
/**
The following example shows how to access an MG tile cache directly
through HTTP bypassing the MG mapagent. This depends on having a
pre-populated tile cache
*/
/*
options.useHttpTile = true;
var cacheUrl = "http://localhost:8008/sheboygan";
var httpLayer = new OpenLayers.Layer.MapGuide( "MapGuide HTTP cache tiled layer", cacheUrl, params, options );
map.addLayer(httpLayer);
*/
map.zoomToMaxExtent();
}
//un-tiled version
function initUntiled() {
var extent = new OpenLayers.Bounds(-87.865114442365922,43.665065564837931,-87.595394059497067,43.823852564430069);
var mapOptions = {
maxExtent: extent,
maxResolution: 'auto'
};
map = new OpenLayers.Map( 'map2', mapOptions );
var options = {
isBaseLayer: true,
transitionEffect: "resize",
buffer: 1,
useOverlay: false,
useAsyncOverlay: false,
singleTile: true
};
var params = {
mapdefinition: 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition'
};
/*
The MapGuide layer can also be created using mapname and session as follows provided there
is some wrapper code to obtain a valid session id and mapname */
/*
var params = {
mapname: 'Sheboygan49ad9e20e7171',
session: '7405c17a-0000-1000-8000-0017a4e6ff5d_en_7F0000010AFC0AFB0AFA'
};
*/
var layer = new OpenLayers.Layer.MapGuide( "MapGuide OS untiled baselayer", url, params, options );
map.addLayer(layer);
//this is how to set up the layer for transparent overlays. Requires a valid session ID
//and mapName stored in that session.
/*
var options = {
isBaseLayer: false,
useOverlay: true,
useAsyncOverlay: false,
buffer: 1,
singleTile: true
};
var params = {
mapName: 'Sheboygan49aeaa04487af',
session: '208fd92c-0000-1000-8000-0017a4e6ff5d_en_7F0000010AFC0AFB0AFA',
selectioncolor: '0xFF000000',
behavior: 7
};
layer = new OpenLayers.Layer.MapGuide( "MapGuide OS Overlay layer", url, params, options );
map.addLayer(layer);
*/
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="initUntiled(); initTiled()">
<h1 id="title">MapGuide Layer Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Demonstrates how to create MapGuide tiled and untiled layers.
</p>
<p>If prompted for a password, username is Anonymous and an empty password</p>
<div id="map" class="smallmap"></div>
<div id="map2">
</div>
</body>
</html>

View File

@@ -1,12 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<title>MapServer Layer</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var lon = 5;
@@ -28,6 +24,12 @@
</script>
</head>
<body onload="init()">
<div id="map"></div>
<h1 id="title">MapServer Layer</h1>
<div id="tags"></div>
<div id="shortdesc">Shows MapServer Layer</div>
<div id="map" class="smallmap"></div>
<div id="docs">
This is an example of using a MapServer Layer with a gutter parameter. The gutter parameter is used to try to limit the edge effects between tiles.
</div>
</body>
</html>

View File

@@ -1,5 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MapServer Single Tile Mode</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
#map {
width: 100%;
@@ -21,6 +24,12 @@
</script>
</head>
<body>
<div id="map"></div>
<h1 id="title">MapServer Single Tile Mode</h1>
<div id="tags"></div>
<div id="shortdesc">Shows single tile MapServer Layer</div>
<div id="map" class="smallmap"></div>
<div id="docs">
This shows an example of using a MapServer Layer in single tile mode. Single tile mode can be useful when pulling data from dynamic sources.
</div>
</body>
</html>

142
examples/marker-shadow.html Normal file
View File

@@ -0,0 +1,142 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers: Vector Graphics with Shadows</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
.smallmap {
width: 300px;
}
.docs {
padding: 0px 5px;
}
td {
vertical-align: top;
}
</style>
<script src="../lib/OpenLayers.js" type="text/javascript"></script>
<script type="text/javascript">
var SHADOW_Z_INDEX = 10;
var MARKER_Z_INDEX = 11;
var DIAMETER = 200;
var NUMBER_OF_FEATURES = 15;
var map, layer;
function init() {
map = new OpenLayers.Map("map");
layer = new OpenLayers.Layer.Vector(
"Marker Drop Shadows",
{
styleMap: new OpenLayers.StyleMap({
// Set the external graphic and background graphic images.
externalGraphic: "../img/marker-gold.png",
backgroundGraphic: "./marker_shadow.png",
// Makes sure the background graphic is placed correctly relative
// to the external graphic.
backgroundXOffset: 0,
backgroundYOffset: -7,
// Set the z-indexes of both graphics to make sure the background
// graphics stay in the background (shadows on top of markers looks
// odd; let's not do that).
graphicZIndex: MARKER_Z_INDEX,
backgroundGraphicZIndex: SHADOW_Z_INDEX,
pointRadius: 10
}),
isBaseLayer: true,
rendererOptions: {yOrdering: true}
}
);
map.addLayers([layer]);
// Add a drag feature control to move features around.
var dragFeature = new OpenLayers.Control.DragFeature(layer);
map.addControl(dragFeature);
dragFeature.activate();
map.zoomToMaxExtent();
drawFeatures();
}
function drawFeatures() {
layer.removeFeatures(layer.features);
// Create features at random around the center.
var center = map.getViewPortPxFromLonLat(map.getCenter());
// Add the ordering features. These are the gold ones that all have the same z-index
// and succomb to y-ordering.
var features = [];
for (var index = 0; index < NUMBER_OF_FEATURES; index++) {
// Calculate a random x/y. Subtract half the diameter to make some
// features negative.
var x = (parseInt(Math.random() * DIAMETER)) - (DIAMETER / 2);
var y = (parseInt(Math.random() * DIAMETER)) - (DIAMETER / 2);
var pixel = new OpenLayers.Pixel(center.x + x, center.y + y);
var lonLat = map.getLonLatFromViewPortPx(pixel);
features.push(
new OpenLayers.Feature.Vector(
new OpenLayers.Geometry.Point(lonLat.lon, lonLat.lat)
)
);
}
layer.addFeatures(features);
}
</script>
</head>
<body onload="init()">
<h1 id="title">Marker Shadows using Background Graphics/Z-Indexes</h1>
<div id="tags">
</div>
<p id="shortdesc">
This example shows off marker shadows using background graphics and z-indexes. Move the features around to show the shadows' interaction.
</p>
<br>
<table>
<tr>
<td>
<div id="map" class="smallmap"></div>
</td>
<td>
<div class="docs">
The features in this map were generated at random. Each of these features have a <i>backgroundGraphic</i> property set in the style map to add a shadow image. Note that the background graphics are not duplicated features with a different style.
<br><br>
The shadows were set to have a different z-index than the markers themselves, using the <i>backgroundGraphicZIndex</i> property. This makes sure all shadows stay behind the markers, keeping a clean look. The shadows were also placed nicely relative to the external graphic using the <i>backgroundXOffset</i> and <i>backgroundYOffset</i> property.
<br><br>
Y-ordering on the layer is enabled. See the <a href="./ordering.html">ordering example</a>.
</div>
</td>
</tr>
<tr>
<td>
<button onclick="drawFeatures()">Redraw Features</button>
</td>
</tr>
</table>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More