Andreas Hocevar
da3d8952da
Simplify icon example and show popup at clicked position
...
By using the event's coordinate instead of the feature's, we make sure
that the popup is shown where the user clicked when on a wrapped world.
2015-07-31 10:09:16 +02:00
Tim Schaub
c5cf709c55
The common.js script makes a "common" object available
2015-04-17 09:49:53 -06:00
Tim Schaub
89f5e711e6
Example sources in the examples dir
2015-04-17 06:22:38 -06:00
Andreas Hocevar
ff1ee78ddd
Build and parse examples from examples_src/
2015-04-02 19:10:09 +02:00
tsauerwein
9cc8390dfd
Use dragging in examples
2015-01-30 09:16:19 +01:00
tsauerwein
35c58b3b0e
Use hasFeatureAtPixel in icon example
2015-01-08 16:12:52 +01:00
tsauerwein
6c48b2067b
Make icon example work with webgl
2015-01-08 15:38:00 +01:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00
Andreas Hocevar
e44e59311b
Merge pull request #1896 from ahocevar/nodragclick
...
Add click event as responsive alternative to singleclick
2014-04-03 13:34:14 +02:00
Tim Schaub
5653d57712
Change default renderer to Canvas
2014-04-02 11:43:20 -06:00
ahocevar
7bfa15c0fd
Add click event as responsive alternative to singleclick
...
The singleclick event makes the application feel slow because
of the 250 ms delay that is used to rule out a dblclick.
2014-03-27 18:33:17 +01:00
Frederic Junod
0e73ffa9d9
Set ol.style.Icon opacity
2014-02-19 11:40:40 +01:00
Tim Schaub
f4585331f2
Add setStyle and getStyle to ol.Feature
...
As with vector layers and feature overlays, feature style can be set by calling
setStyle. Calling getStyle returns what was passed to setStyle. Internally, we call getStyleFunction.
2014-02-13 10:25:17 -07:00
Éric Lemoine
581b2d345d
Show how to use ol.Feature#setStyleFunction in the icon example
2014-02-12 14:26:00 +01:00
Tom Payne
9af436b5a0
Use string instead of ol.OverlayPositioning enum in examples
2014-02-06 22:33:32 +01:00
Tom Payne
a58aa0a40d
Use string instead of ol.RendererHint enum in examples
2014-02-06 22:33:25 +01:00
Tom Payne
318fc68159
Convert ol.MapBrowserEvent#get* methods into properties
2014-01-29 14:51:27 +01:00
Éric Lemoine
5efc692b9d
Add typecast to icon example
2014-01-08 00:44:00 +01:00
Éric Lemoine
09e5574350
Use anchorXUnits and anchorYUnits in icon example
2014-01-08 00:24:55 +01:00
Éric Lemoine
573b15182c
Example icon uses ol.style.Icon
2013-12-19 00:20:11 +01:00
Éric Lemoine
12c96510c1
Use olx options ns in icon and geojson examples
2013-12-13 13:43:51 +01:00
Tom Payne
a814dd11ca
Use ol.source.GeoJSON in icon example
2013-12-11 14:14:33 +01:00
Tom Payne
514ebb752b
Use ol.format.GeoJSON in icon example
2013-12-10 15:35:50 +01:00
Tom Payne
5acc673c68
Add layer to forEachFeatureAtPixel callbacks in examples
2013-12-04 00:05:45 +01:00
Tom Payne
15fd9f7662
Break out of forEachFeatureAtPixel as soon as hit detected in icon example
2013-12-04 00:05:44 +01:00
Éric Lemoine
24e7a81ae5
Detect when mouse is over marker in icon example
2013-12-02 15:06:19 +01:00
Éric Lemoine
53ecc8edb6
Add popup back to icon example
2013-12-02 15:06:19 +01:00
Éric Lemoine
82e03ea508
Add an icon example
2013-11-26 16:32:03 +01:00
Tom Payne
4e65fefc00
Move vector code out of the way
2013-11-20 11:39:21 +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
8f92deeac2
Fix overlay positioning in icon example
2013-10-07 18:51:34 +02:00
Tom Payne
c82aeb586f
Merge pull request #998 from twpayne/consistent-names
...
Consistent names
2013-09-09 07:48:42 -07:00
Tom Payne
8f8f94e697
Rename ol.layer.TileLayer to ol.layer.Tile
2013-09-09 15:14:45 +02:00
Frederic Junod
0efe92ab4c
Fix popover in icon example
2013-09-09 10:23:28 +02:00
Éric Lemoine
7e25ecb3dc
Remove map from OverlayOptions
2013-09-02 14:15:11 +02:00
Tim Schaub
dd37d0e736
Slightly less giant icon
2013-08-28 10:45:24 -06:00
Tim Schaub
ab2c4387b8
Move png to data to work with host-examples task
2013-08-27 16:36:13 -06:00
Tim Schaub
efeb00e4a5
Add x/y offset for icon symbolizers
2013-08-27 16:22:45 -06:00
Tim Schaub
9c824584b3
Example using an icon symbolizer and displaying a popup
...
I'm adding this example to demonstrate a few things that should change:
* the icon symbolizer should accept xOffset and yOffset in pixels
* the `ol.geom.Geometry.prototype.getCoordinates` method should be exported
* overlays should have a `panIntoView` method
2013-08-27 16:22:45 -06:00