Hi Steven, I did that on the stable realease because I had to use it
on production environment.
I'm still new to the 1.5 release but I'm going to study that and maybe
I will write a patch for that.
Luca
On 7/19/07, Steven M. Ottens <[EMAIL PROTECTED]> wrote:
> Hi Luca,
>
> Have you tried to implement this on MapPaneOL as well?
> We've deprecated MapPane and as such don't do any new development on it.
>
> Regards,
> Steven
>
> Luca Giandoso wrote:
> > You have to put the code in the mapbuilder MapPane code, then call the
> > function, for example with a timer.
> > I have received no feedback from mapbuilder community.
> >
> > Luca
> >
> > On 7/18/07, Kinaceman <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >>
> >> I'm looking for just such a solution for reloading certain layers. I have
> >> a
> >> few questions:
> >> How do I use it? Did you get any feedback from the mapbuilder community?
> >> many thanks in advance.
> >>
> >> Kinaceman
> >>
> >>
> >> Luca Giandoso wrote:
> >>
> >>> Hi.
> >>> I have solved the problem about how to reload only a layer, but it can
> >>> be modified for more then one layer.
> >>> This function is a modified version of the paint function and I have
> >>> added in the MapPane.js code.
> >>> I have only tested it against the 1.01 mapbuilder version.
> >>>
> >>> What do you think about it?
> >>>
> >>> MapPane.prototype.reloadLayer = function(objRef, layerToReload)
> >>> {
> >>> var tempDom =
> >>> objRef.stylesheet.transformNodeToObject(objRef.model.doc);
> >>> var tempNodeList = tempDom.selectNodes("//img");
> >>> var layers = objRef.model.getAllLayers();
> >>> objRef.firstImageLoaded = false;
> >>> objRef.layerCount = layers.length;
> >>>
> >>> for (var i=0;i<layers.length;i++)
> >>> {
> >>> var layerName =
> >>> layers[i].selectSingleNode("wmc:Name").firstChild.nodeValue;
> >>> if(layerName == layerToReload)
> >>> {
> >>> var newSrc = tempNodeList[i].getAttribute("src") +
> >>> Math.random().toString();
> >>> objRef.loadImgDiv(layers[i],newSrc,objRef.imageStack[i]);
> >>> }
> >>> else
> >>> {
> >>> var newSrc = tempNodeList[i].getAttribute("src");
> >>> objRef.loadImgDiv(layers[i],newSrc,objRef.imageStack[i]);
> >>> }
> >>> }
> >>> }
> >>>
> >>> -------------------------------------------------------------------------
> >>> Take Surveys. Earn Cash. Influence the Future of IT
> >>> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >>> your
> >>> opinions on IT & business topics through brief surveys-and earn cash
> >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>> _______________________________________________
> >>> mapbuilder-devel mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
> >>>
> >>>
> >>>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Reload-only-a-layer%3A-a-possible-solution-tf3418314.html#a11664726
> >> Sent from the MapBuilder Devel mailing list archive at Nabble.com.
> >>
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> _______________________________________________
> >> mapbuilder-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
> >>
> >>
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > mapbuilder-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
> >
>
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel