the numbers stand for the integer of the layer type:
0: point
1: line
2: polygon

4 should be an annotation layer. I don't understand why you would want 
the query enabled for this layer type. If not needed then remove the 
TEMPLATE ... tag for it. Otherwise add a template layer 'highlight_4' to 
the template map file. Or just change the settings to simple highlight 
function instead.

armin

On 23/06/2009 15:24, Chris Green wrote:
> Hi Armin
> 
> One further problem, hopefully simple. I had all working well until I
> started to define searches, which I did in config_default.xml. The searches
> do work, but now the map will no longer load (even after deleting cookies,
> rebooting, etc.) I have a php error "getLayerByName failed for : highlight_4
> in C:\ms4w\apps\pmapper\pmapper-4.0.beta2\incphp\map\map.php on line 728". I
> can see that highlight layers 0, 1, and 2 are defined in template.map but
> there is no highlight_4 defined there which I assume is causing the problem
> but I can't see a way to fix it since I did not modify template.map and I
> can't find anywhere else that this may be defined.
> 
> Are you able to help one more time please?
> 
> 
> Chris
> 
> -----Original Message-----
> From: Armin Burger [mailto:armin.bur...@gmail.com] 
> Sent: Monday, June 22, 2009 10:54 PM
> To: chris.gr...@ibstv.co.uk
> Cc: pmapper-users@lists.sourceforge.net
> Subject: Re: [pmapper-users] Pmapper -4.0.beta2 and php error_log
> 
> On 22/06/2009 22:26, Chris Green wrote:
>> Hi Armin
>>
>> Thanks very much for the reply. I started again with a new installation of
>> ms4W which resolved all of my problems with the php error_log and getting
>> the pmapperv4 demo running. So far so good, but one problem remaining when
> I
>> modify the demo data on which I hope you or someone can help.
>>
>> I have changed the layer definitions in the map file and in
>> config_default.xml, and copied my own data into pmapper_demodata. The demo
>> runs and everything appears except the map, where the loading bar hangs
>> indefinitely. Moving the scale slider provokes a php error, which is:
>> PHP Warning:  getLayerByName failed for : cities10000eu in
>> C:\ms4w\apps\pmapper\pmapper-4.0.beta2\incphp\map\map.php on line 708  
>>
>> There is obviously still some reference to the original demo layer
>> cities10000eu somewhere, but I have looked everywhere and can't find it.
> Any
>> suggestions what I should do to overcome this (hopefully last) problem
>> please?
>>
>>
>> Chris Green
>>   
> 
> try:
> 
> - Check the complete xml config file for the string 'cities10000eu'
> - delete all cookies in your browser
> - force reload the application (Ctrl-F5)
> 
> My guess is a remaining session entry for an old selection... MS4W uses 
> cookies for sessions, so sessions can be persistent (I always recommend 
> to disable this for p.mapper, at least in the development phase with 
> lots of modifications).
> 
> armin
> 
> 
> 
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 


------------------------------------------------------------------------------
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to