Wolfgang Wienke | 15 Jul 21:04 2015
Picon
Picon

text over of a map

Hi,
I hope anybody will help a dummy to solve the problem. I want to place
two texts at different positions over a map.
I took an API-example and tried to simplify it for my task. The above
script works, but it places BOTH texts at BOTH positions.
Which is the misunderstanding? Can I find everywhere more explanations
than in the API-docs and exmaples?
Which is the easiest solution for the following script?

<!DOCTYPE html>
<html>
<head>
<title>Clustering example</title>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.7.0/ol.css"
type="text/css">
<script
src="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.7.0/ol.js"></script>
</head>
<body>
    <div id="map" class="map"></div>

<script>
var features = new Array(2);
features[0] = new ol.Feature(new ol.geom.Point([4000000, 4000000]));
(Continue reading)

joaorodr84 | 14 Jul 20:54 2015
Picon

setOpacity does not work on google layers

I am working on a GIS API that uses OpenLayers 2.13.

I also use the google layers: OpenLayers.Layer.Google.

The opacity options does not work with google layers.

I define my map and layers like this:

    map = new OpenLayers.Map('map', {
        allOverlays: false,
        autoUpdateSize: true,
        displayProjection: new OpenLayers.Projection('EPSG:4326'),
        numZoomLevels: 16,
        projection: new OpenLayers.Projection('EPSG:900913'),
        zoomMethod: null,
        units: 'km'
    });

    map.addControl(new OpenLayers.Control.LayerSwitcher());

    var osm = new OpenLayers.Layer.OSM();

    var google = new OpenLayers.Layer.Google('google', {
        map: map
    });

    map.addLayer(google);
    map.addLayer(osm);

    var center = new OpenLayers.LonLat(-0.125, 51.5);
(Continue reading)

stoner | 9 Jul 22:49 2015
Picon

ol3 and react js / flux?

I'm looking at creating an application using react js[1] and writing an open
layers 3 react component.  Obviously they can live side-by-side, but I was
wondering about the handling vector data, and the various flux[2] or flux
like [3] workflows.

I've found a couple leaflet examples, working with data, but no open layers
examples.  So as I'll rather not find this out the hard way my question is: 

Is there anything inherent differences between leaflet and openlayers that
means leaflet is a better match for react? 

Thanks, 

Michael Stoner

[1] http://facebook.github.io/react/ 
[2] http://facebook.github.io/flux/
[3]
http://www.christianalfoni.com/articles/2015_04_26_Handling-complex-state-with-Baobab

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ol3-and-react-js-flux-tp5215124.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
stoner | 9 Jul 22:46 2015
Picon

ol3 and react js / flux?

I'm looking at creating an application using react js[1] and writing an open
layers 3 react component.  Obviously they can live side-by-side, but I was
wondering about the handling vector data, and the various flux[2] or flux
like [3] workflows.

I've found a couple leaflet examples, working with data, but no open layers
examples.  So as I'll rather not find this out the hard way my question is: 

Is there anything inherent differences between leaflet and openlayers that
means leaflet is a better match for react? 

Thanks, 

Michael Stoner

[1] http://facebook.github.io/react/ 
[2] http://facebook.github.io/flux/
[3]
http://www.christianalfoni.com/articles/2015_04_26_Handling-complex-state-with-Baobab

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ol3-and-react-js-flux-tp5215123.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
michael6779 | 9 Jul 13:48 2015

Update the_geom field only

Hi,

Is there anyway to have only the_geom field updated when you save the
feature?

At the moment I'm using Geoserver with Openlayer 2.13 and I have a table
with a bit field in it.  Currently Geoserver doesn't support writing to
bitfields but it supports reading from it.

What I want to do is update the geometry field of a feature but not alter
other attributes.  Is this possible?

I tried deleting the attribute like this

delete feature.attributes[attributeName]

or setting the attribute to null like this 

feature.attributes[attributeName] = null

But it doesn't work and still fail to save.  

I know that the bit field is preventing the feature from saving as I have
verified that it works by removing that field in database and saving.

Michael

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Update-the-geom-field-only-tp5215041.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
(Continue reading)

toni hernández | 9 Jul 09:05 2015

Reprojecting on the fly a GML layer from WFS

Hi there,

I am working with Openlayers 3.6 and I am trying to display a gml layer from a WFS service. And not only that, I am also trying to reproject this layer from epsg:4326 to epsg:3857. This part of the code looks like:

    vectorSource.addFeatures(gmlFormat.readFeatures(data, {dataProjection:'EPSG:4326', featureProjection:'EPSG:3857'}));

The entire example is here

http://sigserver4.udg.edu/apps/ol3/wfs_usa_states.html

After loading the page, no error is thrown but the gml layer is not displayed.

After executing this (in the javascript console)

vectorSource.getFeatures()[5].getGeometry().getCoordinates()

I get something like

[[[[4641827.511692658, NaN, 0], [4626910.811245848, NaN, 0], [4607302.996137521, NaN, 0], more...

So, Is there a problem reprojecting "minus" coordinates formated like "-xxx.xxxx"?

The same example works fine if I add the outputformat=JSON to the WFS call, but I would like to use GML if possible for didactic purposes (I am developing a course about OpenLayers). Also, the example works fine if I do not reproject features, and change the srsnam param to srsname=EPSG:3857.

Any ideas?
Thank you all.

--
Toni Hernández Vallès
Servei de Sistemes d'Informació Geogràfica i Teledetecció
-
Universitat de Girona
SIGTE
-
Pl. Ferrater Mora 1
17071 Girona
Tel +34 972 418 039 (7026 intern)
toni-5gccqtd/IEERA9EQCv0AEA@public.gmane.org

http://www.sigte.udg.edu
Twitter http://twitter.com/SIGTE_UDG

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Phil Scadden | 7 Jul 06:21 2015
Picon

Geoserver GWC layers plotting offset at some zoom levels.

I have GWC tile caching turned on for a layer in geoserver 2.7.1.1 
(direct integration turned on), then at some zoom levels, it plots 
displaced from where it should be. Turn GWC off for the layer, refresh 
browser, and it plots okay. This when calling as WMS layer from 
Openlayer 2.13-1 master. I remember this being an issue back in 2012 and 
issue https://github.com/openlayers/openlayers/issues/688 is still open. 
I am not doing any pre-seeding. Problem only occurs at some zoom levels.
A request looks like:

http://myserver/wms?LAYERS=mylayer&TILED=true&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG:3857&BBOX=18628621.034844,-6521221.593125,18785164.06875,-6364678.5592188&WIDTH=256&HEIGHT=256

Note the EPSG:3857 - the tileset in GWC is 900913 but I am guessing the 
equivalence is handled.

Is this still the maxextent playing badly?

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.
byhisdeeds | 3 Jul 01:58 2015
Jan Tappenbeck | 1 Jul 18:30 2015
Picon

Problems to by error-images

  Hi !

we have a project in this url: 
http://www.ferrylines.com/fileadmin/osm-ferry-v2/deu/ferry_iframe.php?id=1&iscale=0

when you zoom into the map and the level is 7 (not show in website) 
there will come images that will not show. the image is not avaible!

in css-file 
http://www.ferrylines.com/fileadmin/osm-ferry-v2/css/style.css there was 
a command

.olImageLoadError {
     display: none !important;
}

but when this is active - in firefox no map will show.

the used ol-version is 2.12.

did someone have an idea ?? in the past the map will work fine. is this 
a problem of firefox-versions? i used 38.0.5

regards Jan
Bretschneider, Danilo | 1 Jul 08:56 2015
Picon

WMS request with custom header

Hi,

during my research I've got different answers on how to set a custom header for WMS request. I need a header
entry like

headers: {
  "sendBy" : "OpenLayers"
}

The custom header works fine for GetFeatureInfo requests, but not for GetMap requests. It is possible to
create custom header for GetMap requests in OL?

Kind regards

Danilo Bretschneider
Wolfgang Wienke | 30 Jun 20:38 2015
Picon
Picon

problem of understanding point of Time for map drawing

Hi,
if I understand right, a map is drawn, when the map object is defined.
Is there no possibility of "redraw the map" (for example with other
overlays)?
Do I have to declare all overlays BEFORE drawing and set their visibility?
--

-- 
                               mit freundlichen Grüssen

                                     Wolfgang Wienke

Gmane