|
||||
[maplab-users] MapEdit preview problem - empty legend & blank map.Paul Spencer spencer@dmsolutions.caMon, 17 Mar 2003 09:48:42 -0500
|
I should note that the bug was not in PHP MapScript. Apparently if you call file_exists( "" ); with an empty path it returns true. This test was being used to determine if a valid template was already set and was returning true when a template was not set at all. This fix will be in the final 2.0 release. Appologies to MapScript guys for suggesting that there was a bug ;) Cheers, Paul Paul Spencer wrote: > All, > > I thought that someone on the list had mentioned this problem, I can't > remember who and can't seem to find the email. We have discovered it > also. The problem is when you open the preview in MapEdit, your legend > has no layers in it and any navigation ends up with a blank map. > Interestingly, closing the preview and opening it again will display the > map once more (still no layers in the legend and navigating again turns > them off). > > This problem is due to a small bug in MapScript when trying to > programmatically set the value of legend->template when there is no > value to begin with. > > The work-around is to always place a value in the legend -> template > object. The value is immaterial since it is overwritten with the > legend_template.html from the mapedit directory. But the value must be > there to be overwritten. > > This bug appears to be in all 3.6 versions of MapScript, not sure about > 3.7 since mapedit won't really work with 3.7 anyway. > > Cheers, > > Paul -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |