map.getView().on('change:resolution',checkZoom);//checkZoom为调用的函数

 function checkZoom() {
// alert("1");
// var childId;
console.log(map.getView().getZoom());
if (map.getView().getZoom() == 11) {
// console.log(vector.getSource().getFeatures()[0].getProperties().CODE);
// childId = vector.getSource().getFeatures()[0].getProperties().CODE;
// vector.setVisible(false);
lastVectorShow(); }
}

最新文章

  1. 【原】AFNetworking源码阅读(五)
  2. 使用Flask设计带认证token的RESTful API接口[翻译]
  3. NPOI支持excel2003和excel2007
  4. 静态成员函数(面向对象的static关键字)
  5. Win8.1屏幕亮度自动调节关闭方法
  6. Xcode的内存清理
  7. 设置TextView文字居中
  8. POJ3697+BFS+hash存边
  9. /etc/passwd 结构
  10. 手动修复OneDrive的DNS污染屏蔽的方法
  11. BZOJ 1005 明明的烦恼
  12. 浅析document.createDocumentFragment()与js效率
  13. JavaScript Date对象介绍
  14. Android破解学习之路(三)——Android游戏 切水果破解
  15. pandas中的分组技术
  16. Jmeter中正则表达式提取器使用详解
  17. HDU-5705
  18. LeetCode算法题-Robot Return to Origin(Java实现)
  19. 经度和纬度在SQL中的数据类型
  20. [20181204]低版本toad 9.6直连与ora-12505.txt

热门文章

  1. Redis in Action 文章投票
  2. Mybatis与Spring整合,使用了maven管理项目,作为初学者觉得不错,转载下来
  3. adv钓鱼题
  4. Spring整理
  5. java中类继承,到底继承了什么?
  6. CSS3媒体查询能检测到的特性小结
  7. Material Design学习笔记
  8. windows + python + dlib
  9. 启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099;
  10. PostgreSQL 磁盘使用大小监控