====== MAPAS web ====== ==== Extensiones OSM ==== [[https://mappinggis.com/2017/01/plugins-para-openlayers-3/]] [[http://viglino.github.io/ol-ext/]] ejemplo: Test Maps
sdf asdfs dfasfd ===== Ejemplo 2 ===== locations = [[-77.3861, 38.9695], [-122.1781, 37.459], [-122.1781, 37.459], [-122.1781, 37.459], [-122.1781, 37.459], [-122.1826, 37.3762], [-122.1781, 37.459], [-122.1826, 37.3762], [-122.1826, 37.3762], [-122.1826, 37.3762]]; var lines = new OpenLayers.Layer.Vector("Lines Overlay"); var coordinates = []; for (var i = 0; i < locations.length; i++) { coordinates.push(new OpenLayers.Geometry.Point(locations[i][0], locations[i][1]).transform(fromProjection, toProjection)); } var feature = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString(coordinates)); lines.addFeatures(feature); map.addLayer(lines);