当前位置:网站首页>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>
边栏推荐
猜你喜欢

7-7 7003 combination lock (PTA program design)

Relationship between hashcode() and equals()

Experiment 6 inheritance and polymorphism

Harmonyos JS demo application development

Principles, advantages and disadvantages of two persistence mechanisms RDB and AOF of redis

深度强化文献阅读系列(一):Courier routing and assignment for food delivery service using reinforcement learning

Nuxtjs快速上手(Nuxt2)

FAQs and answers to the imitation Niuke technology blog project (II)

A comprehensive summary of MySQL transactions and implementation principles, and no longer have to worry about interviews

Hackmyvm target series (6) -videoclub
随机推荐
【数据库 三大范式】一看就懂
Experiment 7 use of common classes
[during the interview] - how can I explain the mechanism of TCP to achieve reliable transmission
网络层—简单的arp断网
7-8 7104 约瑟夫问题(PTA程序设计)
About the parental delegation mechanism and the process of class loading
Leetcode. 3. Longest substring without repeated characters - more than 100% solution
强化学习基础记录
Analysis of penetration test learning and actual combat stage
Custom RPC project - frequently asked questions and explanations (Registration Center)
Simply understand the promise of ES6
Mode 1 two-way serial communication is adopted between machine a and machine B, and the specific requirements are as follows: (1) the K1 key of machine a can control the ledi of machine B to turn on a
Hackmyvm target series (6) -videoclub
附加简化版示例数据库到SqlServer数据库实例中
Yugu p1012 spelling +p1019 word Solitaire (string)
实验七 常用类的使用
1. Preliminary exercises of C language (1)
Reinforcement learning series (I): basic principles and concepts
实验八 异常处理
强化学习基础记录