[Cartoweb-users] Symbol offset property in mapOverlay

Jady jadychow at gmail.com
Thu Nov 27 21:24:20 EST 2008


Hi

This is the error message:

Failure  
Class : SoapFaultWrapperMessage : Error [8, Undefined property: 
ms_style_obj::$offset,
/home/fgs/fgs/apps/cartoweb350/plugins/mapOverlay/server/ServerMapOverlay.php,
142]
Backtrace:

file: 142 -
/home/fgs/fgs/apps/cartoweb350/plugins/mapOverlay/server/ServerMapOverlay.php
call: Common::cartowebErrorHandler(8, "Undefined property: 
ms_style_obj::$offset",
"/home/fgs/fgs/apps/cartoweb350/plugins/mapOverlay/server/ServerM...", 142,
Array(4))

file: 673 -
/home/fgs/fgs/apps/cartoweb350/plugins/mapOverlay/server/ServerMapOverlay.php
call: ServerMapOverlay->updateStyle(Object(ms_class_obj),
Object(StyleOverlay))

file: 1042 -
/home/fgs/fgs/apps/cartoweb350/plugins/mapOverlay/server/ServerMapOverlay.php
call: ServerMapOverlay->updateClass(Object(ms_layer_obj),
Object(ClassOverlay))

file: 1072 -
/home/fgs/fgs/apps/cartoweb350/plugins/mapOverlay/server/ServerMapOverlay.php
call: ServerMapOverlay->updateLayer(Object(LayerOverlay))

file: 162 -
/home/fgs/fgs/apps/cartoweb350/projects/mdnplancdev/plugins/outline/server/ServerOutline.php
call: ServerMapOverlay->updateMap(Object(LayerOverlay))

file: 212 -
/home/fgs/fgs/apps/cartoweb350/projects/mdnplancdev/plugins/outline/server/ServerOutline.php
call: ServerOutline->drawFeature(Object(StyledShape),
"cartoweb_point_outline")

file: 316 -
/home/fgs/fgs/apps/cartoweb350/projects/mdnplancdev/plugins/outline/server/ServerOutline.php
call: ServerOutline->drawPoint(Object(StyledShape))

file: 365 -
/home/fgs/fgs/apps/cartoweb350/projects/mdnplancdev/plugins/outline/server/ServerOutline.php
call: ServerOutline->draw(Array(2), False)

file: 74 - /home/fgs/fgs/apps/cartoweb350/server/ServerPluginHelper.php
call: ServerOutline->handleDrawing(Object(OutlineRequest))

file: 139 - /home/fgs/fgs/apps/cartoweb350/server/ServerPluginHelper.php
call: ServerPluginHelper->callHandleFunction(Object(ServerOutline),
"handleDrawing")

file: UNKNOWN - UNKNOWN
call: ClientResponderHelper->handleDrawingHelper(Object(ServerOutline))

file: 267 - /home/fgs/fgs/apps/cartoweb350/common/PluginManager.php
call: call_user_func_array(Array(2), Array(1))

file: 285 - /home/fgs/fgs/apps/cartoweb350/common/PluginManager.php
call: PluginManager->callPluginImplementing(Object(ServerOutline),
"ClientResponder", "handleDrawing", Array(0))

file: 313 - /home/fgs/fgs/apps/cartoweb350/server/Cartoserver.php
call: PluginManager->callPluginsImplementing("ClientResponder",
"handleDrawing")

file: 349 - /home/fgs/fgs/apps/cartoweb350/server/Cartoserver.php
call: Cartoserver->doGetMap(Object(MapRequest))

file: 370 - /home/fgs/fgs/apps/cartoweb350/server/Cartoserver.php
call: Cartoserver->callWithExceptionCheck("doGetMap", Object(MapRequest))

file: 76 - /home/fgs/fgs/apps/cartoweb350/server/MapResultCache.php
call: Cartoserver->cacheGetMap(Object(MapRequest))

file: 209 - /home/fgs/fgs/apps/cartoweb350/server/MapResultCache.php
call: MapResultCache->getMapResultFromServer(Object(MapRequest))

file: 380 - /home/fgs/fgs/apps/cartoweb350/server/Cartoserver.php
call: MapResultCache->getMap(Object(MapRequest))

file: 104 - /home/fgs/fgs/apps/cartoweb350/client/CartoserverService.php
call: Cartoserver->getMap(Object(MapRequest))

file: 165 - /home/fgs/fgs/apps/cartoweb350/client/CartoserverService.php
call: CartoserverService->callDirect("getMap", Object(MapRequest))

file: 233 - /home/fgs/fgs/apps/cartoweb350/client/CartoserverService.php
call: CartoserverService->callFunction("getMap", Object(MapRequest))

file: 981 - /home/fgs/fgs/apps/cartoweb350/client/Cartoclient.php
call: CartoserverService->getMap(Object(MapRequest))

file: 1135 - /home/fgs/fgs/apps/cartoweb350/client/Cartoclient.php
call: Cartoclient->getMapResultFromRequest(Object(MapRequest))

file: 1315 - /home/fgs/fgs/apps/cartoweb350/client/Cartoclient.php
call: Cartoclient->doMain()

file: 33 - /home/fgs/fgs/apps/cartoweb350/htdocs/client.php
call: Cartoclient->main()

file: 3 - /home/fgs/fgs/apps/cartoweb350/htdocs/mdnplancdev.php
call: require_once("/home/fgs/fgs/apps/cartoweb350/htdocs/client.php")

I defined the offset property in MapOverlay.php and ServerMapOverlay.php,
followings are what I have defined:
1)  in MapOverlay.php
     i)  in the class StyleOverlay extends BasicOverlay, added  public
$offset;
     ii) in the public function unserialize, added $this->offset  =
self::unserializeValue($struct, 'offset');		

2)  in ServerMapOverlay.php
     i) in the protected function updateStyle, under the switch case
BasicOverlay::ACTION_UPDATE, added            
        if (!is_null($overlay->offset) && $msStyle->offset !=
$overlay->offset) {		
                $result->offset = $overlay->offset;
                $msStyle->set('offset', $result->offset);
            }	
     ii) in the public function checkStyle, added        
         if (!is_null($overlay->offset) && $overlay->offset !=
$msStyle->offset) {
            return false;
        }

Thanks very much for you help.

Regards,
Jady



Oliver Christen wrote:
> 
> can you show me the complet error message please
> 
> 
> 
>>
>> Hi,
>>
>> I would like to allow user to define the point symbol angle and offset in
>> the outline plugin.  I added the angle and offset property in mapOverlay
>> plugin but now user can successfully define the symbol angle only, not
>> the
>> offset.  There is an error message saying the Offset property is not
>> defined.  How should I define it?
>>
>> Thank you very much!
>>
>> Regards,
>> Jady
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Symbol-offset-property-in-mapOverlay-tp20676890p20676890.html
>> Sent from the cartoweb-users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>> 
> 
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Symbol-offset-property-in-mapOverlay-tp20676890p20728112.html
Sent from the cartoweb-users mailing list archive at Nabble.com.



More information about the Cartoweb-users mailing list