Hi Jim,
You should probably look to the MapRequestHandler object (an extended
ImageServer that decodes request statements) to extend it to do what
you want. You could extend the handleMapRequest() method, which
receives the request string parsed as properties. I don't know if you
have to create and add layers dynamically, but you also have the
MapRequestHandler have a direct hook into a layer that dynamically
controls content based on what arguments are sent in on the request
string.
The other benefit to this is that if the SimpleHttpImageServer becomes
too lightweight for your user load, you can pull the MapRequestHandler
out and embed it in a more robust servlet architecture.
Hope this helps,
Don
On Friday, September 27, 2002, at 08:51 AM, Brox, James H. wrote:
> Well, I have been looking at the SimpleHttpImagerServer code, and the
> ImageServer code to try and see where I can make my layers... My idea
> is
> that I would add a request type for creating a layer, or add it as an
> addition parameter when requesting a map that would instantiate a
> layer that
> would be added to the map before it is returned. Obviously I am new to
> OpenMap, so I am still not sure how I will do this, but I am working
> on it.
> I looks to me like I will have to add most of the code to the
> ImageServer to
> create the new layer. The layers seem to be getting defined in the
> getLayers method, but I am still trying to understand that method and
> how it
> pulls information from the properties file..
>
> If I am going in the completely wrong direction, I would appreciate
> any help
> or points in a better direction.
>
> Thanks,
> Jim
>
> ------------------------------
>
> Date: Sun, 22 Sep 2002 11:29:25 -0400
> From: "Brox, James H." <JAMES.H.BROX@saic.com>
> Subject: .NET and the SimpleHttpImageServer
>
> Hi,
>
> I am creating a ASP.NET client which utilizes several web services,
> one of
> those (I hope) being the OpenMap service as described in the .NET Demo
> provided with the most recent release. I was able to get that
> working, and
> am extremely impressed with the easy it was to get up and running and
> how
> well it works. I apologize if this question has been asked already,
> but I
> could not find it in the archives.
>
>> From my .NET client I would like to create layers that would plot
>> points and
> lines on the map depending on options a user chooses. For instance if
> they
> typed in a specific lon/lat set, I would plot a dot at that location,
> or I
> would show a path by plotting multiple dots and connecting them with
> lines.
> Pretty basic stuff. I have seen through examples like Crew how to do
> this
> with a JAVA client, but looking through the SimpleHttpImageServer
> code, I
> don't see where it captures any requests other than setting predefined
> layers.
>
> I would appreciate any help.
>
> Thanks,
> Jim
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Fri Sep 27 09:07:53 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT