New answers tagged kml
perhaps a bit late but: You need to set extractStyles: false on your KML layer if your KML content doesn't contain styles (even when it does contain styles, chances are it will not work with the styles defined in the KML itself). I've spent a great amount of time and I pretty much came to the conclusion that openlayers is quite picky on the KML format. ...
You cannot extract data from Google Maps. What you could do, is to get the data from other sources. Depending on your Area of interest, the boundary might be available from your local government agency, or even OpenStreetmap.
Sorry everyone, I was miss-spelling 'longitude' as 'longtitude' and so the (not valid) tag was silently ignored by the parser.
Get Global Mapper, all you have to do is bring in the KMZ or KML then export Vector IMG (ESRI SHP File). Global mapper can read most file types. Then open the shape in ARC, Global mapper, Manifold, QGIS, ect and view the attribute table. All info will be there. you can also open up the DBF file from the SHP with Microsoft Excel at this point and then save as ...
psha.org seems cool, this one worked for me: http://harrywood.co.uk/maps/examples/leaflet/kml.view.html It gets the job done adding a KML layer to leatflet map.
I employed a trick described here and could get all your polygons in one page Trick is: First get the URL of the KML export. When viewing your Custom Map, right click the 'KML' link and copy the link to the clipboard (probably something like 'Copy Shortcut' or 'Copy Link Address' - depends on your browser) Now display your KML again. I have ...
In Silverlight, the KMLLayer has a ProjectionService parameter that you can bind to the GeometryService. This example does something similar with a GeoRSSLayer, and it should work the same with the KMLLayer.
WFS gives your client (OpenLayers) the option to perform its calls using different Strategies for the WFS Calls: BBOX: reads new features when the viewport invalidates some bounds. Cluster: for vector feature clustering. Filter: for limiting features that get added to a layer by evaluating a filter. The strategy maintains a cache of all features until ...
Keep in mind that WFS is already a service which returns its data format (mixture of OGC standards). GeoJSON and KML are only a data format, you'll have to build the service to return the data. So included with WFS are already advanced filtering capabilities such as temporal filters, spatial filters (intersect, touches, overlaps...) as well as logical and ...
First of all, I recommend you to read the spec. The biggest pro of WFS is that it is official and standardized way to access vector data. That means when you use WFS, you do not have to reinvent to wheel (e.g. what should happen when two people edit the same feature at the same time?). It is also much easier to share data over WFS than using GeoJSON or KML ...
Try creating a Layer Group then downloading that as KML.
Well, to my knowledge it would be rather hard to create a new file, on the fly, for a user to download without some sort of server-side work (ex: via PHP, ASP, ... or something of the sort). Also, the comment above may or may not meet exactly what you're looking for. But, that said, if you're wanting to create your own solution more from scratch, then at ...
Try to change file extension from kml to xml
The Layer To KML tool only takes as input: The feature or raster layer or layer file (.lyr) to be converted to KML Consequently, you will need to use the Make Feature Layer tool first which Creates a feature layer from an input feature class [including shapefiles] or layer file.
Top 50 recent answers are included