如何停用地图缩放属性

时间:2015-07-07 19:36:34

标签: javascript maps zoom

我在地图中遇到有关缩放属性的问题。这笔交易是:我正在开发一个完整的单页循环,我需要插入地图,但是,当你进入地图屏幕的部分并需要向上或向下滚动时,就不会发生这种情况,因为您正在移动缩放而不是页面。

我的js是:

(let [email (mailer {:host "localhost"
                     :port 1025
                     :from "abc@gmail.com"})]
  (streams
    (where (and (service "system_log")
                (not (expired? event)))
      (fixed-time-window
        5
        (smap
          (fn [events]
            (let [count-of-failures (count (filter #(= "IE" (:description %)) events))]
              (event
                {:status "login failures"
                 :metric  count-of-failures 
                 :total-fail (>= count-of-failures 2)})))
          (where (and (= (:status event) "login failures")
                      (:total-fail event))
            (email "hello123@gmail.com")))))))

我认为只需停用缩放即可。我该怎么做?

1 个答案:

答案 0 :(得分:0)

尝试在地图选项中删除它!

 var mapOptions = {
    center: new google.maps.LatLng(-23, -46),
    zoom: 4,
    mapTypeId: google.maps.MapTypeId.HYBRID,
    'controls': {
        'zoom': false
    },
    'gestures': {
        'zoom': false
    }
}