After some initial reservations about doing a project based on Routemap IMS, I am happy to report that Routemap is a great product. Other folks here in our office have done a few routemap projects over the years, but this was the first one we have done in Coldfusion. It is a very database intensive site, so we thought that Coldfusion would be the best fit for this particular project.
I am an ArcIMS guy. I work with ArcIMS all the time and I love it. So when this project got pegged to me, I will admit, I went kicking and screaming. But, I will be the first to admit that it has been a pleasure to work with, its fast, efficient and makes very nice looking maps. So, I just thought I would share a quick little snippet of code to show you how to make the inital connection to Routemap:
<cfobject action="CREATE" type="JAVA" class="com.esri.rmims.IMSConnection" name="RMIMSCONNECTION">
<cfset RMIMSCONNECTION.setConnectionURL("http://itchy/Scripts/webgate.dll")>
<cfset RMIMSCONNECTION.setGroup("TEST")>
<cfset RMIMSCONNECTION.setUserName("TEST")>
<cfset RMIMSCONNECTION.setUserPassword("TEST")>
<cfset MapTemplate = RMIMSCONNECTION.loadMap("#APPLICATION.MapService#")>
Thats really it. After, you can do just simple stuff like zoom out:
MapTemplate.doZoomOut(javacast("int",#xcoord#),javacast("int",#ycoord#))
So, if anyone is hesitant to take on something new like Routemap, I would encourage you to give it a try.
Jason Harris


