{"action":"opened","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/4491","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/4491/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4491/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/4491/events","html_url":"https://github.com/openlayers/ol3/issues/4491","id":118681066,"number":4491,"title":"Vector Tile missing Projection","user":{"login":"sbowler","id":1760004,"avatar_url":"https://avatars.githubusercontent.com/u/1760004?v=3","gravatar_id":"","url":"https://api.github.com/users/sbowler","html_url":"https://github.com/sbowler","followers_url":"https://api.github.com/users/sbowler/followers","following_url":"https://api.github.com/users/sbowler/following{/other_user}","gists_url":"https://api.github.com/users/sbowler/gists{/gist_id}","starred_url":"https://api.github.com/users/sbowler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbowler/subscriptions","organizations_url":"https://api.github.com/users/sbowler/orgs","repos_url":"https://api.github.com/users/sbowler/repos","events_url":"https://api.github.com/users/sbowler/events{/privacy}","received_events_url":"https://api.github.com/users/sbowler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T19:05:51Z","updated_at":"2015-11-24T19:05:51Z","closed_at":null,"body":"Hello,\r\n\r\nI've noticed an issue with the changes from 3.10 to 3.11 and geoJson Vector tiles. Previously it seemed like the correct projections were automatically handled so they would be converted properly. When `ol.format.Feature.transformWithOptions` was called it properly had the correct `dataProjection` and `featureProjection` in the options; converting our tiles that are in EPSG:4326 to the map EPSG:3857 coordinates correctly.\r\n\r\nIn 3.11 the `featureProjection` is always null. I've traced this back to being called from a function in `ol.featureloader.loadFeaturesXhr` where the projection is null. I traced that call back to `ol.VectorTile.prototype.load` where the loader appears to be called with the projection hard coded to null. This seems a bit odd that you wouldn't pass along `this.projection_` as the projection. Of course I only have a vague understanding of how this all works.\r\n\r\nSo far I've frivolously tried to pass in the correct projection any way I could to no avail.\r\n```\r\nnew ol.layer.VectorTile({\r\n  source: new ol.source.VectorTile({\r\n    format: new ol.format.GeoJSON({\r\n      defaultFeatureProjection: 'EPSG:3857'\r\n    }),\r\n    projection: 'EPSG:3857',\r\n    defaultFeatureProjection: 'EPSG:3857',\r\n    featureProjection: 'EPSG:3857',\r\n    tileGrid: ol.tilegrid.createXYZ({\r\n        maxZoom: 4\r\n    }),\r\n    url: \"/geojsontiles/land/{z}/{x}/{y}.json\",\r\n      attributions: [attribution]\r\n    })\r\n})\r\n```\r\n\r\nI'll keep looking at ways to work around this issue, but it seems like the new code is not handling different projections as well as the old code."}}