[OpenLayers-Dev] Re: Dev Digest, Vol 50, Issue 19

hariom singh hariom.cs1 at gmail.com
Sat Nov 20 05:52:32 EST 2010


hi All,

i have added the layer like this from geoserver:
var Assam_airports = new OpenLayers.Layer.WMS("Assam_airports",

              "http://localhost:8080/geoserver/wms",
            {'layers': 'STUDENT:Assam_airports ', transparent: true, format:
'image/gif'},
            {isBaseLayer: false}
        );

so i want to read the bound of added layer in open layer .openlayer.Bound(
left,bottom right,top);
when we click on the added layer somebody help me, your help would be highly
appreciated.

Thanx


On Fri, Nov 19, 2010 at 10:30 PM, <openlayers-dev-request at lists.osgeo.org>wrote:

> Send Dev mailing list submissions to
>        openlayers-dev at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.osgeo.org/mailman/listinfo/openlayers-dev
> or, via email, send a message with subject or body 'help' to
>        openlayers-dev-request at lists.osgeo.org
>
> You can reach the person managing the list at
>        openlayers-dev-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dev digest..."
>
>
> Today's Topics:
>
>   1. Re: multiple maps with same events. (Matt Priour)
>   2. Re: modifying the openlayer default style (Matt Priour)
>   3. Re: Measure.js Hover / Partial Measure. New Event
>      'measurehover' and callback? (Fabian Patzke (OL))
>   4. Using OpenLayers.Format.Text to load user data    into vector
>      layer  (Lopes, Jose (AAFC-AAC))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 18 Nov 2010 10:52:43 -0800 (PST)
> From: Matt Priour <mpriour at kestrelcomputer.com>
> Subject: [OpenLayers-Dev] Re: multiple maps with same events.
> To: dev at openlayers.org
> Message-ID: <1290106363850-5752879.post at n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> The awesomeness that is Chris Schimdt just keeps getting better.
> Matt Priour
>
> ps. nachoab, you might find significantly more helpful answers on the users
> list: openlayers-users at lists.osgeo.org
>
> Something somewhat confusing to me at first was that for software
> libraries,
> the users list is not for the actual end users of the product but for
> developers who are using the library to create products for end-users. The
> developers list is really for questions regarding developing the actual
> library itself. So unless you are extending or significantly modifying
> OpenLayers objects in a way that would be generally useful for other users
> of the library; or proposing new / different functionality for the library,
> then your question is best asked in the users list. If you aren't sure then
> ask on the users list first.
>
>
>
> christopher.schmidt at nokia.com wrote:
> >
> >
> > On Nov 18, 2010, at 7:08 AM, ext nachoab wrote:
> >
> >>
> >> Hello,
> >> I need to have multiple maps on screen (each one with different layers)
> >> and
> >> what I'm trying to do is to copy the events on one to the rest: If i
> move
> >> the map or zoom somewhere, i want want that to happen in all maps.
> >>
> >> is that possible?
> >
> > Yes.
> >
> > -- Chris
> >
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/multiple-maps-with-same-events-tp5751380p5752879.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 18 Nov 2010 11:05:01 -0800 (PST)
> From: Matt Priour <mpriour at kestrelcomputer.com>
> Subject: [OpenLayers-Dev] Re: modifying the openlayer default style
> To: dev at openlayers.org
> Message-ID: <1290107101770-5752917.post at n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> This is a limitation which should be addressed in OL3. As you can see in
> the
> code snippet below from the PanZoom control's draw mehtod, the image paths
> for the nav control images are hard-coded. You can either change the
> element's path to the image by overwritting the draw method in the control
> class or you can just replace the original images in openlayers/img
> directory with the ones you want to use.
>
> ...........
> 93                 this._addButton("panup", "north-mini.png", centered,
> sz);
> 94              px.y = centered.y+sz.h;
> 95              this._addButton("panleft", "west-mini.png", px, sz);
> 96              this._addButton("panright", "east-mini.png", px.add(sz.w,
> 0),
> sz);
> 97              this._addButton("pandown", "south-mini.png",
> 98                              centered.add(0, sz.h*2), sz);
> 99              this._addButton("zoomin", "zoom-plus-mini.png",
> 100                             centered.add(0, sz.h*3+5), sz);
> 101             this._addButton("zoomworld", "zoom-world-mini.png",
> 102                             centered.add(0, sz.h*4+5), sz);
> 103             this._addButton("zoomout", "zoom-minus-mini.png",
> 104                             centered.add(0, sz.h*5+5), sz);
> 105             return this.div;
> ...........
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/modifying-the-openlayer-default-style-tp5752046p5752917.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 18 Nov 2010 23:09:41 -0800 (PST)
> From: "Fabian Patzke (OL)" <listensammler at patzi.de>
> Subject: [OpenLayers-Dev] Re: Measure.js Hover / Partial Measure. New
>        Event 'measurehover' and callback?
> To: dev at openlayers.org
> Message-ID: <1290150581677-5754373.post at n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi since I needed this functionality as well I tried to patch the measure
> control and created a feature ticket
> http://trac.osgeo.org/openlayers/ticket/2935 #2935  with a attached patch.
> This would introduce a new property and a new event to the control, so that
> you are able, to measure immediately once your mouse has been moved. I
> think
> that is also what you wanted. Please have a look at it.
> In my implementation right now, the new event will not be fired when you
> are
> in freehand mode since there will be the "measurepartial" event.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Measure-js-Hover-Partial-Measure-New-Event-measurehover-and-callback-tp5743155p5754373.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 19 Nov 2010 09:31:01 -0500
> From: "Lopes, Jose (AAFC-AAC)" <Jose.Lopes at AGR.GC.CA>
> Subject: [OpenLayers-Dev] Using OpenLayers.Format.Text to load user
>        data    into vector layer
> To: <openlayers-dev at lists.osgeo.org>
> Message-ID:
>        <8E5471DB13993145A6D9183ED4DBC2D082871B at onottaxms8.AGR.GC.CA>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
>
>
> We have an app that uses MapServer with Ext JS as library and add WMS
> vector layers to our base map.
>
> To load vector layers from user provided files we use GeoJSON format
> with an http response of contentType  text/html and it works fine...
>
> To add GPS data I added the GPX format that reads file content from an
> http response of contentType text/xml and it works fine...
>
>
>
> I want to be able to read csv or txt files with POI GPS data and tried
> to use the Text format with an http response of  contentType text/plain
> but the response object created by OpenLayers when parsing the http
> response is empty (o result has only one field: o.resultObj which is
> undefined ).
>
>
>
> I tried other contentTypes for the response but nothing works.  I can
> see that the file content is parsed by Ext.js callback but not loaded by
> OpenLayers (for text/html response type it enters in an infinite loop
> with wrappedFn and cp calls in EXT JS lib).
>
>
>
> Don't know where to look anymore, any tips will be welcome.
>
>
>
> Thanks,
>
> JL
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20101119/0a096719/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
> End of Dev Digest, Vol 50, Issue 19
> ***********************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20101120/8ff2ae77/attachment.html


More information about the Dev mailing list