高德地图js api点击地图拾取坐标效果代码

代码语言:html

所属分类:其他

代码描述:高德地图js api点击地图拾取坐标效果代码

代码标签: api 点击 地图 拾取 坐标 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>鼠标拾取地图坐标</title>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>
</head>
<style type="text/css">
    html,body {
        width: 100%;
        height: 100%;
        margin: 0px;
    }
    .map {
        height: 100%;
        width: 100%;
        float: left;
    }
</style>
<body>
    <div id="container" class="map"></div>
    <div class="input-card">
        <h4>左击获取经纬度:</h4>
        <div class="input-item">
            &.........完整代码请登录后点击上方下载按钮下载查看

网友评论0