[OpenLayers-Users] consulta openlayers

maurotello maurotello73 at gmail.com
Sat Aug 3 09:44:11 PDT 2013


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
maurotello73 at gmail.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130803/b013841f/attachment.html>


More information about the Users mailing list