数据可视化-D3js-展示古地理图和古地理坐标反算^_^gplates古地理坐标反算接口

在线演示

<!DOCTYPE html>
<html>
<head>
    <link type="image/png" rel="icon" href="//portal.gplates.org/static/img/GPlates-icon.png">
    <meta charset="utf-8">
    <style>
        path {
            stroke: blue;
            stroke-width: 0.25px;
            fill: grey;
        }

        circle {
            fill: red;
        }

        svg {
            border: solid black 1px;
            display: block;
            margin: 0px auto;
            margin-bottom:20px;
        }

        .pathPoint{
            fill: red;
        }

        .graticule {
            fill: none;
            stroke: #777;
            stroke-width: .5px;
            stroke-opacity: .5;
        }

        .RG{
            fill: none;
            stroke-width: 1px;
            stroke: red;
        }

        .coastline{
            fill-opacity: 0.5;
        }

    </style>
</head>
<body data-view-name=points>
    <div style="width:960px; text-align: center; margin:0 auto;"><h1 id="time-label" style="font-size:3em;margin:0;">140 Ma</h1></div>
    <div style="width:962px; overflow:hidden; margin:0 auto;">
        <svg style="width:960px; height:500px;"></svg>
        <div style="text-align:center;">
            <label>Time:</label>
            <input id="recon-time" type="number" min="0" step="1" max="550" value="140" style="margin-right:10px;"/>
            <label>Projection:</label> 
            <select id="select-projection" style="margin-right:10px;">
                <option value="orthographic" >Orthographic</option>
                <option value="equirectangular" selected>Rectangular</option>
            </select>
            <label style="display:none;">Function:</label>
            <select id="select-function" style="display:none;">
                <option value="1" selected>Reconstruct Points</option>
                <option value="2" >Reconstruct Feature Collection</option>
            </select>
            <br><br>
            <textarea id="args-textarea" rows="2" cols="100">116,39,151,-33, -74, 40, 37, 55, -43,-22, 18, 14</textarea>
            <br><br>
            <input type="button" id="commit" value="Refresh Map"/>
            <!--<input type="button" id="show-url" value="Show Request URL"/>
            <input type="button" id="show-data" value="Show Returned Raw Data"/>-->
        </div>       <br> 
        <div id="request-url"></div><br>
        <div id="raw-data"></div>
    </div>

    <script src="http://cdn.bootcss.com/jquery/2.2.2/jquery.min.js"></script>
    <script src="http://d3js.org/d3.v3.js"></script>
    <script src="http://d3js.org/topojson.v1.min.js"></script>

    <script>

        // 定义数据
        var default_fc = {
            "type": "FeatureCollection",
            "features": [{
                "type": "Feature",
                "geometry": {
                    "type": "Polygon",
                    "coordinates": [
                        [
                            [
                                128,
                                -17
                            ],
                            [
                                133,
                                -18
                            ],
                            [
                                138,
                                -19
                            ],
                           
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值