var kmlString = result;
            
            var features = new ol.format.KML().readFeatures(kmlString, {
                dataProjection: 'EPSG:4326'
                
            });

            var KMLvectorSource = new ol.source.Vector({});

            var KMLvector = new ol.layer.Vector({
                source: KMLvectorSource,
                visible: true
            });

            KMLvectorSource.addFeature(features);
            map.addLayer(KMLvector);

hi guyz I'm trying to get a KMLlayer that returns a geometry of polygon and 
i catch it to a string
i did the code above as i research but it doesn't work

-- 
You received this message because you are subscribed to the Google Groups 
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/openlayers-dev/9618034f-ddb0-45bf-94b7-e08befa4219a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to