Opened 21 years ago
Closed 20 years ago
#338 closed defect (fixed)
[PHP MapScript] set("template", "") doesn't disable querying
Reported by: | dmorissette | Owned by: | dmorissette |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 4.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
This was posted on the maplab-users list on 2003-06-12: Mike Leahy wrote: > > Regarding the template, using set("template", "") and even > set("template", null) doesn't seem to make a difference. As long as the > TEMPLATE property exists for the layer, it's objects will be highlighted > in the queried image. The only solution I see is to not have the > TEMPLATE property in the MapFile. The small problem that I see here is > that once I add the template property to a layer to make it active for > querying, I can't remove the property...perhaps there is some kind of > workaround, or maybe this will be an option in future versions of > MapScript? >
Change History (3)
comment:2 by , 21 years ago
The template parameter is checked for NULL not for an empty string (should do both obviously). With swig it's not too bad since the is a way to set pointers to NULL via the scripting language. So I updated msIsLayerQueryable to check for NULL and zero length template strings. Should fix this problem but I'll let you guys close it out... Steve
comment:3 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In the 4.1 (CVS) version it is now possible to set("template", null), that fixes the issue for the PHP MapScript interface.
Note:
See TracTickets
for help on using tickets.