Drawing a path with a line in OpenLayers using JavaScript

You would need to make use of the LineString object Here is an example: var lineLayer = new OpenLayers.Layer.Vector(“Line Layer”); map.addLayer(lineLayer); map.addControl(new OpenLayers.Control.DrawFeature(lineLayer, OpenLayers.Handler.Path)); var points = new Array( new OpenLayers.Geometry.Point(lon1, lat1), new OpenLayers.Geometry.Point(lon2, lat2) ); var line = new OpenLayers.Geometry.LineString(points); var style = { strokeColor: ‘#0000ff’, strokeOpacity: 0.5, strokeWidth: 5 }; var lineFeature = … Read more

CSS: position:fixed inside of position:absolute

You mentioned in the comments that OpenLayers uses CSS transforms. That being the case: the element with fixed positioning will become relative to the element with the transform – not relative to the viewport Take a look at the spec: The Transform Rendering Model Specifying a value other than ‘none’ for the ‘transform’ property establishes … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)