「216-ol3ex.js」
var raster = new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'sat'}) });
var vector = new ol.layer.Vector({ source: new ol.source.GeoJSON({ projection: 'EPSG:3857', //url: 'data/geojson/countries.geojson' url: 'v3.0.0-beta.5/examples/data/geojson/countries.geojson' }) });
var select = new ol.interaction.Select();
var map = new ol.Map({ interactions: ol.interaction.defaults().extend([select]), layers: [raster, vector], target: 'map', view: new ol.View2D({ center: [0, 0], zoom: 2 }) });2161d-ol3ex.png
0 件のコメント:
コメントを投稿