Commit Graph
100 Commits
Author SHA1 Message Date
Tim Schaub 394dfa297a Link to API docs 2013-09-24 15:14:50 +02:00
Tim Schaub c4dba8e828 Link to website root 2013-09-24 15:14:49 +02:00
Tim Schaub 5c98a47581 Bare bones index pages 2013-09-24 14:57:58 +02:00
Tim Schaub a9b0e6239b Link to latest, fenced code blocks 2013-09-24 14:57:58 +02:00
Tim Schaub aec0c0d9af Adding YAML frontmatter
This will be parsed by the website build task
2013-09-24 10:39:34 +02:00
Tim Schaub 2f2ee22831 Moving quickstart to doc directory 2013-09-24 10:37:43 +02:00
Tim Schaub 4def0c6a84 Differentiating doc from apidoc
This renames the doc task to apidoc.  The apidoc delegates to jsdoc3 currently.  We will have additional documentation that is not built by jsdoc3.  It makes sense to reserve the more general 'doc' name for building all documentation (not just apidoc).
2013-09-23 23:58:25 +02:00
Tim Schaub 6c2e5f6eca The production loader has special logic for advanced and raw modes 2013-09-20 15:29:29 +01:00
Tim Schaub ea66ddf3a4 Don't show compiled option when using node dev server 2013-09-19 15:20:11 +01: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
Tim Schaub 97d614285e New extent structure for TileJSON
The change in e806f51b3d neglected to correct the extent handling for the TileJSON source.
2013-09-15 22:22:20 -06:00
Tim Schaub e1bafd2f6e Export ol.proj.Projection.prototype.getExtent for use in WMTS example 2013-09-15 22:04:51 -06:00
Tim Schaub 9a2dac7182 Limit ol.proj exports 2013-09-15 22:04:51 -06:00
Tim Schaub b524de417b Rename ol.ProjectionUnits to ol.proj.Units 2013-09-15 22:04:51 -06:00
Tim Schaub 9a29c0e22d Rename ol.ProjectionLike to ol.proj.ProjectionLike 2013-09-15 22:01:56 -06:00
Tim Schaub 3b20cc7b53 Rename ol.Projection to ol.proj.Projection 2013-09-15 22:01:56 -06:00
Tim Schaub 13c84b0523 Export ol.Geolocation.SUPPORTED and provide ol.Geolocation 2013-09-15 15:54:41 -06:00
Tim Schaub 589c6f8a0b Export ol.DeviceOrientation.SUPPORTED and provide ol.DeviceOrientation 2013-09-15 15:54:41 -06:00
Tim Schaub 210b489a6c Provide ol.renderer.dom instead of ol.renderer.dom.SUPPORTED 2013-09-15 15:54:41 -06:00
Tim Schaub a2c70dba85 Provide ol.canvas instead of ol.canvas.SUPPORTED
This is not currently used outside the library, so it is not exported.
2013-09-15 15:54:01 -06:00
Tim Schaub 54738e29eb Export ol.webgl.SUPPORTED and provide ol.webgl 2013-09-15 15:51:17 -06:00
Tim Schaub f1f319d6ad Preemptively set global properties
As mentioned in the comments, calling goog.getUid and goog.events.listen on the global object (as done in map.js and deviceorientation.js) set global properties.  To let Mocha check for other leaks, we preemptively set these properties.
2013-09-15 14:22:41 -06:00
Tim Schaub 13b55b04a8 Unnecessary spy 2013-09-15 10:41:44 -06:00
Tim Schaub e806f51b3d Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub de0e8aeced New extent structure in examples 2013-09-14 21:14:55 -06:00
Tim Schaub e84e0e1233 WebGL renderer updates for new extent structure 2013-09-14 21:14:55 -06:00
Tim Schaub 1a7e99f67e DOM renderer updates for new extent structure 2013-09-14 21:13:47 -06:00
Tim Schaub e575df6df0 Canvas renderer updates for new extent structure 2013-09-14 21:13:47 -06:00
Tim Schaub 3faa035de3 Geom2 package working with new extent structure 2013-09-14 21:13:47 -06:00
Tim Schaub e6b395e2ee View support for new extent structure 2013-09-14 21:13:46 -06:00
Tim Schaub 511e5ad5e8 Vector layer updates for new extent structure 2013-09-14 21:13:46 -06:00
Tim Schaub 75cb19d7e1 Source updates for new extent structure 2013-09-14 21:13:46 -06:00
Tim Schaub a670b7979c Tile grid working with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 65863614bb GeoJSON and TopoJSON tests for new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 0eb4cd6dd4 Proj support for new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 7d00159bff WMS capabilities parsing with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 5d18da4035 Filter encoding with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 3ea6041714 GML parsing with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 9226472380 Update geom package to use new extent structure 2013-09-14 21:11:52 -06:00
Tim Schaub 208d86b5bf Arg order for extent function in expressions 2013-09-14 21:11:52 -06:00
Tim Schaub 6955499534 Update rtree to use new extent structure 2013-09-14 21:11:52 -06:00
Tim Schaub 60bf396e25 Update geom package to use new extent structure 2013-09-14 21:11:52 -06:00
Tim Schaub dbccb8b231 Function for cloning extents 2013-09-14 21:11:52 -06:00
Tim Schaub fcf00dea8b New structure for extent: [minCoord, maxCoord] 2013-09-14 21:11:52 -06:00
Tim Schaub 3dc2b69615 Test conventions
* use `be` or `equal` for strict equality tests
 * use `be.a` for `instanceof` checks
 * use dot instead of bracket notation
2013-09-14 18:10:13 -06:00
Tim Schaub 377da9349e Don't use private date_ property (see #1026)
It looks like at some point the Closure Library exposed a public `date` property for this same purpose.  The version of the Closure Library that comes with the closure-util package uses this property.  At some point later, I'll demonstrate how we can control which version of the library we depend on.
2013-09-14 18:10:12 -06:00
Tim Schaub 75fffd1f47 Making use of the closure-util package
This provides some initial development utilities for people using Node.

Instructions for installing:

    npm install

After pulling down the dependencies, you can start a developement server that provides the libraries (ol and Closure Library) in debug mode (not minified/compiled).  Run the dev server with the following:

    npm start

Currently, the example index page needs to be built with `build.py`.  After building that, you should be able to browse all static files, view the examples and run the tests.
2013-09-14 18:10:12 -06:00
Tim Schaub c029e8770c Used in example but not exported (see #1011) 2013-09-11 12:21:27 -06:00
Tim Schaub 1ee2da76af Add example using XYZ tiles from Esri 2013-09-11 00:41:25 -06:00
Tim Schaub cf37566606 Remove unused require
This was unused before 03f7bb66374b162aab26289b761e7918b79c0ca7 as well.  It would be interesting to see how many other unused requires there are (types that are only referenced in comments but not used in code).
2013-09-11 00:17:02 -06:00
Tim Schaub 843334627e Moving maxZoom default to XYZ source.
No reason this convenience should be restricted to the OSM layer.
2013-09-11 00:17:01 -06:00
Tim Schaub 8d7d1412c9 Adding XYZOptions to objectliterals.jsdoc
I remain uncertain about when to use the @exportClass annotation and when to use the @exportSymbol.  osmsource.exports seems to get away with simply @exportSymbol, but many other sources use @exportProperty.
2013-09-11 00:17:01 -06:00
Tim Schaub 0df6cebff9 minZoom is not a supported property of ol.tilegrid.XYZOptions 2013-09-11 00:17:01 -06:00
Tim Schaub a6fb72c240 Export XYZ source 2013-09-11 00:17:01 -06:00
Tim Schaub 4d71d2b1e8 Less greedy 2013-09-10 23:24:43 -06:00
Tim Schaub d9a2c66909 New name for tile layer 2013-09-10 21:59:08 -06:00
Tim Schaub 13a937fad7 Lazily create default style 2013-09-07 09:19:11 -06:00
Tim Schaub 6617969d36 Example using the moveend event 2013-09-05 15:36:03 -06:00
Tim Schaub 50ed564bf6 Fire a moveend event after rendering
The moveend event is fired after rendering if there is no pending animation, current interaction, or other pre-render functions in the queue.
2013-09-05 15:35:53 -06:00
Tim Schaub 15609f36ad Unused imports 2013-09-04 13:56:03 -06:00
Tim Schaub 2ac3d4d2cd Export namespaces instead of functions in generated code 2013-09-04 13:56:02 -06:00
Tim Schaub 8b7a0a060c Export ol.interaction namespace instead of the defaults function 2013-09-04 13:55:54 -06:00
Tim Schaub 716b7b0cec Export ol.control namespace instead of ol.control.defaults function 2013-09-04 13:55:54 -06:00
Tim Schaub 7d510310ed Removing unnecessary require 2013-09-04 13:55:54 -06:00
Tim Schaub 36ea408ed2 Handle namespace provides
It looks like the convention in the Closure Library is to export either namespaces (starting with lowercase), constructors (starting with uppercase), or enums (all uppercase, one instance).  I don't see any places where the Closure Library exports a function that is not a constructor.

Following the same convention, when we export `ol.foo`, it means we are making available function properties of the `ol.foo` object that start with a lowercase letter.
2013-09-04 13:55:54 -06:00
Tim Schaub fa1601f04f Export namespaces or constructors but not functions 2013-09-04 13:55:54 -06:00
Tim Schaub 8ca3f13bd2 Instead of providing animation functions, provide the namespace
This follows the convention in the Closure Library of providing either namespace objects (where the property starts with a lowercase letter), constructors (where the property starts with an uppercase letter), or enums (all uppercase properties, only one instance of this in the closure library).
2013-09-04 13:55:36 -06:00
Tim Schaub 8e2b065ece Exporting set and setGeometry
Since the set method is exported on ol.Object, we need to export the method on the feature prototype to get correct behavior.
2013-09-03 11:54:58 -06:00
Tim Schaub dc76b81780 Rename addPreRenderFunction to beforeRender and remove the plural 2013-09-03 10:57:31 -06:00
Tim Schaub 109ef38d69 Exporting setMap so it is documented for custom controls 2013-08-31 16:40:46 -06:00
Tim Schaub 8844310bf4 Call setMap instead of passing map to control 2013-08-31 14:45:03 -06:00
Tim Schaub 3e1de0b1ad Call addControl instead of passing map to control 2013-08-31 14:44:29 -06:00
Tim Schaub 6d9d5ecb4b Update ZoomSlider example in docs 2013-08-31 07:29:44 -06:00
Tim Schaub b17feb4580 Add extra requires (see #958) 2013-08-30 15:20:21 -06:00
Tim Schaub 4679ba77c4 Don't export ol.control.Control.prototype.setMap 2013-08-30 14:59:47 -06:00
Tim Schaub b479909e25 Remove map from control options 2013-08-30 14:59:21 -06:00
Tim Schaub 33f4d1e0ee Add missing provide and require for ol.geom 2013-08-30 13:32:04 -06:00
Tim Schaub 58fe110419 Rename ol.geom.VertexArray to ol.CoordinateArray 2013-08-30 13:30:53 -06:00
Tim Schaub 7165d414c7 Use ol.Coordinate instead of ol.geom.Vertex 2013-08-30 13:30:25 -06:00
Tim Schaub 6f98a75fb8 Limit feature exports 2013-08-30 13:14:17 -06:00
Tim Schaub ba1e985d2f Do not display the popup initially 2013-08-28 18:05:54 -06:00
Tim Schaub 0361609631 Remove separate arrow element 2013-08-28 15:25:05 -06:00
Tim Schaub 03580bcfec Better title 2013-08-28 14:21:49 -06:00
Tim Schaub b4df86a17e Remove unused style 2013-08-28 14:21:07 -06:00
Tim Schaub c34e582f1a Toggle display instead of visibility for proper click handling 2013-08-28 12:36:00 -06:00
Tim Schaub 0f34bbc161 Adding some variety to the examples 2013-08-28 12:35:23 -06:00
Tim Schaub 7f66376315 Basic popup example 2013-08-28 12:28:47 -06:00
Tim Schaub dd37d0e736 Slightly less giant icon 2013-08-28 10:45:24 -06:00
Tim Schaub 9ef439ba23 Exports for specific geometry types 2013-08-28 10:41:07 -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 e9aa316007 Call getUid once 2013-08-27 16:22:45 -06:00
Tim Schaub 6b625e368b Account for icon offsets when doing feature hit detection 2013-08-27 16:22:45 -06:00
Tim Schaub efeb00e4a5 Add x/y offset for icon symbolizers 2013-08-27 16:22:45 -06:00
Tim Schaub 6baf5d0b18 Export ol.geom.Geometry.prototype.getCoordinates 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
Tim Schaub 0c555e6e7d Accept null crs 2013-08-27 10:54:00 -06:00
Tim Schaub 0a3e46b88d Remove unnecessary cast and save 15 bytes using goog.isDef 2013-08-26 09:26:07 -06:00
Tim Schaub 7e2bd66417 Read crs from top-level object when parsing as features 2013-08-25 12:32:22 -06:00
Tim Schaub 379c11e1ce Add externs for GeoJSON crs member 2013-08-25 12:22:08 -06:00