Commit Graph

1581 Commits

Author SHA1 Message Date
ahocevar
292b851a74 Adding ModifyFeature interaction
This is a first draft. The way geometry changes are handled for
now is a bit clumsy. Both updating the feature cache RTree and
making the layer aware of feature and geometry changes could be
handled in a smarter way if these changes would be made through
the layer instead of directly on the geometry or feature.
2013-11-13 00:44:36 +01:00
Tim Schaub
5a898884ec Use geometry type enum for configuring draw interaction
This allows us to cast single-part geometries to multi-part types before adding features to the target layer.  This doesn't yet allow for drawing multi-part geometries with multiple parts.  That can be handled separately.
2013-11-12 11:51:41 -07:00
Tim Schaub
8194ba9f0a Remove setMode method from interaction in favor of add/removeInteraction
This makes the example a bit more awkward, but eventually adding and removing interactions will be the job of an editing control.
2013-11-12 10:30:37 -07:00
Tim Schaub
dbcfdbc76f Updated style for draw example 2013-11-12 10:30:37 -07:00
Tim Schaub
2f07433593 Allow user to set drawing mode 2013-11-12 10:30:37 -07:00
Tim Schaub
048dec1644 Updated sketch style 2013-11-12 10:30:36 -07:00
Tim Schaub
d821f227ba Add point at head of drawing 2013-11-12 10:29:29 -07:00
Tim Schaub
b3487ad30e Draw interaction 2013-11-12 10:29:21 -07:00
Bart van den Eijnden
9842140495 get rid of unused markup in example 2013-11-11 15:56:15 +01:00
Bart van den Eijnden
3f7c40b1ad add an example of how to use a WKT string in a vector source 2013-11-11 12:45:06 +01:00
Frederic Junod
10f7bf1bcb Fix precision input change in mouse-position example 2013-11-01 16:35:26 +01:00
Éric Lemoine
8402eee0c3 Map "click" event renamed to "singleclick"
As discussed with @tschaub in #1195.
2013-10-31 09:37:16 +01:00
Éric Lemoine
16b817b830 Overlay stopEvent and insertFirst default to true 2013-10-30 09:49:38 +01:00
Bruno Binet
4e602fdb8d Set z-index: auto so that popup is not above controls 2013-10-30 09:28:26 +01:00
Bruno Binet
59eaa89a54 Fix overlay z-index issue in overlay example 2013-10-30 09:28:26 +01:00
Bruno Binet
86cfdf4da7 Fix overlay z-index issue in popup example 2013-10-30 09:28:26 +01:00
Frederic Junod
9de78f1168 Fix bottom left and top right computation in moveend example 2013-10-29 11:03:10 +01:00
Tim Schaub
fdda18b57b Use permanent Bing Maps API key
This key is registered for "Not-for-Profit" use by OpenLayers as a project of OSGeo - a 501(c)(4) organization.

See the complete [Terms of Use](http://www.microsoft.com/maps/product/terms.html) under the Eduction or Non-Profit Organization Use section.
2013-10-21 11:21:11 -06:00
Éric Lemoine
4008ab7f6c Vector examples display feature info on click again 2013-10-18 09:59:47 +02:00
Éric Lemoine
fe3440a83d Use jQuery to listen to map mousemove in examples
This commit also removes the click listener, which was used for touch devices. The click listener will be added back when the lib will correctly handle clicks on touch devices.
2013-10-18 09:59:47 +02:00
Bruno Binet
623b2fab14 Adjust event propagation for popup example 2013-10-11 12:17:08 +02:00
Bruno Binet
2d0fdfdd87 Adjust event propagation for overlay example 2013-10-11 12:17:08 +02:00
Tom Payne
7be90877fe Merge pull request #1105 from twpayne/example-fixes
Example type-related fixes
2013-10-09 04:56:45 -07:00
Tom Payne
1a000c3719 Add typecast in WMTS IGN example 2013-10-08 15:37:32 +02:00
Tom Payne
4e5d50de98 Fix use of ol.dom.Input numeric value 2013-10-08 15:30:26 +02:00
Tom Payne
88d019a0bb Add typecasts in animation example 2013-10-08 15:29:44 +02:00
Tim Schaub
539ecbdd9c Add stroke support for text symbolizers 2013-10-07 16:17:38 -06:00
Bruno Binet
8f92deeac2 Fix overlay positioning in icon example 2013-10-07 18:51:34 +02:00
Bruno Binet
41085560f6 Fix overlay positioning in geolocation example 2013-10-07 18:36:51 +02:00
Bruno Binet
e9ac7cef83 Update overlay example with center positioning 2013-10-07 16:46:33 +02:00
ahocevar
87e755e9e4 Sort symbolizer groups by zIndex
Now rendering order can be controlled by setting the zIndex
symbolizer property.
2013-10-03 09:37:08 -06:00
Bart van den Eijnden
17356bc3ee Merge pull request #1063 from oterral/parsing_stylemap
Parsing styleMap (r=@bartvde)
2013-10-03 08:01:56 -07:00
Frédéric Junod
948735f948 Merge pull request #1075 from fredj/center-constraint
Add ol.CenterConstraint
2013-10-02 02:54:17 -07:00
Tom Payne
8ffe910ebf Apply center constraint in custom projection examples 2013-09-30 10:17:24 +02:00
Tim Schaub
ce6fd5ab36 Remove dimension option from KML parser
Geometry constructors now accept coordinates in any dimension
2013-09-27 23:18:34 +01:00
Tim Schaub
3e8ca13882 Missing stylesheet in TopoJSON example 2013-09-27 23:18:34 +01:00
Tim Schaub
e71d3aec1a Update example to use maxResolution 2013-09-27 11:47:29 +02:00
Frederic Junod
fc0f46344d Use ol.RendererHints.createFromQueryData in examples 2013-09-26 10:21:38 +02:00
Olivier Terral
e7222c040c Fix styleUrl parsing 2013-09-26 08:54:22 +02:00
ahocevar
860735d7e4 Nicer search box position 2013-09-24 14:56:25 +02:00
ahocevar
b80022036f ol3 logo for examples and apidoc header 2013-09-24 14:42:04 +02:00
Frederic Junod
88f938ea47 Remove social-links.js script from examples and doc 2013-09-23 13:58:12 +02:00
Tim Schaub
6276e633de Merge pull request #832 from fredj/feature_getset_id
Rename setFeatureId to setId (same for get).
2013-09-20 10:31:37 -07:00
Tom Payne
f24c9a807f Merge pull request #1042 from fredj/esri_attributions
Add missing source attribution in xyz-esri example
2013-09-20 04:17:41 -07:00
Tom Payne
265c5f1a11 Remove xyz-seturl example 2013-09-20 09:14:13 +01:00
Tim Schaub
387f60f1e5 Merge pull request #1041 from tschaub/antisocial
Don't display the social links on the example index.  Don't display the "mode" selection when running the development server.  Set the mode in the query string when the selection changes.
2013-09-19 16:44:09 -07:00
Frederic Junod
5c15c18f1a Remove xyz-seturl example 2013-09-19 17:23:25 +02:00
Bruno Binet
97556f234f Add min-max-resolution example
Show/hide layers depending on current map resolution.
2013-09-19 16:59:38 +02:00
Tim Schaub
66e1b01c2d Use form.navbar-form for input elements in a navbar 2013-09-19 15:19:20 +01:00
Tim Schaub
ac4b031353 Remove social links from example index 2013-09-19 15:17:02 +01:00