Stylesheet Issue
Posted by danielmundra on 2008-10-20 09:56
I see the issues with implementing Keith's Stylesheet.
In the Red Team code, MapModel.java calls StyleSheetReader.java
and sends it the styles.xml, then it calls GisXmlReader.java and sends
the stylesheet reader variable to it. This will finally return GeoShapes
with all the map shapes and souns associated to it and points and
x y value, and so-on.
In Keith's flash program is uses a different StyleSheetReader.java and
a different GisXmlReader.java. In Kieth's program, GisXmlReader.java will
take in the .xml gis data and the .ss stylesheet and using StyleSheetReader
it will parse the stylesheet, it will also parse the .xml gis data and connect them
together as a GeoShape (like the other program). The big thing is that then
it will use ActionScriptBuilder to take all the GeoShape data and create .as (action script) files with that, which will be used by the flash program.
DOMReader.java is old code left behind, ignore it.
Please read the important README I uploaded, it was with Keith's StyleSheetReader.java and GisXmlReader.java.
You guys will have to replace red team's StyleSheetReader.java and GisXmlReader.java, GeoShape.java, GeoPoint.java with Kieth's code
and then the rest of the program will break because the program
works with the older stylesheet program.
See if this makes sense, and try to apply the new java code to the program.
In the Red Team code, MapModel.java calls StyleSheetReader.java
and sends it the styles.xml, then it calls GisXmlReader.java and sends
the stylesheet reader variable to it. This will finally return GeoShapes
with all the map shapes and souns associated to it and points and
x y value, and so-on.
In Keith's flash program is uses a different StyleSheetReader.java and
a different GisXmlReader.java. In Kieth's program, GisXmlReader.java will
take in the .xml gis data and the .ss stylesheet and using StyleSheetReader
it will parse the stylesheet, it will also parse the .xml gis data and connect them
together as a GeoShape (like the other program). The big thing is that then
it will use ActionScriptBuilder to take all the GeoShape data and create .as (action script) files with that, which will be used by the flash program.
DOMReader.java is old code left behind, ignore it.
Please read the important README I uploaded, it was with Keith's StyleSheetReader.java and GisXmlReader.java.
You guys will have to replace red team's StyleSheetReader.java and GisXmlReader.java, GeoShape.java, GeoPoint.java with Kieth's code
and then the rest of the program will break because the program
works with the older stylesheet program.
See if this makes sense, and try to apply the new java code to the program.
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Ramani map is powered by Assembla.
1 Comments
By auzigog on 2008-10-21 08:37
Yeah. It will take some modification all throughout the program to impliment Keith's new features (right?). I don't think it will be anything TOO drastic, though. We're still using ESRI data...