Remove the '3' from OpenLayers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// TODO: serialize dataProjection as crs member when writing
|
||||
// see https://github.com/openlayers/ol3/issues/2078
|
||||
// see https://github.com/openlayers/openlayers/issues/2078
|
||||
|
||||
goog.provide('ol.format.GeoJSON');
|
||||
|
||||
|
||||
@@ -938,7 +938,7 @@ ol.format.GPX.prototype.writeFeaturesNode = function(features, opt_options) {
|
||||
ol.xml.setAttributeNS(gpx, xmlSchemaInstanceUri, 'xsi:schemaLocation',
|
||||
ol.format.GPX.SCHEMA_LOCATION_);
|
||||
gpx.setAttribute('version', '1.1');
|
||||
gpx.setAttribute('creator', 'OpenLayers 3');
|
||||
gpx.setAttribute('creator', 'OpenLayers');
|
||||
|
||||
ol.xml.pushSerializeAndPop(/** @type {ol.XmlNodeStackItem} */
|
||||
({node: gpx}), ol.format.GPX.GPX_SERIALIZERS_,
|
||||
|
||||
@@ -18,10 +18,10 @@ If a file cannot be parsed, then the return value should be `null` for all three
|
||||
|
||||
# Implementing XML formats
|
||||
|
||||
This is an introduction for people looking to contribute an XML format reader to OpenLayers 3. After having read this document, you should read the code of and make sure that you understand the simpler XML format readers like `ol.format.GPX` before embarking on writing your own format reader.
|
||||
This is an introduction for people looking to contribute an XML format reader to OpenLayers. After having read this document, you should read the code of and make sure that you understand the simpler XML format readers like `ol.format.GPX` before embarking on writing your own format reader.
|
||||
The document ends with guidelines for implementing a new format.
|
||||
|
||||
The `ol.xml` namespace contains a number of useful functions for parsing XML documents. All code in OpenLayers 3 that reads data from XML documents should use it. It has several features:
|
||||
The `ol.xml` namespace contains a number of useful functions for parsing XML documents. All code in OpenLayers that reads data from XML documents should use it. It has several features:
|
||||
|
||||
* Browser support back to IE9
|
||||
* Correct treatment of XML namespaces
|
||||
@@ -51,7 +51,7 @@ There are two key concepts to master to understand how `ol.xml` works:
|
||||
* How `ol.xml.parse` traverses the XML document (or node) and calls back to your code
|
||||
* How `ol.xml` decouples the structure of the XML document (which is always a tree) from the structure of the output data (which could be a single object, an array of objects, or anything else) using an object stack.
|
||||
|
||||
It's handy to have the [`src/ol/xml.js` source code](https://github.com/openlayers/ol3/blob/master/src/ol/xml.js) to hand while you read the following.
|
||||
It's handy to have the [`src/ol/xml.js` source code](https://github.com/openlayers/openlayers/blob/master/src/ol/xml.js) to hand while you read the following.
|
||||
|
||||
## How `ol.xml.parse` traverses the XML document
|
||||
|
||||
@@ -124,7 +124,7 @@ In the above there are many common operations, like setting the property of the
|
||||
|
||||
### Putting it all together
|
||||
|
||||
With the above, you should be able to read through the [source code to `ol.format.GPX`](https://github.com/openlayers/ol3/blob/master/src/ol/format/gpxformat.js) and get a feel for how it works. Start from the bottom of the file and work upwards. It's also useful to have [an example GPX file](http://www.topografix.com/fells_loop.gpx) and [the GPX specification](http://www.topografix.com/GPX/1/1/) to hand.
|
||||
With the above, you should be able to read through the [source code to `ol.format.GPX`](https://github.com/openlayers/openlayers/blob/master/src/ol/format/gpxformat.js) and get a feel for how it works. Start from the bottom of the file and work upwards. It's also useful to have [an example GPX file](http://www.topografix.com/fells_loop.gpx) and [the GPX specification](http://www.topografix.com/GPX/1/1/) to hand.
|
||||
|
||||
### Handling errors
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ ol.ASSUME_TOUCH = false;
|
||||
|
||||
/**
|
||||
* TODO: rename this to something having to do with tile grids
|
||||
* see https://github.com/openlayers/ol3/issues/2076
|
||||
* see https://github.com/openlayers/openlayers/issues/2076
|
||||
* @define {number} Default maximum zoom for default tile grids.
|
||||
*/
|
||||
ol.DEFAULT_MAX_ZOOM = 42;
|
||||
|
||||
@@ -44,14 +44,14 @@ goog.require('ol.transform');
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.OL3_URL = 'https://openlayers.org/';
|
||||
ol.OL_URL = 'https://openlayers.org/';
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.OL3_LOGO_URL = 'data:image/png;base64,' +
|
||||
ol.OL_LOGO_URL = 'data:image/png;base64,' +
|
||||
'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBI' +
|
||||
'WXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAA' +
|
||||
'AhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszW' +
|
||||
@@ -1418,7 +1418,7 @@ ol.Map.createOptionsInternal = function(options) {
|
||||
var logos = {};
|
||||
if (options.logo === undefined ||
|
||||
(typeof options.logo === 'boolean' && options.logo)) {
|
||||
logos[ol.OL3_LOGO_URL] = ol.OL3_URL;
|
||||
logos[ol.OL_LOGO_URL] = ol.OL_URL;
|
||||
} else {
|
||||
var logo = options.logo;
|
||||
if (typeof logo === 'string') {
|
||||
|
||||
@@ -908,7 +908,7 @@ ol.View.createResolutionConstraint_ = function(options) {
|
||||
var minResolution;
|
||||
|
||||
// TODO: move these to be ol constants
|
||||
// see https://github.com/openlayers/ol3/issues/2076
|
||||
// see https://github.com/openlayers/openlayers/issues/2076
|
||||
var defaultMaxZoom = 28;
|
||||
var defaultZoomFactor = 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user