Open bitSurvey opened 5 years ago
I'm glad you find it useful!
I haven't tried highlighting a line layer so I'm not sure why it's not working, sorry. In the demo there is a USA Railways layer that I tried to test this on, and it looks like it has been locked down now, so the layer doesn't work anymore.
I'll see if I can find another line layer to test it on - I'll let you know the outcome.
Hi we are using this great framework but we have the same problem as exposed by BITSURVEY. In on.mouseover we would like the showHighlight function to highlight the geometry. Even forcing the style on queryJSON I don't get a highlight.
I haven't looked at Bootleaf for many years, and I'm pretty busy now so won't have a chance to look into it - so unfortunately I don't have any suggestions. Please post back if you find any solutions!
Hello, I'm only answering now that I've had time to solve the problem of highlighting the linestring or Multilinestring layers. In this point of the app.js to the function showHighlight(feature, zoom) it was enough simply to replace in "type" Linestring with MultiLineString. ... } else if (geometryType === 'MultiLineString') { jsonGeometry = { "type": "LineString", "coordinates": [geometry.coordinates[0]] }; } ... Greetings
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:
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:
enable showHighlight to true not given any different.
any help or suggestion please?.