Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  wikifarm  Login

mapObj.freeQuery

mapObj.freeQuery メソッド

説明

この地図の問い合わせ結果をクリアする

public void freeQuery(
   int qlayer
);
Public Sub freeQuery(ByVal qlayer As Integer)

サンプル

コード
Dim _map As New mapObj("")
Dim _layer As New layerObj(_map)

_layer.template = "template.html"
_layer.queryByAttributes(_map, "NAME", "United States", mapscript.MS_MULTIPLE)
With _map.querymap
   .style = MS_QUERYMAP_STYLES.MS_HILITE
   .status = mapscript.MS_ON
End With
_img = _map.prepareImage
_layer.drawQuery(_map, _img)
_map.freeQuery(_layer.index)
マップファイル
 QUERYMAP
   COLOR 255 255 0
   SIZE -1 -1
   STATUS ON
   STYLE HILITE
 END

 LAYER
   DATA "countries_simpl"
   LABELITEM "NAME"
     METADATA
     END
   NAME "World"
   SIZEUNITS PIXELS
   STATUS DEFAULT
   TEMPLATE "template.html"
   TOLERANCEUNITS PIXELS
   TYPE POLYGON
   UNITS METERS
   CLASS
     LABEL
       ANGLE 0.000000
       ANTIALIAS TRUE
       FONT "msgothic"
       MAXSIZE 256
       MINSIZE 4
       SIZE 12
       TYPE TRUETYPE
       BUFFER 0
       COLOR 0 0 0
       ENCODING "SJIS"
       FORCE FALSE
       MINDISTANCE 0
       MINFEATURESIZE -1
       OFFSET 0 0
       PARTIALS TRUE
       POSITION CL
     END
     METADATA
     END
     STYLE
       ANGLE 360
       COLOR 200 200 200
       OUTLINECOLOR 100 100 100
       SYMBOL 0
     END
   END
 END

参照

mapObj メンバ | (global) 名前空間

Last modified:2007/02/15 15:17:40
Keyword(s):
References:[mapObj メンバ]