Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

need help on rebuild a layer

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
209 Views, 3 Replies

need help on rebuild a layer

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?
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

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?
>
>
>
>
Message 3 of 4
Anonymous
in reply to: Anonymous

yes, it does.
but why I can't get it by setting the rebuild flag for that layer and then
do a refresh?
Message 4 of 4
Anonymous
in reply to: Anonymous

yes, it does.
but why I can't get it by setting the rebuild flag for that layer and then
do a refresh?

thx for your help

"Andy Morsell" wrote in message
news:A4FF13AD6E128F99101B2FDB6EEA4B61@in.WebX.maYIadrTaRb...
> 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?
> >
> >
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report