Steve.Toutant | 24 Mar 16:07 2015
Picon

Allow Pan while Drawing

I would like to be able to draw a circle while Pan control is activated. I tried this example
http://dev.openlayers.org/examples/draw-feature.html

This example is not working using Draw box with Allow Pan while Drawing active.

Is it really possible using OL 2.13.1 to allow Pan while Drawing?

thanks

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
utkarsha | 23 Mar 07:29 2015
Picon

Regarding fetching area details

How can i get country, state, city & particular area within the city
information using open layer or open layer api?
I need to show details such as country, state, city or area within city
after zooming map in example stated below:
http://openlayers.org/en/v3.3.0/examples/image-vector-layer.html

Kindly waiting for reply.

Thanks in advance

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Regarding-fetching-area-details-tp5194867.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
openDEM | 22 Mar 17:06 2015

User WMS Styling on demand - very basic example

Hi,

Here is a very basic example for user styling on demand via wms-sld:

http://opendem.info/ol3/wms_sld.html <http://opendem.info/ol3/wms_sld.html>  

No error handling or value check is implemented.

Best,

Martin

-----
www.opendem.info
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/User-WMS-Styling-on-demand-very-basic-example-tp5194831.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Roel De Nijs | 10 Mar 18:06 2015
Picon

GetFeature control on a mobile device

Hi list,

 

In our application we have a WMS layer and a GetFeature control which displays on click some info about the features on the mouse position (using a custom protocol). Works really nice in the 3 main browsers (IE11, FireFox and Chrome). But when we test the application on a mobile device, the tap/touch event doesn’t trigger the click-event of the GetFeature control (and thus no request is sent, no info is shown). We tried it on several devices (iPad, Samsung S5), but it doesn’t work on any of them.

 

What’s the best approach/solution to get this working in OpenLayers 2.13.1? We have already tried to manually add the TouchNavigation control, but this didn’t work either. Upgrading to OL3 is currently not an option.

 

The GetFeature control:

mapControls.push(new OpenLayers.Control.GetFeature({

id : "feature",

autoActivate : true,

click : true,

clickTolerance : 10,

protocol : customProtocol

}));

 

Many thanks!

Kind regards,

Roel De Nijs

Senior Java Developer



Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN

Disclaimer: zie www.aquafin.be   P Denk aan het milieu. Druk deze mail niet onnodig af.
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
agelos | 5 Mar 22:36 2015
Picon

Mouse wheel scroll limitation in OpenLayers 3

Hi list,

I know that the OpenLayers 3 ol.interaction.MouseWheelZoom accumulates
mouse wheel events for an amount of time before it actually fires the
event, which is a wanted behavior. However it seems that it limits the
maximum zoom step to a constant range. I came to this conclusion by
inspecting the function

"ol.interaction.MouseWheelZoom.prototype.doZoom_"

and specifically the lines:
var maxDelta = ol.MOUSEWHEELZOOM_MAXDELTA;
var delta = goog.math.clamp(this.delta_, -maxDelta, maxDelta);

of the ol.interaction.MouseWheelZoom source found at:
https://github.com/openlayers/ol3/blob/master/src/ol/interaction/mousewheelzoominteraction.js

In my application this is an unwanted feature, as the user needs to be
able to zoom as much and as quickly as possible. Is there a way to
overcome this limitation e.g. by building a custom interaction or altering
my map configuration somehow?

Regards
Agelos
adityakumar529 | 5 Mar 13:31 2015
Picon

Rotate background image

Dear Users,
  Is there a way if e want to rorate the background image assigned to a
feature?

Thanks
Aditya KUmar

-----
GIS Developer

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Rotate-background-image-tp5191654.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
adityakumar529 | 5 Mar 09:57 2015
Picon

Re: Rotate a circle

Hi Koslov,
   Actually I have a background image which I need to rotate.

Thanks
Aditya Kumar

-----
GIS Developer

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Rotate-a-circle-tp5191574p5191601.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
adityakumar529 | 5 Mar 07:16 2015
Picon

Rotate a circle

Dear Users,
  I have a circle image in jpg format with me.I need to rotate it on a
continueous basis. Can you help me how to rotate the circle.

Thanks
Aditya Kumar

-----
GIS Developer

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Rotate-a-circle-tp5191574.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Olga TroŇ°kina | 1 Mar 18:34 2015
Picon

Measure layer rendering time

Here is my code to add vector layer in Openlayers 2.11, using which I want to measure vector layer rendering time.
I tried "loadend" event, but if I have many features I can see with my eyes that this is not that time I want. I want to stop measuring when all features are fully rendered and appear on the map.
Is there any event to register end of rendering of features on the map.
My full code:
var start = performance.now();
    proj4.defs("EPSG:3301", "+proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs");
    var projection = new OpenLayers.Projection('EPSG:3301');
    var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;
    renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;
    var map = new OpenLayers.Map('map',
            {
                projection: projection,
                maxResolution: "auto",
                maxExtent: new OpenLayers.Bounds(300000, 6.3e+06, 800000, 6.7e+06),
                center: [550000, 6520000]
            });
    var wfs = new OpenLayers.Layer.Vector("States", {
        isBaseLayer: true,
        strategies: [new OpenLayers.Strategy.BBOX()],
        protocol: new OpenLayers.Protocol.WFS({
            url: 'http://loom-gis.geo.ut.ee:8080/geoserver/ermas/ows?service=WFS',
            featureType: "testdata_geopnt",
            featureNS: 'http://loom-gis.geo.ut.ee:8080/geoserver/ermas',
            srsName: "EPSG:3301",
            geometryName: "geometry",
            maxFeatures: 3000
        })
    });
    wfs.events.register("loadend", wfs, function () {
        var time = performance.now() - start;
        console.log(time);
    });
    map.addLayer(wfs);
    map.zoomToMaxExtent();
    map.zoomTo(0);
Thank you.
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
pablo zader | 22 Feb 04:39 2015
Picon

Firefox does not work with GeoExplorer (openlayers)

Hi list,

The problem is detected by firebug when GeoExplorer start with Mozilla, but the strange thing is that with google chrome works fine (and IE):

NotFoundError: Node was not found document.getElementsByTagName("head")[0].removeChild...

The exception is thrown in the googlesource.js file, line 334 , in the function loadScript:

loadScript: function(options) { .... window.setTimeout((function() { if (!gxp.plugins.GoogleSource.loader.ready) { this.loading = false; this.ready = false; document.getElementsByTagName("head")[0].removeChild(script); (LINE 334) errback.call(options.scope); this.fireEvent("failure"); this.purgeListeners(); } ....


I understand that there is a problem when firefox wants to access the service google but not so google chrome. 

Thanks in advanced

Pablo


_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Simon Knapp | 21 Feb 04:37 2015
Picon

Image layer obscured by image bounds.

Hi List,

This is the first post from this newbie, so please complain/guide if I do a bad job of explaining myself in this post

I have developed an application that returns an image encoded in a data url to the user, which I place on my map using OpenLayers.Layer.Image. I'm not sure this detail matters, but the user defines a polygon using OpenLayers.Control.DrawFeature with the handler OpenLayers.Handler.Polygon. and a layer named "polygonLayer" The image is added with:

resultLayer = new OpenLayers.Layer.Image(

    'Spatial result',

    resp.result.image.data,

    new OpenLayers.Bounds(resp.result.image.bounds),

    new OpenLayers.Size(resp.result.image.size.w, resp.result.image.size.h),

    {

        isBaseLayer: false,

        displayInLayerSwitcher: false,

        projection: new OpenLayers.Projection('EPSG:900913')

    }

)



The first time a user submits a polygon, the effect is spot on - the image is rendered and looks lovely. When they send a second request, The result is not so pretty, as the image is obscured by something that is probably a representation of the bounding box (not sure if I can add images, but I have tried)




I've been asking Google for help for a while, but have not been able to find the right words.


Can anyone advise on how I can stop this from happening?


Cheers,

Simon Knapp

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Gmane