Show KML layer with draw features and a export-to-png button · Issue #3652 · openlayers/ol3 · GitHub

Hello there! I have a script, that can show kml layers and draw features... but the export-to-png button isn't working. here's a link to the website where the script is running http://www.jourdan.org.br/geojourdan-teste/ and here's the script. Can anyone help me with this? I'm almost a week trying to solve this. Thanks! OpenLayers KML Example <,br>, #map {<,br>, height: 400px,<,br>, width: 1000px,<,br>, }<,br>, .ol-attribution a {<,br>, color: black,<,br>, }<,br>,<,br>, // new OpenLayers.Projection('EPSG:4326'), // transform from WGS 1984 map.getProjectionObject() // to Spherical Mercator Projection ), var zoom = 2, map.setCenter(lonLat, zoom), // new OpenLayers.Projection('EPSG:4326'), // transform from WGS 1984 map.getProjectionObject() // to Spherical Mercator Projection ), var zoom = 2, map.setCenter(lonLat, zoom), //Add a selector control to the kmllayer with popup functions var controls = { selector: new OpenLayers.Control.SelectFeature(kmllayer, {onSelect: createPopup, onUnselect: destroyPopup}) }, function createPopup(feature) { feature.popup = new OpenLayers.Popup.FramedCloud('pop', feature.geometry.getBounds().getCenterLonLat(), null, ' Also in the future, please ask questions on StackOverflow with the tag openlayers (for OpenLayers 2) or openlayers-3 (for OpenLayers 3.) Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 2:10 pm