1
vote
1answer
46 views

How to render tiles from kml file

I'm trying to render tiles out of a KML file. Normally, I'd render tiles out of an planet.osm extract. For example, I'd select a tag using osmosis and then process it with osm2pgsql. Then I'd ...
4
votes
2answers
64 views

Features not added to KML Vector Layer in Firefox

Has anyone else had a KML vector layer display perfectly fine in Chrome (v35) and IE10+, but fails to add the features to the layer in Firefox (v30)? I'm using OpenLayers 2.12 and have also tested in ...
0
votes
0answers
23 views

Multiple layers from one single KML file

Is it possible to generate multiple layers from a single KML file ? If yes, how can we do it on OpenLayers?
1
vote
0answers
13 views

Many layers from a unique KML files ? (OpenLayers)

I have a KML file generated from a server that contains many networks. I want to know if is it possible to generate one layer for each network from this single KML file ? Thank you!
1
vote
2answers
168 views

Openlayers: Get Start and End Points of Line Vector Features

I'm trying hard to get start and end of lines from a vector. The line vector is loaded from a kml-file. For now, I tried to iterate over features in the vector and grab the start point and put it in a ...
0
votes
1answer
41 views

Problem with adding placemark from kml file with specific id

I have a problem with adding a vector layer from kml file. I am trying to make XMLHttpRequest and add only a placemark with specific id. Nothing is displaying on the map. Request is successful and ...
0
votes
0answers
78 views

FME converter from DWG to Openlayers supported format

FME converter is best software that i found till now to convert DWG to some open format vector data file supported by OpenLayers , but it got very awful convert from DWG to KML/GML it drawing ...
3
votes
1answer
119 views

Loading multiple feature types as one layer in OpenLayers

I have a kml file which contains some polygon and some point features in the same file. I am trying to load and view this layer on my basemap in OpenLayers. The problem is that the polygon features ...
0
votes
0answers
118 views

How to draw 3d objects from .kml file on gwt-openlayers map?

I tried to run gwt-openlayers KML example on my PC but failed to see KML layer. I set protocolOptions.setUrl("http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/kml/lines.kml"); instead ...
1
vote
1answer
70 views

How do you export features in OpenLayers 2.13?

I'm new to OpenLayers (2.13). I saw in the example section that it is possible to draw features like lines, points and polygons. http://openlayers.org/dev/examples/draw-feature.html Quite ...
0
votes
0answers
42 views

Openlayers KML script loads slow

Hy, I made a map with multiple KML layers with large datasets (total 500.000 markers). It works fine but as expected it takes a very long time for the script to load al markers. Is there a way to ...
0
votes
0answers
220 views

Openlayers can't get KML layer to work

I'm trying to load multiple KML layers with this example project from openlayers.org I can make the KML work in almost all other examples but somehow this code doesen't load. It even breaks the code ...
0
votes
1answer
105 views

Geodjango render_to_kml Multipolygons - Can be fast or faster as WMS?

I am learning now geodjango. I made basic web app with postgis database. With openlayers iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml ...
5
votes
3answers
555 views

Advantages of WFS over GeoJSON/KML?

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines on top of an OSM map in several layers. Those points ...
0
votes
0answers
35 views

OpenLayers Enable KML feature based on user form

I have a KML layer with over 300 features, but I only want to display features based on a user form. Each feature has a unique ID and Sector and I have added the entire KML to the map but have the ...
0
votes
0answers
46 views

Edit a KML file with OpenLayer and send the result to GeoServer

I am taking Kml file from GeoServer with OpenLayers Api. I want to editing Kml file in browser with OpenLayers Api and I want to sending edited Kml to GeoServer. How can i do this?
2
votes
2answers
69 views

Why is OpenLayers only displaying the first features in my KML?

I have an OpenLayers map (that you can find here, use the blue search area) that reads in a KML string that is written from Perl using data from oracle. It reads the KML like this: var vector_Layer = ...
1
vote
1answer
189 views

Openlayers and KML layer projection issue

I'm not a GIS expert at all, but I've been asked to add a KML layer to an Openlayers map which probably needs some tweaks and that's where I get confused. Let say I have an Openlayers map with the ...
0
votes
1answer
813 views

cross domain problem with :OpenLayers.Protocol.HTTP

this code works with local kml files, but not when the kml files are on my other server, I got 3 error : OPTIONS http://192.168.0.150:9000/files/anonymous/AVGHDOP.kml 404 (Not Found) ...
0
votes
1answer
62 views

Adding KML to OpenLayers as a textstring

I am trying to display a kml as a vector Layer. I have it stored as a Perl scalar variable but have also tried setting it as a javascript variable. I've tried to separate bits of code that I got from ...
1
vote
4answers
2k views

Displaying a KML File on a Vector Layer in OpenLayers

This should be straight-forward, but I am beating my head over it. KML will not display. I have tried from same server and remote server to ensure it is not a cross-domain issue. The KML file loads ...
0
votes
1answer
214 views

Openlayers 2.12 - add selectFeature to button results in “Geometry Undefined”

I have modified the Openlayers mobile Vienna WMS example, and am trying to change the labelButton to allow selecting of features to open a popup. I think it is necessary to do this as on a touch ...
2
votes
2answers
97 views

What is the most appropriate technology for publishing Census (and other) data for small areas?

We have a web application which shows the (United Kingdom) Census data on thematic maps using client-side code (based on OpenLayers) and KML. // This section can be skipped // begin At the moment ...
0
votes
3answers
630 views

KML attribute data on onload of html page using openlayers

How to get KML attribute data on onload of html page using openlayers. This is kml file: click here to get kml file Any help is appreciated. Thanks in advance.
0
votes
1answer
135 views

render kml 10mb KML file cordinates data on OSM map throws stop running script error in OpenLayer.js file

I am trying to render the kml file having 18000 line string data on OSM map using openlayer HTTP strategy. To render OSM map i am using GeoExt.MapPanel and ExtJS 3.4 viewport. The problem is I am ...
2
votes
1answer
1k views

How to display several points of a KML with the same coordinates in OpenLayers?

I've got a KML, where several points have the same coordinate, similar to following code: <?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> ...
2
votes
1answer
295 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
1
vote
0answers
913 views

Is there a way for me to load a KML files locally in Openlayers

Recently I posted this question KML file seems to load in Openlayers without error but doesn't show vectors because I was having trouble getting KML vector data to show up. After searching around ...
0
votes
1answer
359 views

KML file seems to load in Openlayers without error but doesn't show vectors

I'm trying to load a KML file into an Openlayers map. It seems to successfully run but I am not seeing anything show up on the map. Vectors should show up in an area of New Mexico if it's working ...
1
vote
2answers
232 views

Select KML feature with specific attribute

Im using Openlayers, and importing polygon data to the map with KML files. How could i select the feature which has the attribute name="TEST" ? KML def: <Placemark> ...
3
votes
3answers
703 views

Load and display a large number of points using openlayers

I am using OpenLayers.Layer.Vector to load and display KML files. Some of the KML files have a large number of points in them (lets say around 20,000). I am surprised they load at all (in chrome), but ...
2
votes
1answer
1k views

Openlayers KML Layer Styling

I am trying to change styling of Overlay KML layer in Openlayers, but I am not able to do so. here is my code: <!DOCTYPE html> <html> <head> <title>OpenLayers KML as Base ...
2
votes
1answer
619 views

KML from PostGIS Geometry into Openlayers

im getting the KML value from my postgis database.. st_askml() And the output is like this: ...
2
votes
2answers
257 views

Using OpenLayers how can I Extract some information relative to the whole KML file?

I am creating a KML layer like this: new OpenLayers.Layer.Vector("KML", { projection: myDisplayProjection, strategies: [new OpenLayers.Strategy.Fixed()], ...
2
votes
2answers
1k views

KML from EPSG:4326 to EPSG:900913

im trying to create KML files manually (XML format) by extracting data from a postGIS database with "geography" values in a column. But i belive i need to transform the projection of each row in the ...
1
vote
1answer
224 views

How to Add a KML from My Google Maps to OpenLayers?

I would like to add this kml-link from Google Maps to an OpenLayers instance. The following code is not working: var layer = new OpenLayers.Layer.GML("KML", ...
1
vote
2answers
976 views

How to highlight kml features in openlayers

I'm trying to make the features from a kml layer highlight on hover, but it doesn't seem to work for me. On the other hand, if i create a vector layer with a polygon feature it works just fine. I made ...
3
votes
2answers
149 views

Need advise on map site design (When to wms/kml)

I'm building a web system from scratch (based on openlayers). All layers in map will be my own (raster and vectors). I want to show polygons/points on map and when user click on them he gets info or ...
2
votes
1answer
410 views

Openlayes - Loading 3 different KMLs via proxy; one appears and the others don't

I'm loading 3 KMLs using an ashx handler taken from http://code.google.com/p/iisproxy. The 3 KMLs I'm trying to load are Openlayers sundials ( http://openlayers.org/dev/examples/kml/sundials.kml ), ...
0
votes
0answers
28 views

How can I add KML to OpenLayers from remote server [duplicate]

Possible Duplicate: Problems adding KML layer in OpenLayers I'm trying to add the following KML to my Openlayers project: http://www.marinetraffic.com/ais/ge_marinetraffic.kml using this ...
3
votes
2answers
691 views

OpenLayers 2.12 + KML from String + Change markers'icons

Reading this post How to add KML data but from variable - not from url? I changed the way of reading KML files (from HTTP to a string loaded using jQuery) /** * The OpenLayers object * @type ...
2
votes
2answers
650 views

Openlayers - how can I parse a KML file

I have found some info on here regarding opening a KML file (with groundoverlay) from a url in Openlayers. In order to open a KML with groundoverlay, it must first be parsed. However, after I GET, I ...
1
vote
1answer
251 views

Parse a KML for Openalyers

I am trying to get a kml from a URL to display in OpenLayers. However, it is a ground overlay so it cannot be displayed the standard way. I found this thread: Does OpenLayers supports KML Ground ...
2
votes
2answers
576 views

Exporting OpenLayers.Layer.WMS to GeoJSON / KML

I'm looking the way to exporting an especific region of a WMS layer to some XML format (GeoJSON, GML, KML) using OpenLayers and Geoserver. I've found how to export features objects with ...
2
votes
1answer
461 views

Problems using 2 maps with multiple layers and loadend event

I have 2 or more maps with one ore n layers on each map. Now I want zoom to extent for each map, but the getDataExtent returns only for the last layer in the last map a bounds. Can you help me? Here ...
2
votes
1answer
899 views

Problem with layer order in OpenLayers and Google styled maps

I'm using OpenLayers with Google styled maps. My biggest problem is KML polygon layer which needs to be under roads layer but it isn't (see prtscr). What am I doing wrong? This is my coding: ...
3
votes
1answer
472 views

How to show a point on mouse over a hidden polygon?

Any suggestions on how to show a point on mouse over a hidden polygon? A single kml file contains two polygons and two points as in the image, I've hidden these polygon and point by setting stylemap ...
3
votes
5answers
3k views

How do I make KML overlays appear in OpenLayers at all zoom levels?

I need to overlay KML polygons on basic map in OpenLayers. I need that KML is visible on every zoom level. I did some coding, but my KML is not showing up. What am I doing wrong? Thanks. <!DOCTYPE ...
0
votes
1answer
502 views

How to create KML file with OpenLayers?

I try to create kml file from features. My code var feature=myVecLayer.getFeatureByFid('filedata.1'); var format; function GetKMLFromFeatures(feature) { ...
2
votes
1answer
1k views

OpenLayers Vector KML draw black when change the style

I am trying to change the style of an OpenLayers.Vector using radio buttons and redraw it, but the result is a black vector. I tried own build OpenLayers11 and 12, beside api openlayers hosted. ...