I am having a difficult time trying to change the default projection of the map view.
Here is a JSFIDDLE: http://jsfiddle.net/qtcpjape/3/
$( document ).ready(function() {
var proj = new ol.proj.Projection({
code: 'EPSG:4326',
units: 'm',
extent: [-180.0000, -90.0000, 180.0000, 90.0000]
});
var map = new ol.Map({
target: 'map',
controls: [],
layers: [
new ol.layer.Tile({
source: new ol.source.MapQuest({
layer: 'osm'
})
})
],
view: new ol.View({
center: [-90.78885827595732, 38.78662388327825],
projection: proj,
zoom: 15
})
});
});
I will be having GeoJSON coming from a REST call that is in EPSG:4326 and I would like to map it easily.
Right now, I cannot seem to get the map to change the projection and show the actual center.
Any help would be appreciated! Thanks!