Summary: | [Chameleon - Widget] MapDHTML widget drawmap error | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Paul Spencer <pspencer@dmsolutions.ca> |
Component: | Widget | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jacob.delfos@maunsell.com |
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | 1.99 beta 4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
The latest change introduced the capability to have persistent queries. I found that I have an un-committed change to drawmap.php that may fix this problem. Essentially drawmap.php is currently always using drawQuery but it should only be using drawQuery if a persistent query was found. I am not sure what the interaction between draw, drawQuery, and the QueryMap object is. I suspect that I should probably modify the QueryMap object temporarily (at least it's size) before doing a drawQuery. I will also check the nWidget / nHeight problem. The LegendTemplate thing is a separate issue unrelated to drawmap I think.
if this isn't fixed by beta 3 then we'll need to address it for RC1. Jacob, did you try with latest CVS?
Yes, I did. Sorry, forgot to mention. I tested it with the sept 30 version of drawmap. I don't get any PHP errors in my log, but it still gets the size from the querymap in the mapfile, ignoring the size of the actual mapobject. I managed to get my templates to work again, but I have to use an absolute URL now. I found the previous solution easier, because I don't like hardcoding the servername (I tend to move sites across laptops and pc's a lot). It still doesn't get the height and width from the POST variables, but this is not a major disaster; version 1.0.4 didn't do this by default either, and it's easy for me to change if I want to. For some reason, when I update from the CVS, I don't get the folder /chameleon/htdocs/common at all. I use wincvs, which says: cvs update -P -d It happened since the CVS was restructured. I started off with a clean copy. Jacob
Was the drawmap.php file updated since sept 30? If it was, then I did not use the latest version (sorry, my mistake).
Got latest version now after some messing about. ....don't like CVS..... All is happy; height and width using POST parameters works, templates work, mapsize no longer coming from querymap size. Sorry for the overload of messages.
no problem :> cvs question replied to via list.