は私にGeoJSONの図である。取得にGeoJSONプロパティ
var point_layer_WGS84_dist = {
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "x": 7.6789651, "y": 48.5066953, "distCoupe": 10000, "path": "coupes_10000_14995\\PM_10000.png" }, "geometry": { "type": "Point", "coordinates": [ 7.6789651, 48.5066953 ] } },
{ "type": "Feature", "properties": { "x": 7.6788011, "y": 48.5063054, "distCoupe": 10045, "path": "coupes_10000_14995\\PM_10045.png" }, "geometry": { "type": "Point", "coordinates": [ 7.6788011, 48.5063054 ] } },
私はにGeoJSONファイルから情報を取得したい、私はHTML のようなpossibiltyがあると思っリンクされていること:
var feat = point_layer_WGS84_dist.getFeatureByPropertie("distCoupe",'10000')
var imageLocation = feat.path
は、
リーフレットにアクセスするにはどうしたらいいですか?
を普通のJSオブジェクトと同じようにアクセスします。ドット表記法または角カッコ表記のいずれかを使用します。 – evolutionxbox