Hola buenos dias!! necesito crear puntos a través de un txt, lo que hago
actualmente es leer el txt, prasearlo para obtener los valores de lat y lng
y con una function en JS creo los puntos, pero no funciona, adjunto la
funcion

function dibujar(lat,lon,geoname){
         lat = parseFloat(lat);
         lon = parseFloat(lon);
         var feature = new OpenLayers.Feature.Vector(new
OpenLayers.Geometry.Point(lat+","+lon).transform(new
OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()),{});
         nuevos.addFeatures(feature);

    }

Los valores llegan pero no construye el punto. Ayuda por favor

-- 
*Mauro Tello
Programador - Desarrollos Webs
[email protected]
02920 - 1553 8998
Viedma, Río Negro
Patagonia Argentina*




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/consulta-openlayers-tp5070632.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to