[ka-Map-users] Detaching divs from viewport?

Pete Giencke pgiencke at glc.org
Wed Jan 11 17:26:50 EST 2006


All,

I finally have a chance to work with the latest ka-map cvs version, and am
enjoying the new functionality. I am running into an issue with the divs
however, specifically the keymap and tool layers. I am wanting to run the
application windowed (that is to say, not full screen), and it is not
readily apparent how to detach the aforementioned divs from the viewport
(the main map window). Basically, I would like to retain the layout of the
'old' kamap, without having to resort to tables.

Thanks in advance,
-pete

-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of David Bitner
Sent: Wednesday, January 11, 2006 12:42 PM
To: Paul Spencer
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] XML Points File

At least for my uses, this would be limited to working off the same server,
so no proxy would be necessary.  Addition of a proxy could just be a pretty
generic php proxy that could be included as well for those who need to
access external "services".


On 1/11/06, Paul Spencer <pspencer at dmsolutions.ca> wrote:
> David,
>
> one problem with this is that you cannot load an XML document from an 
> arbitrary URL.  Due to browser restrictions, you can only load it from 
> the domain from which the page was loaded.  This really, really sucks 
> and there is (almost) no way around it.
>
> There are two ways you could implement this:
>
> 1.  a server-side script (php or other) included with ka-Map or hosted 
> on the same domain that redirects the request to the remote server, 
> gets the response and returns it to the client.  I call this the proxy 
> approach.  This would have to be done carefully as it could expose a 
> security risk.
>
> 2. the other technique uses the fact that you can create a <script> 
> element via document.createElement and it will load and execute 
> javascript from remote sites (and this isn't a security risk!  go 
> figure).  The downside is that it loads javascript, which probably 
> isn't appropriate for what you are intending.
>
> Cheers
>
> Paul
>
> On 11-Jan-06, at 11:01 AM, David Bitner wrote:
>
> > I know that there has been some discussion on the list regarding 
> > similar functionality to the markers in google maps.  I also know 
> > that there is a good start in ka-map for adding points that will 
> > then pan along with the map.
> >
> > I am looking to create a javascript function that takes a url of a 
> > "service" and optionally a flag  to indicate that a bounding box 
> > should be sent and a new request should be made for each map extent.
> > The "service" could then be either a script (php+postgis in my case) 
> > or a file that returns either a delimited string or an xml string.
> > The return will indicate several points, each point will have an x 
> > and y coordinate, a url to an image to be shown on the map, and 
> > optionally html that will be included in a div that is used for
mouseover events.
> >
> > Has anyone done anything along these lines already?  If not, are 
> > there any features or specifications that I could include that would 
> > help anyone else out?
> >
> > Thanks,
> > David
> >
> > _______________________________________________
> > ka-Map-users mailing list
> > ka-Map-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/ka-map-users
> >
>
> +-----------------------------------------------------------------+
> |Paul Spencer                           pspencer at dmsolutions.ca   |
> +-----------------------------------------------------------------+
> |Applications & Software Development                              |
> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
> +-----------------------------------------------------------------+
>
>
>
>
>

_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users




More information about the ka-Map-users mailing list