Files
openlayers/examples
Alexandre Dubé d1185da6b1 Replace mouseMove event condition by pointerMove
The original browser event was used to catch the mousemove event,
but in IE the 'pointermove' event is returned instead. So, instead
of using the original event, we use the map browser event, which
is always 'pointermove'.
2015-02-27 12:14:13 -05:00
..
2014-10-01 09:59:20 +02:00
2014-07-11 10:31:03 +02:00
2014-10-01 09:59:20 +02:00
2014-10-29 16:21:34 +01:00
2014-10-29 16:21:34 +01:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2014-07-29 12:29:43 +02:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2015-01-30 09:16:19 +01:00
2014-12-18 18:42:36 +01:00
2014-12-18 18:42:36 +01:00
2014-10-01 09:59:20 +02:00
2014-12-03 14:13:36 +01:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-06-27 09:59:39 -04:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2015-01-30 09:16:19 +01:00
2014-10-01 09:59:20 +02:00
2015-01-30 09:16:19 +01:00
2014-10-01 09:59:20 +02:00
2015-01-30 09:16:19 +01:00
2014-10-01 09:59:20 +02:00
2015-01-30 09:16:19 +01:00
2014-06-27 09:59:39 -04:00
2015-01-30 09:16:19 +01:00
2012-10-19 21:56:59 +02:00
2015-01-30 09:16:19 +01:00
2015-01-30 09:16:19 +01:00
2014-10-01 09:59:20 +02:00
2015-01-30 09:16:19 +01:00
2014-06-27 09:59:39 -04:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-10-21 23:00:10 -06:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2015-02-11 13:24:23 +01:00
2014-06-27 09:59:39 -04:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2015-01-06 09:26:00 +01:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-08-28 16:15:41 -06:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-06-27 09:59:39 -04:00
2015-01-30 09:16:19 +01:00
2014-10-01 09:59:20 +02:00
2015-02-18 15:45:20 -07:00
2015-02-18 15:45:20 -07:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-12-06 15:07:52 +01:00
2014-10-01 09:59:20 +02:00
2014-12-03 14:13:36 +01:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-06-27 09:59:39 -04:00
2015-01-30 09:16:19 +01:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2014-12-03 14:13:36 +01:00
2014-07-12 11:31:38 +00:00
2014-10-01 09:59:20 +02:00
2014-12-03 14:13:36 +01:00
2014-10-01 09:59:20 +02:00
2014-10-01 09:59:20 +02:00
2014-06-27 09:59:39 -04:00
2014-10-01 09:59:20 +02:00
2014-10-21 23:00:10 -06:00
2014-10-01 09:59:20 +02:00
2014-10-16 19:42:26 +02:00
2014-06-27 09:59:39 -04:00

Code examples

Although the main purpose of these examples is to demonstrate how to use the API, they also serve other purposes in the development cycle, and so are not exactly as they would be in normal application code:

  • every time the library changes, they are compiled together with the library as a basic check that they remain in sync with the library
  • they use a special loader script to enable defining at run time which build mode (raw/debug/advanced) to use

To enable this, examples have the following, not needed in application code:

  • each html file loads loader.js; application code would not need this, but would instead load the appropriate library build file, either a hosted version or a custom build
  • each js file starts with goog.require functions, used by the compiler; application code would only have these if the code is to be compiled together with the library and/or Closure library
  • some js files use type definitions (comments with @type tags); these are also used by the compiler, and are only needed if the code is to be compiled together with the library
  • html files load example-behaviour.js and some js files define the Map renderer option as exampleNS.getRendererFromQueryString(); application code would not need these
  • in addition, examples use Twitter Bootstrap and jQuery; this is of course not a requirement - you may use whichever presentation/helper libraries you wish

See Quick Start tutorial for a simple example of how application code would use the library.