效果:
<script th:inline="javascript" type="text/javascript">
requirejs(['/dchip/js/common.js'],function(){
requirejs(['jquery','swiper','map'],function($,Swiper,BMap){
window.Swiper = Swiper;
requirejs([contextPath + '/js/web/index.js',contextPath + '/js/web/nav.js'])
$(document).ready(function() {
var map = new BMap.Map("homemap"),
points=[{x:116.464885,y:39.998173},{x:113.571976,y:22.37557},{x:113.167736,y:40.996492}],
pointObj = {};
for(var i=0,len=points.length;i<len;i++){
var point = pointObj[i] = new BMap.Point(points[i].x,points[i].y);
map.addOverlay