Joseph Armbruster | 1 Jul 22:43 2016
Picon

Re: OL2 - layer label opacity

João,

This is true and the snippet you provided does illustrate all of the
items of interest.  In your example, if you add vector.setOpacity(0.2)
before your 'var center' statement, this will illustrate my situation.
You will notice the labels opacity change.  What I am looking for is
the fontOpacity to remain the same even if the layerOpacity is
changed.

Is there a trivial way to implement an override?

Thank You,
Joseph Armbruster

On Wed, Jun 29, 2016 at 6:59 PM, João Rodrigues <joaorodr84 <at> gmail.com> wrote:
> Hi.
>
> I don't know if I understood you question, but there is definitely a
> fontOpacity option.
>
> I made you an example:
>
> http://codepen.io/joaorodr84/pen/XKRWXy
>
> Please, let me know if this is what you asked for.
>
> Kind regards.
>
> João Rodrigues
>
(Continue reading)

prashu84k | 30 Jun 08:14 2016
Picon

Re: OL2 - layer label opacity

Hi,

You can set opacity while assigning rgba(0,0,0,0.9) color code to label. Set
opacity in last parameter varies from 0.0 to 1.0.See if this works.

Regards,
Prashant

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OL2-layer-label-opacity-tp5274067p5274095.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
Joseph Armbruster | 29 Jun 22:02 2016
Picon

OL2 - layer label opacity

Hi,

Is there a simple way to change the layers label opacity independent
of the layers opacity.  I have some code that calls into
layer.setOpacity and I would like all of my calls to this function to
not operate on feature geometry but not the labels.  Is this possible?

On this topic, should there be a fontOpacity within
layer.styleMap.styles.default.defaultStyle?

Thank You,
Joseph Armbruster
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Stephen W. Boyd | 9 Jun 21:24 2016
Picon

Uncaught typeerror: Cannot read property 'style' of undefined in OpenLayers 2.12 using Google maps

Suddenly I am getting:

Uncaught typeerror: Cannot read property 'style' of undefined in OpenLayers.js Line 1063 when using Google maps. I don't get the error when using OpenStreetMaps. I am using OpenLayers 2.12 and Chromium.

After the error reported above I am also getting:

Google Maps API warning; NoAPiKeys
Google Maps API warning: SensorNotRequired
Google Maps API warning: Retired version.

Since my code has not changed in a year or more I can only assume that something has changed in Google maps.

Has anyone else come across this error and found a solution?



Virus-free. www.avast.com

Virus-free. www.avast.com
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Rachid Nedjai | 7 Jun 12:30 2016
Picon

Question

Dear all

Currently I try to create a webmapping application by using geoserver, 
geowebcache and openlayer 3. I try to add a panel with a list of layers 
given from geowebcache. Is there any body whom can help or give me an 
example to follow
Thanks for the help

--

-- 
Professeur Nedjai Rachid
Eau - géomatique
Responsable du Master GEOGRAM
Responsable de la spécialité ECG (Eau-Cartographie-Geomatique)
Université d'Orléans
UFR Lettres Langues et Sciences Humaines
Tél : +33 2 38 49 40 05
Port. 33 6 75 36 49 09

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
"Sebastian Teßmer" | 3 Jun 14:39 2016
Picon
Picon

Cluster on Marker Layer

Hi everybody,

my task is to create a cluster on a marker layer.

Can anybody tell me how to do that?
 

Many thanks

 
My Code:
 
 var antraege=new OpenLayers.Layer.PopupMarker('Anträge', {
        createIconFromData: function (data) {
            return new OpenLayers.Icon (data.icon, {w:25,h:30});
        },
       createHtmlFromData: function (data) {
            return '<p><table style="width: 100%"><tr><td><strong>Antragsnummer</strong></td><td>' + this.html(data.antragsnummer) + '</td></tr>' +
      //'<tr><td><strong>Status</strong></td><td>' + this.html(data.stat) + '</td></tr>' +
      '<tr><td><strong>Fortführungsriss</strong></td><td>' + this.html(data.fr) + '</td></tr>' +
      '<tr><td><strong>Bearbeiter</strong></td><td>' + this.html(data.Bearbeiter) + '</td></tr>' +
      '<tr><td><strong>Auftragsart</strong></td><td>' + this.html(data.Auftragsart) + '</td></tr></table>';
        },
        location: "korrd3.txt"
    
 
    });
  map.addLayer(antraege);

 
     
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Geo-6 | 26 May 15:18 2016
Picon

Get layer name from WMS GetFeatureInfo (Mapserver / GML)

 

Hi everyone,
 
I try to query a WMS Service (hosted by myself with mapserver) with GetFeatureInfo in GML output.
 
It works fine but how can I know from which WMS layer the feature is from when using ol.format.WMSGetFeatureInfo().readFeatures() ?
 
I try to use "layers" option from ol.format.WMSGetFeatureInfo() to split the features by layer but my WMS service has layer groups so it does not work (the layer name I got from GetCapabilites is not the layer name returned byt GetFeatureInfo in GML).
 
Could you help me or give me some tips ?
 
Thanks.
Have a great day.
 
--
Jonathan Beliën
Geo-6

 

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
prashu84k | 10 May 06:49 2016
Picon

Add image into cluster symbol

Hi All,

I am showing clustered data on map but I want to add a small image inside
circle symbol.

So cluster will look like this : 

<http://osgeo-org.1560.x6.nabble.com/file/n5265494/Sample.png> 

I am trying to avoid to create two separate styles, one is for circle and
other is for icon.
Is there any way to create single style including icon and circle together.

Any help would be appreciated,

Regards,
Prashant 

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Add-image-into-cluster-symbol-tp5265494.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
Geo-6 | 22 Apr 12:19 2016
Picon

ol.format.WMSGetFeatureInfo : get wms layer name

Hi everyone,

 

I’am switching from Leaflet to OpenLayers3 and I’m quite impressed by OL3 !

 

I use « ol.format.WMSGetFeatureInfo().readFeatures() » to get features from WMS service and it worked very well but I do a GetFeatureInfo (GML) on one service with mutliple layers I’d like to know from wich wms layer my feature comes from.

 

Is it possible ?

 

Thanks a lot,

Have a great day.

 

Jonathan Beliën

GEO-6

 

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Fernando Quadro | 7 Apr 20:14 2016
Picon
Gravatar

onImageLoadErrorColor in OL3

Hi ALL,

In OL2 was used the following line of code not to display the pink screen when geoserver did not run.

OpenLayers.Util.onImageLoadErrorColor = "transparent";

How to do this in OL3?

Thank you!

Best regards,
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Derek Watling | 15 Mar 13:02 2016
Picon

Changing Kinetic setting in OL3

How does one access and work with the ol.interaction.DragPan kinetic property
in OL3?

I am wanting to toggel between the default kinetic behaviour / none.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Changing-Kinetic-setting-in-OL3-tp5256443.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