Re: [pmapper-users] Clear POIs data in a sesstion

2010-01-12 Thread i-boy
Thank you very much, everything work fine, I thing this function is very
useful for who want to show/clear temporary Annotations on the map :-)

BTW, thanks for your recommend about using custom.js in config/default
folder, much much more convenient than edit the compress JS file =))


On Wed, Jan 13, 2010 at 2:24 AM, Armin Burger wrote:
>
> 'reloadMap' is a JavaScript function,
>
> the call
> unset($_SESSION['url_points']);
>
> is PHP code... mixing both will not work... ;-)
>
>
> try using
>
> PM.setSessionVar('url_points', 'null');
>
> I'd recommend that you do not change this in the Javascript files
> directly but that you add it in a *.js file under your config directory,
> like
>
>
> $.extend(PM.Map,
> {
> /**
>  * Reload application
>  */
> reloadMap: function(remove) {
> var mapurl = PM_XAJAX_LOCATION +
> 'x_load.php?'+SID+'&zoom_type=zoompoint';
> if (remove) {
> mapurl += '&resultlayer=remove';
> PM.extentSelectedFeatures = null;
> PM.setSessionVar('url_points', 'null');
> }
> this.updateMap(mapurl);
> }
> });
>
>
> In order for this to work correctly you will also need to replace the
> file 'incphp/xajax/x_setsessionvar.php' with the one from SVN trunk:
>
>
> http://svn.pmapper.net/trac/browser/pmapper/trunk/pmapper/incphp/xajax/x_setsessionvar.php?format=raw
>
>
> armin
>
>
> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Clear POIs data in a sesstion

2010-01-11 Thread i-boy
Hi all !

When I use Add POI tool, it remains until I start a new session (close the
brower), so I try to clear POIs data when still remain in the current
session.

I had changed in pm.map.js (and the compress file pm_cjs.js too)


reloadMap: function(remove) {
...
PM.extentSelectedFeatures = null;
// new line
unset($_SESSION['url_points']);
...

but it returned an error.

Thanks for you help!
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Search 2 (or more) fields with same data column

2010-01-04 Thread i-boy
Thanks you Armin, it works great !

I have updated Docs at the end of "trac/wiki/DocManualsearch" with this:

---

For search multi-items in one database column:
- In file "search.php" => function: "getSearchParameters()" change $operator
from "AND" to "OR"
- Use "alias" for the search column, ex:

{{{





  ...



}}}

---
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Search 2 (or more) fields with same data column

2010-01-03 Thread i-boy
Hi lists,


I defined a search item like this:

--

___
__
__
___

--

and changed in " search.php => getSearchParameters() "  operator "AND" to
"OR"

it works fine when search fields in different DB column but when use same
column name (as above), it only found the last field.


Can I edit some file to make it (search multi item in one database column)
work ?


Thanks a lot !!
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Multiple search items in a layer ?

2009-12-16 Thread i-boy
Hi all,


I want to show multiple selection areas (hi-lighted) on the map like when
search and found a polygon (I'm using MapInfo .TAB layer data).

I found PM can show multiple hi-lighted items, ex: when I input id "1079",
it found "10791" "10792" "10793" and hi-lighted them all;


So I try to do my goal by modify PM Search function.

I found that the search begin in pm.search.js with:
 setSearchInput() 
and the url is:  var url = PM_XAJAX_LOCATION + 'x_search.php?' + SID
+'&action=searchitem&searchitem=' + searchitem;


Can I made some changes to input multiple items in ONE search (ex:
itemA, itemB, itemC, ...)

, or to search continued but still remain the previous hi-light (ex: search
itemA --> show on map, then search itemB --> show on map both A & B, ... and
go on) ??


Thanks,

i-boy
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users