Hi all,
pmapper 4.3 (Plainlayout4 / swap legend tab)
mapserver 6.2
php 5.3.3-7
Debian server
Trying this plugin into the pmapper default demo.
config_default.xml has been modified following the instructions of the
readme file. (copy/paste without modification)
No additional options are being used (no buttons, no styles, ..). When the
plugin is actived, 2 select boxes are added on top of the map.
Works fine with themes, layers are selected accordingly to what is
specified in the themesAndViews.xml file.
When I try a view, the map refreshes itself with the right layer
(countries), but the extent is not taken into account.
Here is what I've set:
<themeorview>
<type>View</type>
<name>view_test</name>
<description>Switzerland</description>
<layers>
<layer>
<name>countries</name>
<opacity>map</opacity>
</layer>
</layers>
<extent>
<minx>4000000</minx>
<miny>2500000</miny>
<maxx>4350000</maxx>
<maxy>2750000</maxy>
</extent>
</themeorview>
I don't see any error being reported.
Firebug shows the following POSTs:
*POST
http://pmapper430/plugins/themesandviews/x_tavApply.php?&type=view&selected=view_test
*
*-> parameters: selected=view_test and type=view
*
*-> response: {"transparencies":{"countries":70},"extent":"4000000 2500000
4350000 2750000","reload":"1"}*
It looks like the extent is read but not passed on as a parameter.
*POST http://pmapper430/incphp/xajax/x_load.php?&zoom_type=zoompoint*
As you can see, the 'zoompoint' type is chosen.
So I tried to modify the 'if (extent)' test in tav.js (line 373) to 'if
(!(typeof extent == "undefined"))'.
Then I got the following
*POST http://
/pmapper430/incphp/xajax/x_load.php?&zoom_type=zoomextent&extent=null&mode=map
*
'zoomextent' is now selected, but when looking at its response:
*Fatal error: Uncaught exception 'MapScriptException' with message
'mapObj::setExtent() expects parameter 1 to be double
mapObj->setExtent('null', NULL, NULL, NULL)*
There is indeed no extent in the parameters of this POST.
Where should I look to set the extent as a parameter?
Regards,
Chris
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users