If you right-click on the layer in the viewer and select Rebuild, does the
new object then show up?
Andy
"miskandar" wrote in message
news:CA773FE492D6212216474B7DCE8FF2DC@in.WebX.maYIadrTaRb...
> I am using coldfusion to add polyline into an sdf file.
> after finish adding a polyline, i tried to refresh the layer
> to reflect my new polyline using javascript.
> here is the js code to do the refresh.
> The layer name is Pipes.
>
> getMap().getMapLayer("Pipes").setRebuild(true);
> getMap().refresh();
>
> somehow, the map looks like it refresh, but does not show the one that I
> just drew.
> btw, the pipes layer has thousands of polylines.
> I tried on other polyline layer that has only around 50 lines, it works.
> Does the size of polyline layer matter in order to refresh the layer?
>
>
>
>