You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
2 weeks ago
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5346],{33069:function(e,t,o){var n=o(64132),r=o(12739),i=o(91118),l=o(41376),a=o(54354),w=o(77138),y=o(720),c=o(69039),s=o(77975),u=o(95783),g=o(79847),Z=o(41372),p=o(42010),d=new w.Z({radius:5,fill:null,stroke:new y.Z({color:"red",width:1})}),m={Point:new c.ZP({image:d}),LineString:new c.ZP({stroke:new y.Z({color:"green",width:1})}),MultiLineString:new c.ZP({stroke:new y.Z({color:"green",width:1})}),MultiPoint:new c.ZP({image:d}),MultiPolygon:new c.ZP({stroke:new y.Z({color:"yellow",width:1}),fill:new s.Z({color:"rgba(255, 255, 0, 0.1)"})}),Polygon:new c.ZP({stroke:new y.Z({color:"blue",lineDash:[4],width:3}),fill:new s.Z({color:"rgba(0, 0, 255, 0.1)"})}),GeometryCollection:new c.ZP({stroke:new y.Z({color:"magenta",width:2}),fill:new s.Z({color:"magenta"}),image:new w.Z({radius:10,fill:null,stroke:new y.Z({color:"magenta"})})}),Circle:new c.ZP({stroke:new y.Z({color:"red",width:2}),fill:new s.Z({color:"rgba(255,0,0,0.2)"})})},P=new u.Z({features:(new i.Z).readFeatures({type:"FeatureCollection",crs:{type:"name",properties:{name:"EPSG:3857"}},features:[{type:"Feature",geometry:{type:"Point",coordinates:[0,0]}},{type:"Feature",geometry:{type:"LineString",coordinates:[[4e6,-2e6],[8e6,2e6]]}},{type:"Feature",geometry:{type:"LineString",coordinates:[[4e6,2e6],[8e6,-2e6]]}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[-5e6,-1e6],[-3e6,-1e6],[-4e6,1e6],[-5e6,-1e6]]]}},{type:"Feature",geometry:{type:"MultiLineString",coordinates:[[[-1e6,-75e4],[-1e6,75e4]],[[1e6,-75e4],[1e6,75e4]],[[-75e4,-1e6],[75e4,-1e6]],[[-75e4,1e6],[75e4,1e6]]]}},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[-5e6,6e6],[-3e6,6e6],[-3e6,8e6],[-5e6,8e6],[-5e6,6e6]]],[[[-2e6,6e6],[0,6e6],[0,8e6],[-2e6,8e6],[-2e6,6e6]]],[[[1e6,6e6],[3e6,6e6],[3e6,8e6],[1e6,8e6],[1e6,6e6]]]]}},{type:"Feature",geometry:{type:"GeometryCollection",geometries:[{type:"LineString",coordinates:[[-5e6,-5e6],[0,-5e6]]},{type:"Point",coordinates:[4e6,-5e6]},{type:"Polygon",coordinates:[[[1e6,-6e6],[3e6,-6e6],[2e6,-4e6],[1e6,-6e6]]]}]}}]})});P.addFeature(new r.Z(new n.Z([5e6,7e6],1e6)));var f=new Z.Z({source:P,style:function(e){return m[e.getGeometry().getType()]}});new l.Z({layers:[new p.Z({source:new g.Z}),f],target:"map",view:new a.ZP({center:[0,0],zoom:2})})}},function(e){var t=function(t){return e(e.s=t)};t(9877),t(33069)}]);
|
||
|
//# sourceMappingURL=geojson.js.map
|