Expand docs on ol.source url prop

Expanded documentation on the url property of the
ol.source.Vector property to include information about
how data loaded remotely will always be run through an
attempt to translate to the view's projection so the
format object must have the proper value for
defaultDataProjection when the remote data doesn't
include a CRS property.
This commit is contained in:
Barryrowe
2015-10-14 16:49:41 -04:00
committed by Andreas Hocevar
parent ac84e98c7f
commit 7d95df1a9d

View File

@@ -5155,6 +5155,12 @@ olx.source.VectorOptions.prototype.strategy;
* the given URL. Use a {@link ol.FeatureUrlFunction} to generate the url with
* other loading strategies.
* Requires `format` to be set as well.
* When default XHR feature loader is provided, the features will
* be transformed from the data projection to the view projection
* during parsing. If your remote data source does not advertise its projection
* properly, this transformation will be incorrect. For some formats, the
* default projection (usually EPSG:4326) can be overridden by setting the
* defaultDataProjection constructor option on the format.
* @type {string|ol.FeatureUrlFunction|undefined}
* @api
*/