Commit Graph

1597 Commits

Author SHA1 Message Date
ahocevar
d2c5422d09 Default projection does not need to be provided
The wmts-from-capabilities example should focus on creating a
WMTS source from capabilities, so it should not distract by
configuring a projection that does not need to be configured.
2013-11-14 17:29:11 +01:00
ahocevar
b670a0d9da Merge pull request #1280 from ahocevar/wmts-vienna
Proj4js no longer needed for wmts-from-capabilities example
2013-11-14 04:02:11 -08:00
ahocevar
b5bcaea3a0 Proj4js no longer needed for wmts-from-capabilities example
The WMTS capabilities document of the Vienna map has changed. It
no longer defines a tileset for EPSG:31256, so it can be parsed
without having Proj4js and a projection definition for
EPSG:31256.
2013-11-14 12:48:06 +01:00
Frédéric Junod
fac953a683 Merge pull request #1198 from fredj/bindTo_transform
ol.Object#bindTo: getter and setter
2013-11-13 09:00:33 -08:00
Frédéric Junod
376e427e05 Merge pull request #1275 from fredj/bing_style_param
Rename ol.source.BingMapsOptions style property to imagerySet
2013-11-13 07:21:19 -08:00
Frederic Junod
a0bea641d1 Remove 'valueAsNumber' property from ol.dom.Input
Use bindTo.transform functions instead
2013-11-13 16:13:08 +01:00
Frederic Junod
03cc533cb3 Getter and setter support for bindTo 2013-11-13 16:13:08 +01:00
Tim Schaub
22da054774 Determine the callback count while iterating through all layers
Previously, if a layer didn't have a `getFeature*ForPixel` type method, the loop count would be decremented.  This means that all layers would not be considered.  Instead, the callback count should be incremented before requests are made and decremented in the callback.
2013-11-13 07:36:54 -07:00
Tim Schaub
b9a4ae5e77 Merge pull request #1273 from tschaub/select-layers
Rename layerFilter option to layers and accept array for select interaction.
2013-11-13 06:35:17 -08:00
Frederic Junod
e508be66d9 Rename ol.source.BingMapsOptions style property to imagerySet
To match the Bing Maps terminology
2013-11-13 10:49:17 +01:00
Tim Schaub
a2b55b04e8 Rename layerFilter option to layers and accept array 2013-11-12 22:08:59 -07:00
Tim Schaub
cd647a1ebc Removing example 2013-11-12 19:24:13 -07:00
ahocevar
39a5a8e291 Refactoring for better layer management
The only feature on the temporary layer is now the
vertexFeature, and the temporary layer's style is dynamically
changed to the style of the layer whose segment is being edited
(the topmost layer if more than one segment are being edited).
With this simplification, we can also put all segments on a
single RTree. Finally, we no longer rely on structures set on
layers - all we need is now on the instance itself.

This refactoring also changes the way we define layers to
participate in modification - by using an array or a filter
function, or assuming all layers if no layers property is set.
2013-11-13 00:44:38 +01:00
Tim Schaub
d577466de6 Common style for drawing and modifying 2013-11-13 00:44:37 +01:00
Tim Schaub
af6edadebe Update example with more distinct colors and no social links
Conflicts:
	examples/modify-features.html
2013-11-13 00:44:37 +01:00
ahocevar
fe2fbe06c3 Updating header 2013-11-13 00:44:37 +01:00
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