当前位置:网站首页>Tencent map circle
Tencent map circle
2022-07-06 14:02:00 【Little boy, handsome Yang Shaoping】
1: Coordinate pick-up address https://lbs.qq.com/getPoint/
2: Online code running address https://lbs.qq.com/webDemoCenter/javascriptV2/polygon/circleRadius
3: legend

4: Code
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title> Dynamically change the radius of a circle </title>
<style type="text/css">
html,body{
width:100%;
height:100%;
}
#container{
width:100%;
height:90%;
}
*{
margin:0px;
padding:0px;
}
body, button, input, select, textarea {
font: 12px/16px Verdana, Helvetica, Arial, sans-serif;
}
#info {
margin-top: 10px;
}
</style>
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77"></script>
</script>
<script>
function init(){
var center=new qq.maps.LatLng(36.070299,120.370787);
var map=new qq.maps.Map(document.getElementById("container"),{
center:center,
zoom:14
});
// Set the color and transparency of the circular cover rgba
var circle_color = new qq.maps.Color(
Number(2),
Number(3),
Number(4),
0.1);
var circle=new qq.maps.Circle({
map:map,
center:center,
radius:300,
fillColor:circle_color,
strokeWeight:2
});
var radius=300;
setInterval(function(){
circle.setRadius(radius);
radius=radius+100;
if(radius>1000){
radius=300;
};
},5000);
}
window.οnlοad=init;
</script>
</head>
<body οnlοad="init()">
<div id="container"></div>
<div id="info">
<p> every other 500 The radius of the millisecond circular cover changes once .</p>
</div>
</body>
</html>
边栏推荐
- Matlab opens M file garbled solution
- [dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i
- Attach the simplified sample database to the SQLSERVER database instance
- Renforcer les dossiers de base de l'apprentissage
- 7-11 机工士姆斯塔迪奥(PTA程序设计)
- xray与burp联动 挖掘
- 7-1 输出2到n之间的全部素数(PTA程序设计)
- 【数据库 三大范式】一看就懂
- 扑克牌游戏程序——人机对抗
- 2022泰迪杯数据挖掘挑战赛C题思路及赛后总结
猜你喜欢

Thoroughly understand LRU algorithm - explain 146 questions in detail and eliminate LRU cache in redis

Relationship between hashcode() and equals()

【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...

【VMware异常问题】问题分析&解决办法

xray与burp联动 挖掘

强化学习系列(一):基本原理和概念

撲克牌遊戲程序——人機對抗

Differences among fianl, finally, and finalize

. How to upload XMIND files to Jinshan document sharing online editing?

Mixlab unbounded community white paper officially released
随机推荐
简述xhr -xhr的基本使用
【Numpy和Pytorch的数据处理】
强化学习基础记录
【头歌educoder数据表中数据的插入、修改和删除】
Experiment five categories and objects
强化学习基础记录
Hackmyvm target series (6) -videoclub
QT meta object qmetaobject indexofslot and other functions to obtain class methods attention
A piece of music composed by buzzer (Chengdu)
7-7 7003 组合锁(PTA程序设计)
[MySQL table structure and integrity constraint modification (Alter)]
【educoder数据库实验 索引】
Experiment 7 use of common classes
xray与burp联动 挖掘
Nuxtjs quick start (nuxt2)
Callback function ----------- callback
Write a program to simulate the traffic lights in real life.
强化學習基礎記錄
HackMyvm靶機系列(3)-visions
Intensive literature reading series (I): Courier routing and assignment for food delivery service using reinforcement learning