dave.potts | 24 Nov 12:36 2014
Picon

Openlayers 3, 0 modify/resize/roate vector features

Hi,

Just been playing with Open layers 3.

I was looking for support to rotate/resize vector features[its possible in
openlayers 2.0], I have read the documentation, unless I have missed
something/overlooked.

It seems that there is no support for this type of request, I known its
possible to rotate a map,but  is it possible to apply this just to a
vector layer?
Phil Scadden | 23 Nov 21:31 2014
Picon

Re: circles

Please always reply  to list not to responder.

I see you are using Openlayers 3 - it would best to respond to their 
support forum. https://groups.google.com/forum/#!forum/ol3-dev
I have not made the jump so I am not familar with the new syntax. The 
old syntax would be
geom.Transform(proj1,proj2). proj1,2 would be projection objects. I am 
assume you are creating circles based on lat/long which means your input 
is an ESPG:4326 while new projection should be EPSG:3587. However, best 
way to do it from map.getProjectionObject() or whatever the new syntax 
is, so that it will always conform to whatever baselayer you are using. 
However, you will need to look at docs to get the new ol syntax for 
creating projection objects etc.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
Wolfgang Wienke | 20 Nov 21:10 2014
Picon
Picon

circles

Hi,
sorry for crying for attention.
I had 3 posts with no answer.

Is this list ONLY for OpenLayers V2?
If not my question:

I try to show circles on a map with a bing "Aerial"-Layer.
In OpenLayers V3 the examples are working fine.
But when i change the WMS-layer in the example to the bing layer, the 
circle is no longer displayed.
In Open layers V2, the circle is only shown on a base layer. It does not 
show on a Bing Layer.
Is this a feature, or where are my mistakes?
--

-- 
                                mit freundlichen Grüssen

                                      Wolfgang Wienke
Wolfgang Wienke | 20 Nov 17:41 2014
Picon
Picon

Anyore reading me?

Hi, can somesend an answer, just to get sure I*m beeinbg read!

--

-- 
                                mit freundlichen Grüssen

                                      Wolfgang Wienke
Staav Per-Anders | 20 Nov 09:30 2014

GetFeaturInfo call failing in IE11

I am new to this mailing list, but we have been using OpenLayers for a while.

 

Currently I am struggling with a problem with GetFeatureInfo and IE11 and I decided to share my experiences to hopefully help some other poor fellow to have to do the same analysis.

 

I am using 2.13.1 of OpenLayers and GeoServer 2.4 and have applied a couple of fixes to get it to work in IE11 for WFS calls and similar. Unfortunately I cannot sort out the GetFeatureInfo calls.

 

If I IE11 in Edge mode the call to OpenLayers.Format.XML.prototype.read.apply(this, [data]); eventually resolve into xmldom.loadXML(text) call failing and then  a failed call to new DOMParser().parseFromString(text, 'text/xml')

 

If I use IE11 and emulate previous versions (aka Quirks mode) the call to loadXML succeed even through I used the debugger to verify that in both cases the actual text sent into the function is JSON

"{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"id\":\"LVD_FUNCTION_OBJECT_VIEW.3010124\",\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[154111.811179288,6578422.01790236,0],[154111.295167272,6578428.93449788,0],[154112.323003077,6578434.88642851,0],[154119.436625185,6578454.94173547,0],[154127.927454092,6578478.22225933,0],[154130.750467693,6578486.2847629,0],[154131.816409608,6578490.96371858,0],[154130.856751895,6578508.97999902,0]]},\"geometry_name\":\"GEOLOC\",\"properties\":{\"FUNCTION_OBJECT_NO\":9112,\"FUNCTION_OBJECT_NAME\":\"Västra Terrassrampen (1) (Norra Järngraven - Katarinavägen) (050508 - 020644)\",\"TRAFFIC_TYPES\":1}}],\"crs\":{\"type\":\"EPSG\",\"properties\":{\"code\":\"3011\"}}}"

It seems very likely the problem is that IE in Quirks mode accept loadXML even when the input is JSON, but will reject such in strict mode.

 

I will look into using a <meta http-equiv="X-UA-Compatible" content="IE=10" /> directive or something similar to make sure Quirks mode is enabled for my OpenLayers application.

 

Per-Anders Staav
Systemutvecklare
Mobil: 0768-44 10 36
per-anders.staav-bi2R9l8QJkmEogu45VfRew@public.gmane.org

Norconsult Astando AB
Hantverkargatan 5K
112 21 Stockholm

www.astando.se

 

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Sven Schroeter | 18 Nov 17:07 2014
Picon

remove selected feature

Hi,

just switched from OL 2.12 to 2.13.

in my edit client (2.12.) I used this function to remove a single selected
feature on a vector layer:

mod_edit_layer.removeFeatures(modifyControl.feature);

now (using 2.13) I added a select Control, and the modifyControl looks like
this:

//Select Control
selectControl = new OpenLayers.Control.SelectFeature([mod_edit_layer]);
	
//Control Edit
modifyControl = new OpenLayers.Control.ModifyFeature(
		mod_edit_layer, {
		standalone: true,
		displayClass : "olControlModifyFeature",
		title : "Objekte bearbeiten"
});

If I try to remove a single Feature after selected it, it does not work:

mod_edit_layer.removeFeatures(modifyControl.feature);

The selected feature is removed, but some vectors keep left that are no
longer selectable.
I also tried it with destroyFeatures and refresh, but no way...

Any idea?

Sven
Richard Knop | 18 Nov 11:21 2014
Picon

features out of synch when panning map

Hi,

 

We’re running into an issue with our Openlayers 2.12 application in combination with Geoserver 2.3.1 and Ext.js 4.2.1 panels. In a panel we have an Openlayers map. We get a WMS service from Geoserver and some features via SQL Server Geometry, transformed to WKT, next projected on the map with javascript. Everything works fine; when loaded the features of the vector layer and map are projected correctly. However – when we drag / pan the map the features seem to be positioned out of synch with the baselayer from Geoserver. Across different browsers. We’ve tried quite a lot to redraw, synch features, use the right projection (28992) use other (default) projections, setting bounds, but the features keep shifting after a pan. When zooming in or out, the features are back in the right position again. Can someone point us in the right direction / any ideas what this can be?

 

 

Thanks in advance,

 

Richard

 

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Wolfgang Wienke | 13 Nov 20:51 2014
Picon
Picon

displaying circle on Bing-layer

Hi,
I try to show circles on a map with a bing "Aerial"-Layer.
In OpenLayers V3 the examples are working fine.
But when i change the layer in the example to the bing layer, the circle 
is no longer displayed.
In Open layers V2, the circle is only shown on a base layer. It does not 
show on a Bing Layer.
Is this a feature, or where are my mistakes?
--

-- 
                                mit freundlichen Grüssen

                                      Wolfgang Wienke
Huub Fleuren | 12 Nov 16:29 2014
Picon

getting features from GML.v3().read()

Hi List,

I was trying to read the following GML text with the Format.GML.v3

<?xml version="1.0" encoding="UTF-8"?>
<gml:MultiGeometry xmlns:gml="http://www.opengis.net/gml"
xmlns:sch="http://www.ascc.net/xml/schematron" srsDimension="2">
<gml:geometryMember>
<gml:Polygon srsDimension="2">
<gml:exterior>
<gml:LinearRing srsDimension="2">
<gml:posList>115.0 15.5 118.0 16.0 118.0 18.0 113.0 17.166666666666668 112.0 18.0 114.5 20.0 120.0 20.0 120.0 10.0 116.2 10.0 118.0 13.0 115.0 15.5
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:geometryMember>
<gml:geometryMember>
<gml:Polygon srsDimension="2"><gml:exterior><gml:LinearRing srsDimension="2">
<gml:posList>115.0 15.5 118.0 13.0 116.2 10.0 110.0 10.0 110.0 20.0 114.5 20.0 112.0 18.0 113.0 17.166666666666668 112.0 17.0 112.0 15.0 115.0 15.5
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:geometryMember>
</gml:MultiGeometry>

code:
var gml = new OpenLayers.Format.GML.v3(); var features = gml.read(GMLtext);


Apparently this is parsed correctly by Format.XML, but i never get a list of features from the read () function.

Is it possible? How?

Regards, Huub
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Wolfgang Wienke | 6 Nov 21:54 2014
Picon
Picon

Bing-Layer with OSM-API V3

Hi,
I tried the above, the aerial works with:

var    map = new ol.Map({
     target: 'map',
     layers: [ new ol.layer.Tile({ source: new ol.source.BingMaps({
                 key: <mein Key>,
                 imagerySet: 'AerialWithLabels' })
                 })
         ],
         view: new ol.View({ center: 
ol.proj.transform([6.10428,50.76079], 'EPSG:4326', 'EPSG:3857'),
                 zoom: 11 }),
     });

I tried to get (standard) controls and attribution, but nothing works. 
Any idea about my bugs?
Do I need additional scripts or *.css?

--

-- 
                                mit freundlichen Grüssen

                                      Wolfgang Wienke
joaorodr84 | 6 Nov 12:53 2014
Picon

WMS does not work / Wrong getImageSize method gets called


Hi
I am using this "minified" version of OpenLayers recently. But it does not
work with WMS layers.
OpenLayers.js
<http://osgeo-org.1560.x6.nabble.com/file/n5171621/OpenLayers.js>  

Here is what I get in the Chrome Dev Tools, on map initialization:

Uncaught TypeError: Cannot read property 'getWidth' of undefined
OpenLayers.js:9037
OpenLayers.Layer.Grid.OpenLayers.Class.getImageSize OpenLayers.js:9037
OpenLayers.Tile.Image.IFrame.createRequestForm OpenLayers.js:31236
OpenLayers.Tile.Image.IFrame.setImgSrc OpenLayers.js:31245
OpenLayers.Tile.Image.OpenLayers.Class.initImage OpenLayers.js:8733
OpenLayers.Tile.Image.OpenLayers.Class.renderTile OpenLayers.js:8674
OpenLayers.Tile.Image.OpenLayers.Class.draw OpenLayers.js:8665
OpenLayers.Tile.Image.IFrame.draw OpenLayers.js:31198
OpenLayers.TileManager.OpenLayers.Class.drawTilesFromQueue
OpenLayers.js:27135
(anonymous function) OpenLayers.js:27095
(anonymous function) OpenLayers.js:169

It seems that the error comes from the fact that there are 3 methods called
getImageSize

In line 31236, we have:
        this.layer.getImageSize();

And I this it uses the wrong getImageSize method, because it uses this one
(from line 9036):
    getImageSize: function(a) {
        var b =
OpenLayers.Layer.HTTPRequest.prototype.getImageSize.apply(this, arguments);
        this.singleTile && (b = new OpenLayers.Size(Math.round(a.getWidth()
/ this.gridResolution), b.h));
        return b
    },
As you can see, this one has an argument, and the one we called, doesn't.

I think the getImageSize method that should be called is this one (line
4660):
    getImageSize: function() {
        return this.imageSize || this.tileSize
    },

I renamed the one from line 9036 to getImageSize2, and it worked. I know
this is not a solution, but I think there might be a bug there and I come
here to ask how I could correct it.

Note: I downloaded OpenLayers from GitHub, created a minified version and
this problem was also present.

I hope you can help me.

Thanks.

João

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-does-not-work-Wrong-getImageSize-method-gets-called-tp5171621.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Gmane