2 echarts.min.js:45 Uncaught Error: Invalid geoJson format Cannot read prope 项目中用echarts绘制地图,由于网上乡镇级别行政边界地图很少需要自己制作,所以用到了bigMap+geojson.io绘制自定义地图, 但是由于生成的地图里有一个区域为两块不连续的地图块,所以生成的geoJson中此区域的geometry.type===GeometryCol...
简介:解决报错:1.Invalid geoJson format Cannot read property ‘length’ of undefined2 echarts.min.js:45 Uncaught Error: Invalid geoJson format Cannot read prope 背景 解决报错: 1.Invalid geoJson format Cannot read property 'length' of undefined 2 echarts.min.js:45 Uncaught Error: Invalid geoJ...
vargeoJSON=mapRecord.geoJSON; varregions;// https://jsperf.com/try-catch-performance-overhead try{ regions=geoJSON?parseGeoJson(geoJSON) : []; }catch(e) { thrownewError('Invalid geoJson format\n'+e.message); } each(regions,function(region) { varregionName=region.name; fixTextCoord(m...
I am getting Uncaught SyntaxError: Unexpected token < error.can any one help me to find what is wrong with below code function SearchbyAttribute(filter) { $.ajax({ url: " http://192.168.1.137:8080/geoserver/school/wms", type: 'GET', contentType: "application/jsonp; charset=utf...
UncaughtError: Invalid LngLatobject: (NaN,NaN) atnewTu (lng_lat.js:30) atFunction.Tu.convert (lng_lat.js:112) at o.setLngLat (marker.js:258) atBoolean.<anonymous> (edit:868) atFunction.each (bundle.js:1) at add_markers (edit:865) at r.<anonymous> (edit:819) at r.St.fire (...
// Built-in GEO fixer. varinner=makeInner(); var_default={ /** * @param {string} mapName * @param {Object} mapRecord {specialAreas, geoJSON} * @return {Object} {regions, boundingRect} */ load:function(mapName,mapRecord) {