1. 程式人生 > >ol3常用api總結(持續更新)

ol3常用api總結(持續更新)

var map = new ol.Map({
	  layers: [
	    new ol.layer.Tile({
        	 source: new ol.source.Stamen({
        		 layer: 'toner'
        	})
         })
	  ],
	  renderer:"canvas",
	  target: 'map',
	  view: new ol.View({
	    center: ol.proj.transform([100.1138,36.8917], 'EPSG:4326', 'EPSG:3857'),
	    zoom: 2
	  })
});