adding support for line breaks to SVG, SVG2 and Canvas renderers. Also adds vertical alignment support to Canvas. p=vog,fredj,me r=me (closes #2193)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
fillOpacity: 0.5,
|
||||
pointRadius: 6,
|
||||
pointerEvents: "visiblePainted",
|
||||
label : "name: ${name}, age: ${age}",
|
||||
// label with \n linebreaks
|
||||
label : "name: ${name}\n\nage: ${age}",
|
||||
|
||||
fontColor: "${favColor}",
|
||||
fontSize: "12px",
|
||||
@@ -113,7 +114,7 @@
|
||||
|
||||
map.addLayer(vectorLayer);
|
||||
vectorLayer.drawFeature(multiFeature);
|
||||
map.setCenter(new OpenLayers.LonLat(point.x, point.y), 3);
|
||||
map.setCenter(new OpenLayers.LonLat(-109.370078125, 43.39484375), 4);
|
||||
vectorLayer.addFeatures([pointFeature, polygonFeature, multiFeature, labelOffsetFeature, nullFeature ]);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user