Documentation Versions: Lizmap 3.8 Lizmap 3.7 Lizmap 3.6 Lizmap 3.5 Lizmap 3.4 Lizmap 3.3 Lizmap 3.2 Lizmap 3.1/3.0/2.x
LIZMAP
3.8
  • はじめに
  • ユーザーガイド
  • 公開ガイド‎
    • ‎クイックスタート‎
    • Lizmap QGISプラグイン‎
    • Layer Properties
    • 設定
      • ‎Web用のQGISプロジェクトを準備する‎
      • Project thumbnail
      • Project properties
      • ‎凡例
      • 地物情報
      • ‎メディア‎
      • ‎QGISの表現
      • 印刷/ファイル出力
      • ‎空間検索‎
      • Permalink
        • Zoom on an object when opening the map
      • ‎最適化‎
    • Publish the map
    • ‎カスタマイズ‎
  • 管理者ガイド
  • Lizmapのインストールとアップグレード
  • Lizmap Cloud
Lizmap
  • 公開ガイド‎
  • 設定
  • Permalink
  • View page source

Permalink

目次

  • Permalink

    • Zoom on an object when opening the map

Zoom on an object when opening the map

Some URL parameters are available to be able to zoom in on one or more objects and display their popup:

  • layer, layer name in WFS and WMS services

  • filter, layer filter to initiate the zoom

  • popup=true, boolean to display the popup(s) of the filtered objects

The layer and filter parameters will be used for WFS and WMS type queries, so make sure that these are well compatible with the 2 types of services.

For instance, we would like to reuse the map of Montpellier showing cadastral by providing a customized link opening the popup from the Park of Peyrou in the city center.

This park has 340172000BX0079 for its unique ID in the field geo_parcelle, layer parcelle.

Therefore, we need to add in the URL above :

layer=parcelle
filter=%22geo_parcelle%22%20%3D%20%27340172000BX0079%27
popup=true

It gives this final result :

https://demo.lizmap.com/lizmap/index.php/view/map?repository=miscellaneous&project=flatgeobuf&layer=parcelle&filter=%22geo_parcelle%22%20%3D%20%27340172000BX0079%27&popup=true

For your information, we can have the value of the filter with the help of the JavaScript console in your web browser F12 :

encodeURIComponent("\"geo_parcelle\" = '340172000BX0079'")`

Tip

You should check other URL parameters which can be in the URL already. They can alter the behavior of the described feature, for instance bbox=.

Previous Next

© Copyright 2014-2025, 3liz.

Built with Sphinx using a theme provided by Read the Docs.