Hi Thomas,

it works nicely as you suggested.

Many thanks again,

Michael


allspatial wrote:
> 
> Dear pmapper Team,
> 
> I wrote a plugin for pmapper 4.02. In the PHP code of my plugin I added a
> layer to the Map using the $map variable from globals.php:
> 
> require_once("../../incphp/globals.php");
> ...
> ...
> $roadLayer = ms_newLayerObj($map);
> ...
> ...
> 
> However, when I reload the map later on (using PM.Map.reloadMap() in the
> JavaScript code of my plugin) the new layer is not reflected/shown in the
> map. A $map->numlayers will result in 8 in my plugin code but in 7 if
> executed in incphp/map/map.php. Would you have any idea why my change (the
> layer I added) is not reflected in the global $map variable?
> 
> Many thanks,
> 
> Michael
> 

-- 
View this message in context: 
http://old.nabble.com/Pmapper-Plugin-tp34871937p34872751.html
Sent from the pmapper users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to