Skip to content

problem with highlight wmsTiledLayer (line type only) #19

@bitSurvey

Description

@bitSurvey

hello,

i have try bootleaf for a week and it's look fantastic.
one features that i like is highlight objects.
I used geoserver and store data using shapefile directory with WMS and WFS service enable.
I can use identify and query features too.
I can highlight wmsTiledLayer with this code:

"highlightStyle": {
		"weight": 2,
		"opacity": 1,
		"color": 'white',
		"dashArray": '3',
		"fillOpacity": 0.5,
		"fillColor": '#fff32c',
		"stroke": true,
	}

but i dont know why it's only work on point and polygon type of shapefiles and not on line type of shapefiles??.

here is my point and line type on layer config:

{
	        "id": "bridge_geo",
			"name": "Bridge",
			"url": "/proxied_geoserver/geoserver/shapefiles_dir/wms",
			"type": "wmsTiledLayer",
			"layers": "bridge_geo",
			"EPSG": 4326,
			"format": "image/png",
			"transparent": true,
			"useCors": true,
			"geomField": "the_geom",
			//"showHighlight": true,
			"maxZoom": 22,
            "showOnTop": true,
            "queryWidget": {
				"queries" : [
			{"name": "bridge_id", "alias": "Bridge Id", "type": "numeric", "defaultOperator": "="}
				]
			},
			"identify": {
				"layerName": "bridge_geo",
				"layerLabel": "Bridge",
				"primaryField": "bridge_id",
				//"buffer": 10,
				"outFields": [
				{"name": "Id", "hidden": true},
    				{"name": "bridge_id", "alias": "Bridge Id"},
    				{"name": "POINT_X", "alias": "Longitude"},
    				{"name": "POINT_Y", "alias": "Latitude"}
				],
	            "maxAllowableOffset": 0.01
			},
			"outFields": [
    				{"name": "Id", "hidden": true},
    				{"name": "bridge_id", "alias": "Bridge Id"},
    		],
            "visible": false,
    },

{
		"id": "roads_new_geo",
		"name": "Roads",
		"url": "/proxied_geoserver/geoserver/shapefiles_dir/wms",
		"type": "wmsTiledLayer",
		"layers": "roads_new_geo",
		"EPSG": 4326,
		"format": "image/png",
		"transparent": true,
		"useCors": true,
		"geomField": "the_geom",
		//"showHighlight": true,
		"maxZoom": 22,
		//"style": {
		//		"stroke": true,
		//		//"fillColor": "#e31a1c",
		//		//"fillOpacity": 0.5,
		//		"radius": 10,
		//		"weight": 2,
		//		"opacity": 1,
		//		"color": '#e31a1c',
		"queryWidget": {
			"queries" : [
				{"name": "name", "alias": "Road Name", "defaultOperator": "contains"},
			]
		},
		"identify": {
			"layerName": "roads_new_geo",
			"layerLabel": "Roads",
			"primaryField": "name",
			"outFields": [
				{"name": "name", "alias": "Road Name"},
				{"name": "status", "alias": "Road Stat"},
			],
			"maxAllowableOffset": 0.01
		},
		"outFields": [
				{"name": "name", "alias": "Road Name"},
				{"name": "status", "alias": "Road Stat"},
			],
		"visible": false,
}

enable showHighlight to true not given any different.

any help or suggestion please?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions