1. "insert open": {
    2. "prefix": "open",
    3. "body": [
    4. "<!DOCTYPE html>",
    5. "<html lang=\"en\">",
    6. "<head>",
    7. "\t<meta charset=\"UTF-8\">",
    8. "\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
    9. "\t<title>Document</title>",
    10. "\t<script src=\"./dist/include-openlayers-local.js\"></script>",
    11. "\t<script src=\"./map/gao.js\"></script>",
    12. "\t<link rel=\"stylesheet\" href=\"./css/map.css\">",
    13. "</head>",
    14. "<body>",
    15. "\t<div id=\"map\">",
    16. "\t</div>",
    17. "<script>",
    18. "\tvar map = new ol.Map({",
    19. "\t\ttarget:\"map\",",
    20. "\t\tlayers:[gaodeVector],",
    21. "\t\tview:new ol.View({",
    22. "\t\t\tprojection:'EPSG:4326',",
    23. "\t\t\tcenter:[114.30,30.50],",
    24. "\t\t\tzoom:4",
    25. "\t\t})",
    26. "\t})",
    27. "</script>",
    28. "</body>",
    29. "</html>"
    30. ],
    31. "description": "insert openlayer"
    32. }