博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
搜狗给地图打点
阅读量:6905 次
发布时间:2019-06-27

本文共 2025 字,大约阅读时间需要 6 分钟。

///通过司机list在地图上打点

<c:if test="${!empty DriverList}">
<c:forEach var="driver" items="${DriverList}" varStatus="statu">
<c:choose>
<c:when test="${statu.index+1==1}">
type="S1890";
</c:when>
<c:when test="${statu.index+1==2}">
type="S1891";
</c:when>
<c:when test="${statu.index+1==3}">
type="S1892";
</c:when>
<c:when test="${statu.index+1==4}">
type="S1893";
</c:when>
<c:when test="${statu.index+1==5}">
type="S1894";
</c:when>
<c:when test="${statu.index+1==6}">
type="S1895";
</c:when>
<c:when test="${statu.index+1==7}">
type="S1896";
</c:when>
<c:when test="${statu.index+1==8}">
type="S1897";
</c:when>
<c:when test="${statu.index+1==9}">
type="S1898";
</c:when>
<c:when test="${statu.index+1==10}">
type="S1899";
</c:when>
<c:otherwise>
type="${pageContext.request.contextPath }/jsp/map/images/style/0-1.gif";
</c:otherwise>
</c:choose>
/// myPoint = new EMOTTE.maps.Point(${NumberTools.stringToLong(driver.longitude)/1e2},${NumberTools.stringToLong(driver.latitude)/1e2});
myPoint = new EMOTTE.maps.Point(${(driver.longitude) / 100000},${(driver.latitude) / 100000});
var name = "${driver.driverName}";
marker${statu.index} = new EMOTTE.maps.Marker({
map: map,
position: myPoint,
label:{visible:true,align:"TOP"},
title: name,
styleId: type
});
EMOTTE.maps.event.addListener(marker${statu.index}, 'click', function()
{
///var id = "${NumberTools.stringToLong(driver.id) }";
var id = "${driver.id}";
if(null==id||id=="")return;
window.parent.document.getElementById("showMember4ADinner").innerHTML="读取中";
var req=new XMLHttpRequest();
if (req) {
req.onreadystatechange=function() {
if (req.readyState==4 && req.status==200) {
if (null == req.responseText || "" == req.responseText) {
return;
}
window.parent.document.getElementById("showMember4ADinner").innerHTML = req.responseText;
}
}
req.open('POST','/EdjDriver.do?action=findDriverById');
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
req.send("drId="+id);
}
});
</c:forEach>
</c:if>

转载于:https://www.cnblogs.com/zrfmmhy/p/4152884.html

你可能感兴趣的文章
5.4 获取单例
查看>>
Callable,Runnable比较及用法
查看>>
asp.net中使用ueditor 1.3.6上传图片问题
查看>>
人生选择方向太重要!三年后的你,会怎么样?现在选择下吧。
查看>>
Ajax 无刷新在注册用户名时的应用的代码
查看>>
android--graphics
查看>>
Bring Your Charts to Life with HTML5 Canvas and JavaScript
查看>>
页面状态保持机制(编辑中)
查看>>
兼容的动态加载JS【原】
查看>>
再议 js 数字格式之正则表达式
查看>>
微价值:专訪个人开发人员800万用户之《系统清道夫》
查看>>
在多台服务器上简单实现Redis的数据主从复制(3)(转载)
查看>>
关于 redis、memcache、mongoDB 的对比(转载)
查看>>
iOS改变UINavigationBar导航条标题颜色和字体
查看>>
远程桌面不能复制粘贴解决办法
查看>>
lucene 查询的使用
查看>>
UVA 10539 - Almost Prime Numbers(数论)
查看>>
C语言中.h和.c文件解析(很精彩)
查看>>
Android L开发指南
查看>>
ARM指令系统
查看>>