0
votes
0answers
33 views

How to achieve labeling in openlayers as Google did?

I am tried to find a solution for my question. Please look the images below. Google Google are awesome!!.. They are doing fantastic technique in labeling part. Please look the marked labels, the ...
0
votes
0answers
24 views

Label should appear inside the polygon only

I'm working on vectorLayers of OpenLayers and I'm labeling my layer based on some attribute, while the label appear at some certain zoom level. The problem I'm facing is that though label appears at ...
1
vote
1answer
196 views

Single tiled Mapserver WMS to avoid Labels and features cut along tile borders and repeated labels

I am using Mapserver-wms-openlayers for publishing maps. But there are some issues came across related to duplicate labeling for same feature in adjacent tiles, unwanted breaks in line features along ...
0
votes
1answer
53 views

Labels and features cut along tile borders and labels repeated on many adjacent tiles for same feature in “mapserver” wms using openlayers

Labels and features cut along tile borders and labels repeated on many adjacent tiles for same feature in "mapserver" wms using openlayers. My label portion in mapfile: LABEL FONT arial ...
2
votes
1answer
38 views

OpenLayers: how to display the character degrees in the label

I would like to display temperature in label. So how can I write DEGREE SIGN? to be display as ° I was trying write: & # 176; or & deg; or \ & deg; and nothing. Can anybody knows? I ...
0
votes
0answers
35 views

OpenLayers feature label is not centered

I have a problem with OpenLayers feature label. When I add label to the feature feature.attributes = { fullName: name, favColor: '#880000' }; and show feature on the map, then The label ...
0
votes
1answer
87 views

How to drag label using DragFeature or ModifyFeature?

I am new to openlayer. I have seen the examples in which DragFeature is able to move my points, polygon and lines. But when it comes to test the Label moving in IE8, then the dragging functionality ...
0
votes
1answer
417 views

provide an alternative “label” when styling vector layer with openlayers

I'm using openlayers 2.12 and I am styling a vector layer using your typical new OpenLayers.Style({ Now, this layer does two things. First , renders polygons from Geoserver, so in the style I have ...
3
votes
2answers
134 views

Add labels to points in OpenLayers

I have a Layer: pointLayer = new OpenLayers.Layer.Vector("Point Layer", { strategies: [strategy], styleMap: new OpenLayers.StyleMap({ "default": { ...
1
vote
2answers
176 views

feature label not work in xhtml file

Good Morning: I have a problem, I develop an jsf application with openlayers api, this example http://openlayers.org/dev/examples/vector-features-with-text.html work fine with html page, but when I ...
2
votes
2answers
357 views

How to show/hide labels with mapserver and openlayers

I'd like to have a check/uncheck option like this print checkbox to show/hide labels in my WMS layers served by mapserver 5.6.7 in openlayers 2.11. I have a toolbar where to put this using probably ...
1
vote
1answer
168 views

openlayers and labeling

Okay, I've been banging my head against the wall on this and I'm pretty sure I'm missing something silly. So I'm hoping you guys can help. The idea here is to allow the user to type in the label they ...
1
vote
0answers
104 views

How to make labels appear in Geoserver? (WMS) [duplicate]

Possible Duplicate: How to avoid duplicate labels on each tile? I have an Annotation Shapefile. I added it into GeoServer as point Shapefile and set its label with the help of the style ...
1
vote
1answer
2k views

show a Collection of LineStrings with labels

I use the following peace of code to show multiple LineStrings which have a point as the last one, along with a label: var strokeColors = [...];//"#FFAACC" kind-of elements var linesLayer = new ...
4
votes
5answers
2k views

Openlayers renderer in IE8 - Labels not visible

I copied the source code of http://openlayers.org/dev/examples/vector-features-with-text.html. This url works just fine in IE8. I put the html page as it is in the webfolder in our network. I opened ...
1
vote
1answer
290 views

Openlayers dynamically label polygon segments

My requirement is to show dynamic label on polygon feature's segments with some offeset. The label text should have the rank of each segment. If it is a square which starts at top left corner it will ...
5
votes
2answers
2k views

How to disable polygon Label on the vertices (OpenLayers) in Edit Mode

I added the style on the polygon layer like so. var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']); // get a copy of the default style style.label = "1233456 ha" ...
2
votes
1answer
273 views

Prevent formatting of label text in OpenLayers

I have a vector layer in OpenLayers containing a few point features. Each of my features have an attribute tag which contains a short text identifying the feature. Example: tag: '1e-1' Applied ...
2
votes
1answer
3k views

How can I update the label of a Polygon Vector after it has been drawn?

I am quite new to OpenLayers. Right now, I have a polygon vector with some styling applied and a label. var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']); style.pointRadius ...
3
votes
2answers
2k views

How to label a dynamic KML file in OpenLayers?

How can I display labels for features in a KML file on an OpenLayers map. I was thinking of using popup messages, but labels are more attractive and eye-catching. I want to replicate the labeling ...
2
votes
1answer
834 views

Label halos in OpenLayers

I would like to add halos on my labels on an Openlayers map. I have tried adding the following to my code but no halos display. labelHaloColor: "#FFFFFF", labelHaloWidth: "2", I got that from ...