2019-06-11 16:01:16 +03:00
|
|
|
import AbstractGeoJsonOverlay from './AbstractGeoJsonOverlay.js';
|
2019-02-27 17:50:23 +03:00
|
|
|
|
2019-06-11 16:01:16 +03:00
|
|
|
export default AbstractGeoJsonOverlay.extend({
|
2019-09-18 12:53:58 +03:00
|
|
|
initialize: function() {
|
|
|
|
AbstractGeoJsonOverlay.prototype.initialize.call(this, "xpprotector");
|
2019-02-27 17:50:23 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
createFeature: function(protector){
|
|
|
|
return {
|
|
|
|
"type":"Feature",
|
|
|
|
"geometry": {
|
|
|
|
"type":"Polygon",
|
|
|
|
"coordinates":[[
|
2024-06-06 20:23:14 +03:00
|
|
|
[protector.x-5 + 0.5,protector.z-5 + 0.5],
|
|
|
|
[protector.x-5 + 0.5,protector.z+6 + 0.5],
|
|
|
|
[protector.x+6 + 0.5,protector.z+6 + 0.5],
|
|
|
|
[protector.x+6 + 0.5,protector.z-5 + 0.5],
|
|
|
|
[protector.x-5 + 0.5,protector.z-5 + 0.5]
|
2019-02-27 17:50:23 +03:00
|
|
|
]]
|
|
|
|
},
|
|
|
|
"properties":{
|
|
|
|
"name": protector.attributes.xpthreshold,
|
|
|
|
"popupContent": protector.attributes.xpthreshold
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|