Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] opening an exisitng map programatically

Hi,

Its late again, we waiting for a new minor release to upload to the
website and I've made a public PlatformGIS class for actions such as
creating and opening maps as well as getting the currently active map.
Take a peek it should be enough to get you going.  If you need more hack
here and we can clean it up when I get back.  (Try to not go too
crazy ;) ).

I decided against using commands to create maps and projects because it
would be too hard to keep track of yet another undo/redo stack.
(Although I might be persuaded otherwise at some point).  I haven't
added a call back yet to allow you to initialize the map that's created.
I'll see if I have time.


Jesse

On Wed, 2005-04-06 at 10:16 -0700, Justin Deoliveira wrote:
> Sounds good to me. From my experiences with GIS type plugins, getting 
> access to the project model is a common occurence. I think a facade is 
> just what the doctor ordered.
> 
> Justin
> 
> Jesse Eichar wrote:
> > On Tue, 2005-04-05 at 19:32 -0700, Justin Deoliveira wrote:
> > 
> >>Similar to my last message i would like to open a map that is still 
> >>around after its editor has been closed. Not sure if i am in the right 
> >>place but from what i can see:
> >>
> >>ProjectExplorer#open(Object,boolean)
> >>
> >>is private api.
> >>
> >>Justin
> >>
> > 
> > Answering both questions.  We want to create a drag and drop manager but
> > maybe we should have a map manager as a facade with all this
> > functionality, including get current map and get current project
> > functionality?  What do you think?
> > 
> > Jesse
> > 
> > _______________________________________________
> > User-friendly Desktop Internet GIS (uDig)
> > http://udig.refractions.net
> > http://lists.refractions.net/mailman/listinfo/udig-devel
> 
> 



Back to the top