One way would be to use some simple AJAX code to get the counts from MapServer via a mode=nquery and display that information on the page. There are probably ways to ensure it doesn't have to happen for each pan/zoom action too although it gets tricky with reloading pages. A dhtml, load once, page can make much easier since you could trigger the AJAX call for a count update when the person/entity values change.
Steve >>> DjwStone <[EMAIL PROTECTED]> 10/11/2006 9:10:59 AM >>> I'm developing a CGI MapServer application using MapServer 4.8.3. The mapfile defines several layers which display symbols representing the location of entities associated with specific people. The user interface allows the type of entity and person to be selected. The type of entity will determine which layer is displayed; the person chosen will be applied to the layer by run-time substitution, and so will affect the number of points returned in the layer. All this works just fine. What I need to do now is to present, along with the result map, a count of the number of points returned. It's a useability thing - if the user has zoomed the map in and then browsed for some entity/person combination, the points returned quite likely lie outside the frame of the result map. So it's handy to know if there were any hits before going to the trouble of trying to locate them! I thought displaying [nr] was the answer, but it always returns zero, presumably because this is happening in browse mode rather than query. Any clues how to proceed gratefully accepted. Cheers, Dave -- View this message in context: http://www.nabble.com/Counting-browse-hits-tf2423455.html#a6756412 Sent from the Mapserver - User mailing list archive at Nabble.com.
