mapicgc-gl-js 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/mapicgc-gl.css +290 -0
- package/dist/mapicgc-gl.js +352 -60
- package/dist/mapicgc-gl.umd.js +352 -60
- package/dist/style.css +1 -0
- package/docu_Map.md +0 -0
- package/package.json +5 -2
- package/public/mapicgc-gl.css +290 -0
- package/src/map/Map.js +384 -239
- package/test/index.html +28 -26
package/README.md
CHANGED
package/dist/mapicgc-gl.css
CHANGED
|
@@ -546,6 +546,7 @@ a.maplibregl-ctrl-logo.maplibregl-compact {
|
|
|
546
546
|
padding: 15px 10px;
|
|
547
547
|
pointer-events: auto;
|
|
548
548
|
position: relative;
|
|
549
|
+
word-wrap: break-word !important
|
|
549
550
|
}
|
|
550
551
|
.maplibregl-popup-anchor-top-left .maplibregl-popup-content {
|
|
551
552
|
border-top-left-radius: 0;
|
|
@@ -1176,4 +1177,293 @@ h4::selection {
|
|
|
1176
1177
|
background-position: initial;
|
|
1177
1178
|
background-size: 75%;
|
|
1178
1179
|
background-position: center;
|
|
1180
|
+
}
|
|
1181
|
+
.maplibregl-export-list{
|
|
1182
|
+
display: none;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
/* Basics */
|
|
1187
|
+
.maplibregl-ctrl-geocoder,
|
|
1188
|
+
.maplibregl-ctrl-geocoder *,
|
|
1189
|
+
.maplibregl-ctrl-geocoder *:after,
|
|
1190
|
+
.maplibregl-ctrl-geocoder *:before {
|
|
1191
|
+
box-sizing: border-box;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.maplibregl-ctrl-geocoder {
|
|
1195
|
+
font-size: 18px;
|
|
1196
|
+
line-height: 24px;
|
|
1197
|
+
font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
1198
|
+
position: relative;
|
|
1199
|
+
background-color: #fff;
|
|
1200
|
+
width: 100%;
|
|
1201
|
+
min-width: 240px;
|
|
1202
|
+
z-index: 1;
|
|
1203
|
+
border-radius: 4px;
|
|
1204
|
+
transition: width 0.25s, min-width 0.25s;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.maplibregl-ctrl-geocoder--input {
|
|
1208
|
+
font: inherit;
|
|
1209
|
+
width: 100%;
|
|
1210
|
+
border: 0;
|
|
1211
|
+
background-color: transparent;
|
|
1212
|
+
margin: 0;
|
|
1213
|
+
height: 50px;
|
|
1214
|
+
color: #404040; /* fallback */
|
|
1215
|
+
color: rgba(0, 0, 0, 0.75);
|
|
1216
|
+
padding: 6px 45px;
|
|
1217
|
+
text-overflow: ellipsis;
|
|
1218
|
+
white-space: nowrap;
|
|
1219
|
+
overflow: hidden;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.maplibregl-ctrl-geocoder--input::-ms-clear {
|
|
1223
|
+
display: none; /* hide input clear button in IE */
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.maplibregl-ctrl-geocoder--input:focus {
|
|
1227
|
+
color: #404040; /* fallback */
|
|
1228
|
+
color: rgba(0, 0, 0, 0.75);
|
|
1229
|
+
outline: 0;
|
|
1230
|
+
box-shadow: none;
|
|
1231
|
+
outline: thin dotted;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.maplibregl-ctrl-geocoder .maplibregl-ctrl-geocoder--pin-right > * {
|
|
1235
|
+
z-index: 2;
|
|
1236
|
+
position: absolute;
|
|
1237
|
+
right: 8px;
|
|
1238
|
+
top: 7px;
|
|
1239
|
+
display: none;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.maplibregl-ctrl-geocoder,
|
|
1243
|
+
.maplibregl-ctrl-geocoder .suggestions {
|
|
1244
|
+
box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/* Collapsed */
|
|
1248
|
+
.maplibregl-ctrl-geocoder.maplibregl-ctrl-geocoder--collapsed {
|
|
1249
|
+
width: 50px;
|
|
1250
|
+
min-width: 50px;
|
|
1251
|
+
transition: width 0.25s, min-width 0.25s;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/* Suggestions */
|
|
1255
|
+
.maplibregl-ctrl-geocoder .suggestions {
|
|
1256
|
+
background-color: #fff;
|
|
1257
|
+
border-radius: 4px;
|
|
1258
|
+
left: 0;
|
|
1259
|
+
list-style: none;
|
|
1260
|
+
margin: 0;
|
|
1261
|
+
padding: 0;
|
|
1262
|
+
position: absolute;
|
|
1263
|
+
width: 100%;
|
|
1264
|
+
top: 110%; /* fallback */
|
|
1265
|
+
top: calc(100% + 6px);
|
|
1266
|
+
z-index: 1000;
|
|
1267
|
+
overflow: hidden;
|
|
1268
|
+
font-size: 15px;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
.maplibregl-ctrl-bottom-left .suggestions,
|
|
1272
|
+
.maplibregl-ctrl-bottom-right .suggestions {
|
|
1273
|
+
top: auto;
|
|
1274
|
+
bottom: 100%;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
.maplibregl-ctrl-geocoder .suggestions > li > a {
|
|
1278
|
+
cursor: default;
|
|
1279
|
+
display: block;
|
|
1280
|
+
padding: 6px 12px;
|
|
1281
|
+
color: #404040;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.maplibregl-ctrl-geocoder .suggestions > .active > a,
|
|
1285
|
+
.maplibregl-ctrl-geocoder .suggestions > li > a:hover {
|
|
1286
|
+
color: #404040;
|
|
1287
|
+
background-color: #f3f3f3;
|
|
1288
|
+
text-decoration: none;
|
|
1289
|
+
cursor: pointer;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
.maplibregl-ctrl-geocoder--suggestion {
|
|
1293
|
+
display: flex;
|
|
1294
|
+
flex-direction: row;
|
|
1295
|
+
align-items: center;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.maplibre-ctrl-geocoder--suggestion-icon {
|
|
1299
|
+
min-width: 30px;
|
|
1300
|
+
min-height: 24px;
|
|
1301
|
+
max-width: 30px;
|
|
1302
|
+
max-height: 24px;
|
|
1303
|
+
padding-right: 12px;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.maplibregl-ctrl-geocoder--suggestion-info {
|
|
1307
|
+
display: flex;
|
|
1308
|
+
flex-direction: column;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.maplibregl-ctrl-geocoder--suggestion-match {
|
|
1312
|
+
font-weight: bold;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.maplibregl-ctrl-geocoder--suggestion-title,
|
|
1316
|
+
.maplibregl-ctrl-geocoder--suggestion-address {
|
|
1317
|
+
text-overflow: ellipsis;
|
|
1318
|
+
overflow: hidden;
|
|
1319
|
+
white-space: nowrap;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
.maplibregl-ctrl-geocoder--result {
|
|
1323
|
+
display: flex;
|
|
1324
|
+
flex-direction: row;
|
|
1325
|
+
align-items: center;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.maplibre-ctrl-geocoder--result-icon {
|
|
1329
|
+
min-width: 30px;
|
|
1330
|
+
min-height: 24px;
|
|
1331
|
+
max-width: 30px;
|
|
1332
|
+
max-height: 24px;
|
|
1333
|
+
padding-right: 12px;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
.maplibregl-ctrl-geocoder--result-title {
|
|
1337
|
+
font-weight: bold;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.maplibregl-ctrl-geocoder--result-title,
|
|
1341
|
+
.maplibregl-ctrl-geocoder--result-address {
|
|
1342
|
+
text-overflow: ellipsis;
|
|
1343
|
+
overflow: hidden;
|
|
1344
|
+
white-space: nowrap;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/* Icons */
|
|
1348
|
+
.maplibregl-ctrl-geocoder--icon {
|
|
1349
|
+
display: inline-block;
|
|
1350
|
+
vertical-align: middle;
|
|
1351
|
+
speak: none;
|
|
1352
|
+
fill: #757575;
|
|
1353
|
+
top: 15px;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.maplibregl-ctrl-geocoder--icon-search {
|
|
1357
|
+
position: absolute;
|
|
1358
|
+
top: 13px;
|
|
1359
|
+
left: 12px;
|
|
1360
|
+
width: 23px;
|
|
1361
|
+
height: 23px;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.maplibregl-ctrl-geocoder--button {
|
|
1365
|
+
padding: 0;
|
|
1366
|
+
margin: 0;
|
|
1367
|
+
border: none;
|
|
1368
|
+
cursor: pointer;
|
|
1369
|
+
background: #fff;
|
|
1370
|
+
line-height: 1;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.maplibregl-ctrl-geocoder--icon-close {
|
|
1374
|
+
width: 20px;
|
|
1375
|
+
height: 20px;
|
|
1376
|
+
margin-top: 8px;
|
|
1377
|
+
margin-right: 3px;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.maplibregl-ctrl-geocoder--button:hover .maplibregl-ctrl-geocoder--icon-close {
|
|
1381
|
+
fill: #909090;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.maplibregl-ctrl-geocoder--icon-loading {
|
|
1385
|
+
width: 26px;
|
|
1386
|
+
height: 26px;
|
|
1387
|
+
margin-top: 5px;
|
|
1388
|
+
margin-right: 0px;
|
|
1389
|
+
-moz-animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
|
|
1390
|
+
-webkit-animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
|
|
1391
|
+
animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/* Animation */
|
|
1395
|
+
@-webkit-keyframes rotate {
|
|
1396
|
+
from {
|
|
1397
|
+
-webkit-transform: rotate(0);
|
|
1398
|
+
transform: rotate(0);
|
|
1399
|
+
}
|
|
1400
|
+
to {
|
|
1401
|
+
-webkit-transform: rotate(360deg);
|
|
1402
|
+
transform: rotate(360deg);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
@keyframes rotate {
|
|
1407
|
+
from {
|
|
1408
|
+
-webkit-transform: rotate(0);
|
|
1409
|
+
transform: rotate(0);
|
|
1410
|
+
}
|
|
1411
|
+
to {
|
|
1412
|
+
-webkit-transform: rotate(360deg);
|
|
1413
|
+
transform: rotate(360deg);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* Media queries*/
|
|
1418
|
+
@media screen and (min-width: 640px) {
|
|
1419
|
+
.maplibregl-ctrl-geocoder.maplibregl-ctrl-geocoder--collapsed {
|
|
1420
|
+
width: 36px;
|
|
1421
|
+
min-width: 36px;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
.maplibregl-ctrl-geocoder {
|
|
1425
|
+
width: 33.3333%;
|
|
1426
|
+
font-size: 15px;
|
|
1427
|
+
line-height: 20px;
|
|
1428
|
+
max-width: 360px;
|
|
1429
|
+
}
|
|
1430
|
+
.maplibregl-ctrl-geocoder .suggestions {
|
|
1431
|
+
font-size: 13px;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.maplibregl-ctrl-geocoder--icon {
|
|
1435
|
+
top: 8px;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.maplibregl-ctrl-geocoder--icon-close {
|
|
1439
|
+
width: 16px;
|
|
1440
|
+
height: 16px;
|
|
1441
|
+
margin-top: 3px;
|
|
1442
|
+
margin-right: 0;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.maplibregl-ctrl-geocoder--icon-search {
|
|
1446
|
+
left: 7px;
|
|
1447
|
+
width: 20px;
|
|
1448
|
+
height: 20px;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
.maplibregl-ctrl-geocoder--input {
|
|
1452
|
+
height: 36px;
|
|
1453
|
+
padding: 6px 35px;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
.maplibregl-ctrl-geocoder--icon-loading {
|
|
1457
|
+
width: 26px;
|
|
1458
|
+
height: 26px;
|
|
1459
|
+
margin-top: -2px;
|
|
1460
|
+
margin-right: -5px;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
.maplibre-gl-geocoder--error {
|
|
1464
|
+
color: #909090;
|
|
1465
|
+
padding: 6px 12px;
|
|
1466
|
+
font-size: 16px;
|
|
1467
|
+
text-align: center;
|
|
1468
|
+
}
|
|
1179
1469
|
}
|