/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/Format/WMC/v1.js */ /** * Class: OpenLayers.Format.WMC.v1_0_0 * Read and write WMC version 1.0.0. * * Inherits from: * - */ OpenLayers.Format.WMC.v1_0_0 = OpenLayers.Class( OpenLayers.Format.WMC.v1, { /** * Constant: VERSION * {String} 1.0.0 */ VERSION: "1.0.0", /** * Property: schemaLocation * {String} http://www.opengis.net/context * http://schemas.opengis.net/context/1.0.0/context.xsd */ schemaLocation: "http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd", /** * Constructor: OpenLayers.Format.WMC.v1_0_0 * Instances of this class are not created directly. Use the * constructor instead. * * Parameters: * options - {Object} An optional object whose properties will be set on * this instance. */ initialize: function(options) { OpenLayers.Format.WMC.v1.prototype.initialize.apply( this, [options] ); }, /** * Method: read_wmc_SRS */ read_wmc_SRS: function(layerContext, node) { var srs = this.getChildValue(node); if (typeof layerContext.projections != "object") { layerContext.projections = {}; } var values = srs.split(/ +/); for (var i=0, len=values.length; i