@@ -193,16 +193,28 @@ function handleLayerMouseenter(e, layerId) {
193193
194194 mapObj .getCanvas ().style .cursor = ' pointer'
195195 const coords = feature .geometry .coordinates .slice ()
196- const locatieId = feature .properties ? .locatie_id || ' Unknown'
197- const peilfilterIds = feature .properties ? .peilfilter_ids || ' '
196+ const locatienaamMaster = feature .properties ? .locatienaam_master
197+ const locatieId = feature .properties ? .locatie_id
198+ const peilfilterNaams = feature .properties ? .peilfilternaams || ' '
198199
199- // Parse peilfilter IDs (comma-separated string)
200- const peilfilterList = peilfilterIds
201- ? peilfilterIds .split (' ,' ).map ((id ) => id .trim ())
200+ // Parse peilfilter Naams (comma-separated string)
201+ const peilfilterList = peilfilterNaams
202+ ? peilfilterNaams .split (' ,' ).map ((id ) => id .trim ())
202203 : []
203204
204- // Build HTML content
205- let htmlContent = ` <div>Locatie ID: <strong>${ locatieId} </strong></div>`
205+ // Build HTML content for Locatie ID
206+ let locatieIdHtml = ' Locatie ID: '
207+ if (locatienaamMaster) {
208+ locatieIdHtml += ` <strong>${ locatienaamMaster} </strong>`
209+ if (locatieId) {
210+ locatieIdHtml += ` (${ locatieId} )`
211+ }
212+ } else if (locatieId) {
213+ locatieIdHtml += ` <strong>${ locatieId} </strong>`
214+ } else {
215+ locatieIdHtml += ' <strong>Unknown</strong>'
216+ }
217+ let htmlContent = ` <div>${ locatieIdHtml} </div>`
206218
207219 if (peilfilterList .length > 0 ) {
208220 const label =
0 commit comments