当前位置:网站首页>Baidu map JS browsing terminal
Baidu map JS browsing terminal
2022-06-30 09:07:00 【Dazhi Technology】
Baidu Maps api Code example of :http://lbsyun.baidu.com/jsdemo.htm#i5_1
Baidu Maps API Use
https://www.cnblogs.com/zqzjs/p/5293698.html
Example of company positioning

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../base.jsp"%>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
<!-- Content header -->
<section class="content-header">
<h1>
home page
<small> Company profile </small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> home page </a></li>
<li><a href="#"> Module name </a></li>
<li class="active"> Module function </li>
</ol>
</section>
<!-- Content header /-->
<!-- Body area -->
<section class="content">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"> Module operation </h3>
</div>
<div class="box-body">
<h2> honorific ${
user.companyName}:</h2><br>
<h4> Welcome landing !</h4>
</div>
<%-- Map --%>
<div id="allmap" style="margin: 0 auto; width:900px; height: 400px ">
</div>
<center>${
user.companyName} Contact information :${
user.tes}</center>
<br>
</div>
</section>
<!-- Body area /-->
</div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=ZYzoSPC8AnAZb7ILjv0GY3QLSFaH4CqK"></script>
<script>
//116.635672,40.169419
// Baidu Maps API function
// Baidu Maps API function
var map = new BMap.Map("allmap");
map.enableScrollWheelZoom(); // Enable the scroll wheel to zoom in and out
var point = new BMap.Point(111.670688,40.855635);
var marker = new BMap.Marker(point); // Create annotations
marker.setAnimation(BMAP_ANIMATION_BOUNCE);
map.addOverlay(marker); // Add annotations to the map
map.centerAndZoom(point, 16);
var opts = {
width : 150, // Information window width
height: 80, // Information window height
title : " Hohhot, Inner Mongolia " , // Message window title
enableMessage:true,// Set to allow message window to send short message
message:" Pro resistant , Let's have dinner together in the evening ? Stamp the link below to see the address ~"
}
var infoWindow = new BMap.InfoWindow(" Address : Hohhot, Inner Mongolia The sixth group of companies ", opts); // Create information window object
map.openInfoWindow(infoWindow,point); // Open the message window
</script>
Example Roadmap
边栏推荐
- 关于Lombok的@Data注解
- Esp32 (7): I2S and I2C drivers for function development
- [untitled]
- CUDA realizes L2 European distance
- How to format an UTC date to use the Z (Zulu) zone designator in php?
- Talking about the difference between kotlin collaboration and thread
- Rew acoustic test (III): generate test signal
- vite項目require語法兼容問題解决require is not defined
- Redis design and Implementation (VII) | publish & subscribe
- Esp32 (6): Bluetooth and WiFi functions for function development
猜你喜欢
![[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.](/img/77/eb66ec83b34c251e732d495fbaa951.jpg)
[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.

维基媒体基金会公布新商业产品“维基媒体企业”首批客户

Duplicate entry '2' for key 'primary appears in JPA‘

Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())
![[wechat applet] realize applet pull-down refresh and pull-up loading](/img/23/2668a3a36fd46f63732c753fd6f237.jpg)
[wechat applet] realize applet pull-down refresh and pull-up loading

Flink Exception -- No ExecutorFactory found to execute the application

Introduction to the runner of mmcv

Redis design and Implementation (III) | interaction between server and client (event IO model)

Detailed explanation of pipline of mmdetection

Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
随机推荐
Detectron2 source code reading 2--- using the configurable decorator to build the dataloader
Esp32 things (V): analysis of common API of esp32 of Swiss Army knife
[wechat applet] realize applet pull-down refresh and pull-up loading
Agp7.0|kts makes a reinforced plug-in
asdsadadsad
Interpretation of source code demand:a rotation equivariant detector for aerial object detection
Wikimedia Foundation announces the first customers of its new commercial product "Wikimedia enterprise"
Flink SQL 自定义 Connector
Use of Baidu face recognition API
Vite project require syntax compatibility problem solving require is not defined
The elegant combination of walle and Jianbao
Flink Exception -- No ExecutorFactory found to execute the application
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Advanced technology management -- how managers design and build echelons
酒精测试仪方案:酒精测试仪是根据什么原理测酒精溶度?
Talk about the job experience of kotlin cooperation process
CUDA realizes L2 European distance
Anchorgenerator for mmdet line by line interpretation
CUDA realizes matrix multiplication
Talking about kotlin process exception handling mechanism