douyinghuo8874 2015-07-22 05:09
浏览 106

在OpenStreetMap中保持页面刷新的缩放级别状态

In reference to the Open Street Map for Heatmap tutorial in this link

http://www.d3noob.org/2014/02/generate-heatmap-with-leafletheat-and.html

I want to know how could I keep the state of zoom level when I refresh the page. Suppose I changed the blur value via $_POST and the page refreshes then I go back to the default zoom(10). But I want to be at the same zoom level I was when I just wanted to change the blur value.

  • 写回答

1条回答 默认 最新

  • dongtang6681 2015-07-27 09:22
    关注

    Use leaflet.hash

    http://mlevans.github.io/leaflet-hash/

    So the zoom and the position are saved in the window.hash object

    评论

报告相同问题?

悬赏问题

  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元