Re: [pmapper-users] search one layer

2014-07-23 Thread Bogumił Szady
It works Thanks a lot! Bogumił W dniu 2014-07-23 20:38, Armin Burger pisze: > $.extend(PM.Query, > { > createSearchItems: function(url) { > $.ajax({ > url: url, > dataType: "json", > success: function(response){ > var

Re: [pmapper-users] search one layer

2014-07-23 Thread Bogumił Szady
I suppose some error in brackets (syntax error). I am trying to find... Bogumil W dniu 2014-07-23 20:38, Armin Burger pisze: > Ok, the change event is not applied if no change happens... Try the > following for the custom.js which should also improve the labels and > logic in this case: > > $.ext

Re: [pmapper-users] search one layer

2014-07-23 Thread Bogumił Szady
I have tried and it doesn't work. Like before I have normal "search for" label and then I have to select my one layer to search. :( Bogumił W dniu 2014-07-23 20:38, Armin Burger pisze: > Ok, the change event is not applied if no change happens... Try the > following for the custom.js which shou

Re: [pmapper-users] search one layer

2014-07-23 Thread Armin Burger
Ok, the change event is not applied if no change happens... Try the following for the custom.js which should also improve the labels and logic in this case: $.extend(PM.Query, { createSearchItems: function(url) { $.ajax({ url: url, dataType: "json",

Re: [pmapper-users] search one layer

2014-07-23 Thread Bogumił Szady
Hello, Thanks. I have tried to insert this modification. I see my layer defined, but without white box on the right to put the search attribute. Where is the the problem? best Bogumił W dniu 2014-07-22 23:11, Armin Burger pisze: > not a very elegant solution, but should work: > > add the follo

Re: [pmapper-users] search one layer

2014-07-22 Thread Armin Burger
not a very elegant solution, but should work: add the following block at the end of your /config/[your-config]/custom.js file $.extend(PM.Query, { createSearchItems: function(url) { $.ajax({ url: url, dataType: "json", success: function(res

[pmapper-users] search one layer

2014-07-22 Thread Bogumił Szady
Hello, Is it possible to get one default search field turned on in the moment of starting of application window? I have only one layer to search and I would like to avoid every time selecting layer to search. all the best Bogumił ---