Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@h21-map/google-drawing-manager

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@h21-map/google-drawing-manager - npm Package Compare versions

Comparing version 4.0.6 to 5.0.1

104

index.js

@@ -34,3 +34,4 @@

google.maps.event.trigger(me, 'draw:zoom_map', me.map.getZoom());
})
});
};

@@ -377,2 +378,4 @@

let positions = [];
let arrayArea = {};
let id = null;
if (!me.isMoreArea) {

@@ -386,6 +389,13 @@ for (var n = 0; n < me._area.getPath().getArray().length; n++) {

positions.push(position);
id = 0;
}
arrayArea = {
id: id,
positions,
}
return arrayArea;
}
else {
me.polygonArea.forEach((key) => {
me.polygonArea.forEach((key, value) => {
let latLng = [];

@@ -399,2 +409,3 @@ for (var n = 0; n < key.getPath().getArray().length; n++) {

latLng.push(position);
id = value;
}

@@ -404,5 +415,9 @@ positions.push(latLng);

arrayArea = {
id: id,
positions,
}
}
return positions;
return arrayArea;
},

@@ -473,3 +488,86 @@

DrawingManager.prototype._bindCircle = function () {
let me = this;
var geo = {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"srid": "4326",
"id": "6868982",
"name": "Borisovo",
"localname": "Борисово",
"official_name": "",
"boundary": "adminstrative",
"admin_level": "8",
"note": "",
"wikidata": "",
"wikipedia": "",
"timestamp": "2018-04-10 04:41:39",
"rpath": "6868982,2589373,2572240,53293,0",
"alltags": {
"name": "Борисово",
"place": "village",
"name:en": "Borisovo",
"boundary": "administrative",
"int_name": "Borisovo",
"admin_level": "8"
}
},
"geometry": { "type": "MultiPolygon", "coordinates": [[[[22.807593, 41.410738], [22.808733, 41.411482], [22.810793, 41.412125], [22.813969, 41.412769], [22.814827, 41.413155], [22.817436, 41.413566], [22.818131, 41.412222], [22.81796, 41.411707], [22.81796, 41.410677], [22.818475, 41.409132], [22.818646, 41.408875], [22.818947, 41.408714], [22.819805, 41.408971], [22.820191, 41.408746], [22.820191, 41.408617], [22.820492, 41.408392], [22.821264, 41.408327], [22.822166, 41.407909], [22.822251, 41.407265], [22.82311, 41.406493], [22.823367, 41.405978], [22.823367, 41.405591], [22.823024, 41.405205], [22.823024, 41.404883], [22.823238, 41.404658], [22.824034, 41.403998], [22.825597, 41.404747], [22.825747, 41.404772], [22.825753, 41.404727], [22.826619, 41.404814], [22.826633, 41.404733], [22.826715, 41.400827], [22.827144, 41.399089], [22.827144, 41.398188], [22.82723, 41.398123], [22.82723, 41.397415], [22.8268, 41.396127], [22.8262, 41.395226], [22.826543, 41.394003], [22.826629, 41.392586], [22.826929, 41.392232], [22.827272, 41.392232], [22.827745, 41.391942], [22.82826, 41.391427], [22.82826, 41.391169], [22.828517, 41.390719], [22.829075, 41.3903], [22.829676, 41.390107], [22.82989, 41.389946], [22.830491, 41.389173], [22.830834, 41.388529], [22.830834, 41.387692], [22.831435, 41.386147], [22.831435, 41.385889], [22.831778, 41.385309], [22.831778, 41.385052], [22.831349, 41.384472], [22.831349, 41.383571], [22.832036, 41.382798], [22.832036, 41.382154], [22.831693, 41.381446], [22.831778, 41.380608], [22.831607, 41.380029], [22.830577, 41.377453], [22.830405, 41.375842], [22.830062, 41.37507], [22.829976, 41.373008], [22.829547, 41.371527], [22.829719, 41.369917], [22.829375, 41.368307], [22.829375, 41.365601], [22.829118, 41.364441], [22.829118, 41.363797], [22.829719, 41.361994], [22.82989, 41.358773], [22.829976, 41.358708], [22.829976, 41.357098], [22.829633, 41.355422], [22.829118, 41.353876], [22.828002, 41.351621], [22.828002, 41.351041], [22.829547, 41.348142], [22.829375, 41.345307], [22.830405, 41.342149], [22.83092, 41.340989], [22.831607, 41.339829], [22.831778, 41.338863], [22.831778, 41.33796], [22.831141, 41.336045], [22.830967, 41.335992], [22.830694, 41.335899], [22.830418, 41.335815], [22.830142, 41.335722], [22.829865, 41.335639], [22.82959, 41.335546], [22.829314, 41.335462], [22.829037, 41.335378], [22.828758, 41.335294], [22.828477, 41.335219], [22.828194, 41.335153], [22.827904, 41.335105], [22.827607, 41.335066], [22.827306, 41.335045], [22.827005, 41.335042], [22.826709, 41.335057], [22.826414, 41.335081], [22.826122, 41.335132], [22.825831, 41.335183], [22.825539, 41.335243], [22.825251, 41.335303], [22.824975, 41.335391], [22.824681, 41.335442], [22.824381, 41.335474], [22.824086, 41.335481], [22.823808, 41.335424], [22.82354, 41.335313], [22.823273, 41.335202], [22.823008, 41.335082], [22.822732, 41.335016], [22.822426, 41.335004], [22.822113, 41.335028], [22.821826, 41.335088], [22.821603, 41.335203], [22.821441, 41.335399], [22.821279, 41.335605], [22.821066, 41.335756], [22.820825, 41.335889], [22.820569, 41.336012], [22.820307, 41.336126], [22.820041, 41.336223], [22.819754, 41.336292], [22.819467, 41.336352], [22.819187, 41.33643], [22.81891, 41.336517], [22.818636, 41.336605], [22.818355, 41.336692], [22.818079, 41.336788], [22.817846, 41.336921], [22.817663, 41.337099], [22.817518, 41.337296], [22.817405, 41.337511], [22.817363, 41.337736], [22.817332, 41.337969], [22.817214, 41.338166], [22.81703, 41.338336], [22.816827, 41.338496], [22.816608, 41.338656], [22.81638, 41.338806], [22.81615, 41.338957], [22.8157, 41.339259], [22.815447, 41.3394], [22.815206, 41.339551], [22.815023, 41.339711], [22.814955, 41.339909], [22.815017, 41.340143], [22.815118, 41.34037], [22.815275, 41.340578], [22.815462, 41.340797], [22.815554, 41.340987], [22.815737, 41.340929], [22.816844, 41.342536], [22.816844, 41.342987], [22.816629, 41.343341], [22.812209, 41.35117], [22.817445, 41.361285], [22.817531, 41.362573], [22.817788, 41.363862], [22.818732, 41.371334], [22.819118, 41.371624], [22.819891, 41.371559], [22.820578, 41.371302], [22.821264, 41.371559], [22.825642, 41.371624], [22.825985, 41.371559], [22.826457, 41.371914], [22.826371, 41.372236], [22.825985, 41.372461], [22.819548, 41.372461], [22.818947, 41.372654], [22.818389, 41.373137], [22.817531, 41.375005], [22.817531, 41.375649], [22.817788, 41.3761], [22.818818, 41.376937], [22.81899, 41.377259], [22.819076, 41.378354], [22.819419, 41.37932], [22.819591, 41.380544], [22.819247, 41.381446], [22.818646, 41.382347], [22.817874, 41.38312], [22.817445, 41.383764], [22.817445, 41.384408], [22.81693, 41.385567], [22.816844, 41.386726], [22.816672, 41.387113], [22.816672, 41.388079], [22.81693, 41.388529], [22.81693, 41.389044], [22.816071, 41.389882], [22.816071, 41.39001], [22.816586, 41.390461], [22.816672, 41.390654], [22.816501, 41.391169], [22.816071, 41.391684], [22.8159, 41.39265], [22.815471, 41.393359], [22.815471, 41.393809], [22.815127, 41.39484], [22.814612, 41.395741], [22.814527, 41.396707], [22.814012, 41.397286], [22.814097, 41.397995], [22.813497, 41.398638], [22.813582, 41.399347], [22.812724, 41.400312], [22.812552, 41.401664], [22.81281, 41.40263], [22.812724, 41.404175], [22.812295, 41.405205], [22.811694, 41.406106], [22.811522, 41.407716], [22.811136, 41.40807], [22.810879, 41.408134], [22.810492, 41.408424], [22.809548, 41.410098], [22.807593, 41.410738]]]] }
}, {
"type": "Feature",
"properties": {
"srid": "4326",
"id": "455539",
"name": "Orekhovo-Borisovo Severnoye District",
"localname": "район Орехово-Борисово Северное",
"official_name": "",
"boundary": "adminstrative",
"admin_level": "8",
"note": "",
"wikidata": "Q1962775",
"wikipedia": "ru:Орехово-Борисово Северное",
"timestamp": "2018-04-10 11:56:42",
"rpath": "455539,1282181,102269,1029256,60189,0",
"alltags": {
"name": "район Орехово-Борисово Северное",
"name:be": "Арэхава-Барысава Паўночнае",
"name:en": "Orekhovo-Borisovo Severnoye District",
"name:ru": "район Орехово-Борисово Северное",
"alt_name": "муниципальный округ Орехово-Борисово Северное",
"boundary": "administrative",
"wikidata": "Q1962775",
"wikipedia": "ru:Орехово-Борисово Северное",
"addr:region": "Москва",
"admin_level": "8",
"description": "район — административно-территориальная единица; муниципальный округ — тип муниципального образования (с 1 июля 2012)",
"addr:country": "RU",
"official_status": "ru:внутригородская территория города федерального значения"
}
},
"geometry": { "type": "MultiPolygon", "coordinates": [[[[37.671285, 55.620028], [37.673054, 55.621212], [37.67412, 55.622008], [37.675669, 55.623168], [37.677329, 55.624551], [37.678398, 55.625397], [37.680915, 55.6274], [37.684047, 55.630022], [37.684663, 55.630668], [37.68521, 55.631462], [37.68556, 55.632286], [37.686857, 55.636014], [37.686955, 55.636341], [37.687069, 55.636634], [37.687227, 55.636623], [37.687405, 55.636657], [37.687556, 55.636723], [37.687742, 55.636694], [37.687886, 55.636519], [37.688038, 55.636291], [37.688087, 55.636121], [37.688218, 55.635914], [37.688274, 55.635777], [37.68833, 55.635628], [37.688417, 55.635392], [37.688459, 55.635292], [37.688592, 55.635111], [37.688816, 55.634921], [37.689212, 55.634772], [37.68937, 55.634593], [37.689461, 55.63454], [37.689533, 55.634513], [37.689588, 55.63447], [37.689984, 55.634374], [37.690335, 55.634253], [37.690508, 55.634119], [37.69054, 55.633994], [37.690378, 55.63393], [37.690228, 55.633875], [37.690162, 55.633851], [37.689926, 55.633801], [37.689503, 55.633677], [37.689435, 55.633588], [37.689476, 55.633205], [37.690174, 55.632419], [37.689662, 55.628834], [37.68978, 55.628465], [37.690075, 55.62815], [37.690856, 55.627962], [37.691965, 55.627932], [37.69279, 55.627921], [37.693984, 55.628135], [37.696092, 55.628979], [37.701764, 55.62961], [37.702357, 55.629717], [37.704424, 55.629784], [37.707345, 55.630747], [37.7095, 55.630943], [37.709941, 55.630965], [37.715895, 55.631204], [37.728373, 55.630865], [37.729099, 55.630764], [37.729004, 55.630678], [37.729438, 55.6306], [37.729663, 55.630507], [37.729781, 55.630095], [37.72953, 55.629587], [37.729593, 55.629524], [37.729407, 55.629548], [37.729135, 55.629539], [37.728952, 55.629457], [37.728839, 55.62935], [37.728414, 55.62887], [37.728314, 55.628707], [37.727909, 55.627955], [37.727399, 55.627102], [37.72739, 55.627088], [37.727347, 55.626961], [37.727361, 55.626788], [37.727451, 55.626489], [37.727486, 55.625962], [37.728442, 55.625925], [37.728678, 55.625834], [37.728764, 55.625725], [37.728684, 55.624598], [37.728163, 55.624362], [37.728021, 55.624329], [37.727756, 55.624279], [37.727798, 55.624114], [37.7278, 55.623922], [37.727804, 55.623357], [37.727807, 55.622999], [37.727783, 55.622357], [37.727702, 55.62171], [37.727702, 55.621488], [37.727702, 55.621338], [37.72769, 55.620238], [37.727702, 55.619965], [37.727725, 55.619647], [37.727739, 55.619519], [37.727746, 55.61937], [37.727789, 55.61916], [37.727835, 55.618958], [37.727922, 55.618606], [37.728085, 55.617933], [37.72813, 55.61781], [37.728233, 55.61748], [37.728326, 55.617222], [37.7284, 55.617029], [37.728643, 55.616445], [37.728848, 55.615989], [37.729107, 55.615463], [37.729346, 55.61499], [37.729606, 55.614478], [37.729666, 55.614359], [37.730238, 55.613247], [37.73037, 55.613015], [37.730159, 55.612983], [37.729592, 55.612898], [37.726359, 55.612363], [37.726313, 55.612355], [37.726177, 55.612333], [37.724502, 55.612064], [37.723224, 55.611867], [37.722141, 55.6117], [37.721905, 55.611663], [37.719125, 55.611223], [37.718231, 55.611072], [37.717874, 55.611012], [37.717581, 55.610964], [37.717293, 55.610915], [37.716938, 55.610858], [37.716605, 55.610802], [37.716125, 55.61072], [37.715485, 55.610617], [37.713112, 55.610234], [37.712706, 55.610168], [37.710924, 55.609876], [37.710781, 55.609854], [37.709396, 55.609661], [37.709145, 55.609621], [37.708866, 55.609582], [37.705099, 55.608953], [37.704938, 55.608928], [37.703766, 55.608721], [37.703471, 55.608663], [37.702548, 55.608447], [37.702363, 55.608407], [37.701784, 55.608242], [37.701215, 55.608053], [37.700939, 55.607953], [37.700102, 55.607635], [37.699973, 55.607579], [37.699774, 55.607475], [37.699137, 55.607953], [37.698636, 55.607723], [37.698793, 55.607615], [37.698014, 55.607226], [37.697834, 55.607333], [37.697759, 55.607293], [37.697478, 55.607442], [37.697235, 55.607299], [37.697291, 55.60702], [37.697317, 55.606934], [37.697195, 55.606791], [37.697501, 55.606494], [37.697226, 55.606449], [37.696946, 55.60644], [37.696645, 55.606504], [37.696431, 55.606478], [37.696173, 55.606427], [37.69591, 55.606339], [37.695675, 55.606304], [37.69554, 55.60626], [37.695579, 55.606212], [37.695714, 55.606104], [37.695809, 55.605873], [37.695467, 55.605717], [37.694921, 55.605691], [37.694555, 55.605667], [37.694187, 55.605691], [37.693548, 55.605752], [37.692529, 55.606177], [37.691885, 55.606989], [37.691406, 55.606907], [37.691342, 55.606978], [37.691299, 55.607027], [37.691195, 55.607144], [37.690552, 55.607295], [37.690058, 55.607289], [37.6895, 55.607386], [37.688964, 55.607635], [37.688352, 55.607738], [37.687869, 55.607888], [37.687751, 55.607925], [37.687705, 55.607975], [37.687612, 55.608077], [37.687322, 55.608047], [37.686689, 55.608035], [37.686518, 55.60798], [37.686266, 55.608055], [37.68577, 55.608198], [37.685042, 55.60851], [37.684555, 55.608842], [37.684267, 55.608945], [37.683923, 55.609051], [37.683316, 55.609253], [37.681921, 55.609771], [37.681008, 55.609954], [37.680531, 55.610099], [37.680111, 55.611216], [37.679885, 55.611693], [37.67952, 55.612014], [37.677883, 55.614249], [37.678128, 55.615815], [37.678095, 55.616075], [37.677736, 55.617898], [37.67778, 55.618234], [37.678063, 55.618294], [37.678302, 55.618381], [37.67923, 55.619291], [37.680043, 55.621454], [37.68011, 55.621695], [37.676974, 55.621997], [37.676647, 55.622009], [37.676327, 55.621983], [37.675967, 55.621924], [37.675635, 55.621834], [37.675356, 55.621727], [37.675106, 55.621598], [37.674781, 55.621305], [37.673948, 55.620519], [37.673498, 55.620083], [37.673152, 55.619768], [37.673069, 55.619694], [37.672756, 55.619563], [37.672533, 55.619524], [37.672425, 55.619529], [37.671941, 55.619744], [37.671565, 55.619923], [37.671388, 55.619983], [37.671285, 55.620028]]]] }
}]
}
// var o = {
// "strokeColor": "#FF7800",
// "strokeOpacity": 1,
// "strokeWeight": 2,
// "fillColor": "#46461F",
// "fillOpacity": 0.25,
// editable: true,
// draggable: true,
// clickable: true,
// geodesic: true
// }
// vector = new GeoJSON(geo, o);
me.map.data.addGeoJson(geo);
// this.api.data.addGeoJson()
// let me = this;
me._removeCircle();

@@ -476,0 +574,0 @@

2

package.json
{
"name": "@h21-map/google-drawing-manager",
"scope": "@h21-map",
"version": "4.0.6",
"version": "5.0.1",
"description": "A library of Google Map JS API",

@@ -6,0 +6,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc