System.Data.OleDb.OleDbException:'创建文件失败。'

时间:2018-11-15 03:37:26

标签: visual-studio-2017

var url =  'http://localhost:8080/geoserver/mapname/wfs?service=WFS&'+'version=1.0.0&request=GetFeature&typeName=mapname:awesomelayer&'+'outputFormat=application/json&maxFeatures=50'    
var vectorSource = new ol.source.Vector({
          format: new ol.format.GeoJSON(),
          loader: function(extent, resolution, projection){
                $.ajax({
                url: url,
                type:'GET',
                dataType: 'jsonp'
                }).done(function(response) {

                    var features = vectorSource.readFeatures(response, {
                        featureProjection: projection
                    });

                    vectorSource.addFeatures(features);
                });
           },
          strategy: new ol.loadingstrategy.tile(ol.tilegrid.createXYZ({maxZoom: 20}))
});

我有Microsoft Office 2016和Visual Studio 2017。 请帮助我。我必须在周末之前解决错误。 谢谢您的建议。

0 个答案:

没有答案