当前位置:网站首页>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>
边栏推荐
- JS several ways to judge whether an object is an array
- [data processing of numpy and pytoch]
- [modern Chinese history] Chapter 6 test
- 中间件漏洞复现—apache
- 2. First knowledge of C language (2)
- 7-4 散列表查找(PTA程序设计)
- Difference and understanding between detected and non detected anomalies
- 实验九 输入输出流(节选)
- 【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...
- 7-15 h0161. 求最大公约数和最小公倍数(PTA程序设计)
猜你喜欢
Difference and understanding between detected and non detected anomalies
7-5 走楼梯升级版(PTA程序设计)
canvas基础1 - 画直线(通俗易懂)
FAQs and answers to the imitation Niuke technology blog project (III)
Nuxtjs快速上手(Nuxt2)
7-7 7003 combination lock (PTA program design)
HackMyvm靶机系列(3)-visions
(original) make an electronic clock with LCD1602 display to display the current time on the LCD. The display format is "hour: minute: Second: second". There are four function keys K1 ~ K4, and the fun
2022 Teddy cup data mining challenge question C idea and post game summary
[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
随机推荐
Middleware vulnerability recurrence Apache
7-6 矩阵的局部极小值(PTA程序设计)
Experiment 9 input and output stream (excerpt)
This time, thoroughly understand the MySQL index
[graduation season · advanced technology Er] goodbye, my student days
实验七 常用类的使用
Implementation principle of automatic capacity expansion mechanism of ArrayList
自定义RPC项目——常见问题及详解(注册中心)
实验四 数组
HackMyvm靶机系列(6)-videoclub
搭建域环境(win)
MATLAB打开.m文件乱码解决办法
Poker game program - man machine confrontation
强化学习基础记录
[data processing of numpy and pytoch]
Experiment five categories and objects
4. Branch statements and loop statements
Strengthen basic learning records
Strengthen basic learning records
js判断对象是否是数组的几种方式