Commit Graph

8643 Commits

Author SHA1 Message Date
Éric Lemoine
7949cdaa82 crossOrigin defaults to null 2013-03-21 10:37:31 +01:00
Bruno Binet
7038ac0c81 Merge pull request #356 from bbinet/issue-356
Can't parse http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml
2013-03-21 02:10:56 -07:00
Frédéric Junod
92a34824e6 Merge pull request #411 from fredj/apidoc
Minor jsdoc fix
2013-03-21 01:27:27 -07:00
Frédéric Junod
c418beb350 Merge pull request #403 from fredj/export-map
Add png output
2013-03-21 01:24:11 -07:00
Frederic Junod
8296a1f134 Minor jsdoc fix 2013-03-21 09:19:23 +01:00
Éric Lemoine
01b97208d8 Merge pull request #408 from elemoine/jsdoc311
Use jsdoc v3.1.1
2013-03-20 15:52:57 -07:00
Tim Schaub
f74940fe2b Using a server that is not down (closes #406) 2013-03-20 16:00:26 -06:00
Éric Lemoine
a3d10e4234 Use jsdoc v3.1.1 2013-03-20 22:36:13 +01:00
Éric Lemoine
0ae47403ee Merge pull request #398 from elemoine/nestedoptions
Support nested options objects
2013-03-20 10:45:37 -07:00
Éric Lemoine
0b403c767a Fix goog.provide for object literals 2013-03-20 18:43:02 +01:00
Éric Lemoine
02d8d9e0bc Support nested options objects
This commit extends the generated Export constructors to support nested options objects. For example, this is now supported:

@exportObjectLiteralProperty ol.MapOptions.view ol.View|ol.View2DOptions|undefined

This specifies that the "view" property in the map options can reference an ol.View instance, an ol.View2DOptions literal object, or undefined. If the "view" property references an ol.View2DOptions literal object the ol.MapExport constructor will create an ol.View2DExport instance, and pass it to the parent constructor, ol.Map. In this way, extern types never cross the external/internal boundary. In other words, translations from non-renamed to renamed objects remain confined to the generated Export constructors.
2013-03-20 18:43:02 +01:00
Frederic Junod
f2b69a2a13 Add png output 2013-03-20 17:00:49 +01:00
Bruno Binet
641e492c95 Update social links in wmts-capabilities example 2013-03-20 15:25:45 +01:00
Bruno Binet
b0c4977811 Add exportSymbol for ol.projection.addCommonProjections 2013-03-20 14:39:14 +01:00
Bruno Binet
30a2b4187c The same projection can be added more than once
So that addCommonProjections can be safely called in our examples.
2013-03-20 14:39:14 +01:00
Bruno Binet
48e142d3f0 Fix wmts-capabilities example
the parsing of the wmts getCapabilities document require proj4js.

Also initialize common ol3 projections with ol.projection.addCommonProjections
so that it won't try to get EPSG:3857 from proj4js.
2013-03-20 14:39:14 +01:00
Bruno Binet
e6450dc313 Add new equivalent projections
for both EPSG:4326 and EPSG:3857.
2013-03-20 14:39:14 +01:00
Bruno Binet
c1db1cd491 Use correct namespaceURI for WGS84BoundingBox reader
(closes #356)
2013-03-20 14:39:14 +01:00
Frederic Junod
2eb5454ac4 Add wmts-capabilities example 2013-03-20 14:39:13 +01:00
ahocevar
baa5500843 Merge pull request #402 from ahocevar/more-context
More convenient url functions for WMS. r=@elemoine,@twpayne
2013-03-20 06:22:36 -07:00
ahocevar
5719160155 Less context
This change removes all changes that were anticipated here for
WMS GetFeatureInfo handling, including the IWMS interface and
the goog.provide for 'ol.tilegrid'. I'll create a separate pull
request for WMS GetFeatureInfo eventually, taking into account
the suggestions from the discussion in #402.
2013-03-20 13:41:36 +01:00
Tom Payne
514d513ca9 Merge pull request #401 from twpayne/coordinate-3d
Optionally extend ol.Coordinate to the third dimension
2013-03-20 05:05:14 -07:00
Tom Payne
7755555cc3 Use NaN as default value for Z 2013-03-20 12:02:40 +01:00
ahocevar
57fdd78a19 Fixing requires 2013-03-20 10:55:58 +01:00
ahocevar
46ca98e484 More context for url functions
With this change, url functions are called in the scope of the
source they are configured for. This allows us to simplify the
url function generation for WMS, using a more generic
createFromParamsFunction factory, and the source's new params
member.

Note that there is also a new url member for WMS sources. This
is the WMS base url (the first one in case there is an array of
urls for faster tile access). This can be used for accessing
other WMS services (especially GetFeatureInfo).
2013-03-20 10:45:54 +01:00
Tom Payne
d3ea5236ef Optionally extend ol.Coordinate to the third dimension
We continue to inherit from goog.math.Vec2 instead of goog.math.Vec3
because goog.math.Vec2 better represents a position in space, with
appropriate functionality, whereas goog.math.Vec3 represents a direction
and magnitude.
2013-03-19 22:10:21 +01:00
Tom Payne
4fe67f09c0 Merge pull request #399 from twpayne/test-typos
Fix some trivial typos
2013-03-19 13:35:25 -07:00
Tom Payne
a1a2ab415f Fix some trivial typos 2013-03-19 21:34:31 +01:00
Tim Schaub
26aefc1f63 The _blank target is an antipattern
The examples all have links back to the index page.  People know how to open links in new tabs/windows when they want to.
2013-03-19 12:18:08 -06:00
Tim Schaub
462659a9fc Use index.html instead of example-list.html
The original decision to avoid index.html was because it only works with a build step.  Since we've all accepted a build step, the more sensible name is index.html.  Without this change, every hosted example has a link to http://openlayers.github.com/ol3/master/examples/example-list.html which 404s.
2013-03-19 12:17:00 -06:00
Tim Schaub
374e436872 Picking a color that shows up more clearly on bluemarble 2013-03-19 11:54:50 -06:00
Tim Schaub
86eb65cc13 Merge pull request #395 from tschaub/no-test-markup
Create test specific markup in the individual tests as needed instead of relying on a common dom structure for all tests.
2013-03-19 09:18:41 -07:00
Tim Schaub
c07be93d25 Merge pull request #325 from tschaub/dirty-animation
Render new vector tiles after animation completes.  This was previously happening during an animated zoom, but not an animated pan.
2013-03-19 09:17:05 -07:00
Tim Schaub
825a6d65e8 Properly maintain dirty state during animation
The previous logic assumed that if there were any tiles to render, the dirty state should be false.  The correct logic is to say that if we don't render during animation, dirty is true.
2013-03-19 07:27:59 -06:00
Tim Schaub
251d6fc488 Example touch-ups
The strokeStyle property is now spelled strokeColor.  There is no sense in setting opacity to 1.5.  Moving map initialization up.
2013-03-19 06:38:50 -06:00
Tom Payne
d48a9407f2 Merge pull request #382 from twpayne/move-files
Use more consistent directory structure
2013-03-19 04:52:36 -07:00
Tom Payne
6cc4cb33d0 Use more consistent directory structure 2013-03-19 12:03:31 +01:00
Tim Schaub
956c31b59d Lint in build.py 2013-03-18 23:40:40 -06:00
Tim Schaub
d9380d0260 Copy social links script for hosted examples 2013-03-18 23:35:26 -06:00
Tim Schaub
27ccd13e48 Create test specific markup in tests
Instead of relying on a shared dom structure, the tests should create (and destroy) elements as needed.
2013-03-18 22:53:04 -06:00
Tim Schaub
fad57a0fe5 Clarifying which var is accesed
This test creates its own zoomslider and doesn't access the one from the closure.
2013-03-18 21:52:01 -06:00
Tim Schaub
928457e174 Correcting test semantics
Despite what the test comment says, the orientation of this slider is horizontal.
2013-03-18 21:50:00 -06:00
Tim Schaub
0fc7ba5bfb Merge pull request #393 from tschaub/social
Make social links more social
2013-03-18 17:17:54 -07:00
Tim Schaub
6b5e251279 Fix global leak
A bit curious that the linter didn't catch this.  My test runner fails with it.
2013-03-18 17:54:36 -06:00
Tom Payne
41eedfaa06 Merge pull request #394 from Turbo87/test-improvements
Mocha improvements
2013-03-18 14:11:04 -07:00
Tobias Bieniek
1d5389a45d test: Deactivate mocha bail option
We don't want mocha to quit on the first failing test. It should continue
and see what other tests are failing.
2013-03-18 20:50:04 +01:00
Tim Schaub
1ac77b1a6f Make social links more social 2013-03-18 13:27:47 -06:00
Tim Schaub
4cec0546c8 Range from -π to π in rotation inputs (see #392) 2013-03-18 12:10:44 -06:00
ahocevar
114d4c6f92 Merge pull request #388 from ahocevar/dblclick
Do not recenter map and zoom on repeated clicks on +/-. r=@elemoine
2013-03-18 11:03:26 -07:00
Frédéric Junod
b5461f8b6b Merge pull request #389 from fredj/dom-object
Add ol.dom.Input
2013-03-18 09:04:33 -07:00