From 7d95df1a9d3ce26314f6566cd69397e029d0c5dc Mon Sep 17 00:00:00 2001 From: Barryrowe Date: Wed, 14 Oct 2015 16:49:41 -0400 Subject: [PATCH] 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. --- externs/olx.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/externs/olx.js b/externs/olx.js index 60da9abb15..be9053b422 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -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 */