Tagged Questions
0
votes
0answers
20 views
OpenLayers what is the last event when everything is rendered?
I have a Openlayers map with an OSM layer and a KML layer.
The KML is added by parsing some text from using OpenLayers.Format.KML (so no "loadend" event seems to fire).
What is the last event that ...
0
votes
1answer
48 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
74 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">
...
0
votes
0answers
107 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 ...
0
votes
0answers
60 views
How can I display remotely the Panoramio's KML layers
I'm trying to display in my web portal the Panoramio's kml layer. The above code developen in OpenLayers is what I'm doing:
mapa = new OpenLayers.Layer.Vector("Panoramio Photos", {
projection: ...
0
votes
0answers
176 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
167 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
114 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
218 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 ...
1
vote
1answer
273 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
210 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
115 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
290 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
135 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
1answer
255 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
96 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
171 views
Openlayes - Loading 3 different KMLs via proxy , one appears the others don't
I'm loading 3 KMLs using 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 ) Marine ...
0
votes
0answers
23 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
397 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
405 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
165 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
299 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
311 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
531 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
258 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
1k 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
337 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) {
...
1
vote
1answer
774 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.
...
2
votes
1answer
502 views
'undefined' is not a constructor (evaluating 'new > OpenLayers.Layer.GML'
My OpenLayers map was working fine before, showing a KML overlay. Suddenly it broke. Now I see this error in my browser error console.
TypeError: 'undefined' is not a constructor (evaluating 'new
...
2
votes
3answers
651 views
openlayers attribute substitution failing on kml file
I'm trying to read in mile markers for a marathon from a .kml file and use the MILE attribute to set the label. My layer code looks like this:
// add layer
mile_markers_layer = new ...
2
votes
1answer
1k views
Problems adding KML layer in OpenLayers
I'm stuggling to add a KML layer to a simple test OpenLayers map - no errors are shown, but the KML layer does not display on the map.
I've tried multiple samples including the Sundials on a ...
0
votes
1answer
172 views
How to cluster kml features in OpenLayers
Is it possible to cluster KML features in OpenLayers, and are there any samples?
I can find separate samples for clusters and KML but nothing which handles both together.
Thanks
3
votes
4answers
585 views
can't read attribute from map file (.kml) using openlayers
I want to create thematic maps using openlayer with kml map. but when i run the code, color and label thematic maps of the polygon can't show up. instead writing out undefined. what's the cause? are ...
1
vote
1answer
450 views
Filtering a loaded kml file in OpenLayers
I'm trying to create an interactive search engine (for finding event tickets) of which one of its features is a visual map that shows related venues using OpenLayers. I have a plethora of venues ...
3
votes
2answers
957 views
Openlayers create, edit and save/export to kml
I'm trying to create, edit and save a point vector as kml file in an Openlayers app. I have managed the create and edit by adding and empty vector layer and then adding the control
...
1
vote
0answers
126 views
Why can't Android phones render this KML poly?
Our outage map works well in browsers and most mobile devices. The map can be found here:
Test Outage Map
However, on Android phones the perimeter polygon is rendered as black. Have tried changing ...
0
votes
2answers
351 views
Is there a way to get Openlayers' KML reader to deal with tessellation?
I'm trying to use OpenLayers' KML reader to display a KML file on a map, but the KML itself has LinearRings tha have a tessellate value of 1. I realize that this is used by google earth to snap the ...
4
votes
1answer
522 views
How to prepare SVG images for presentation in OpenLayers?
I have a collection of SVG vector images I need to display on a map, probably using OpenLayers/KML. Is there any way to convert a vector image from SVG to KML? Or would it make more sense just to use ...
3
votes
3answers
2k views
How to register onclick handler for *all* KML feaures in OpenLayers?
I'm a newbie using OpenLayers with JQuery to display vector data from KML files. I'm creating the layer like this:
newlayer = new OpenLayers.Layer.Vector( layerid, {
projection: ...
0
votes
1answer
589 views
How to highlight track in KML on hover with OpenLayers
I have KML layer with multiple tracks and I would like to highlight them individually on mouse hover. I tried to implement this like in the example found in OpenLayers examples, but couldn't get it ...
3
votes
1answer
834 views
OpenLayers.Format.KML write style
I would like to apply a style to the KML that gets generated from the write() operation of OpenLayers.Format.KML. The current style that is on the vector layer does not get exported with this code:
...
4
votes
1answer
794 views
Does OpenLayers supports KML Ground Overlays?
I am not able to display Ground Overlays in a KML file with OpenLayers. Does OpenLayers supports KML Ground Overlays? If not, how would I proceed in writing my own code or plugin for OpenLayers so ...
3
votes
1answer
664 views
Why is Openlayers KML-layer undefined when using permalink
I am working on Openlayers to dynamically load KML tracks on map. I want it to load filtered KML everytime map is moved or zoomed based on viewport and zoom level.
I got it working with code below, ...
5
votes
1answer
547 views
How to create a balloon for a dynamic KML file?
I want to create a balloon for a KML file that dynamically moves.
The example that I am working on is sundials.html.
Let's say that the KML is moving. How we would get the balloon to move as well?
...
3
votes
2answers
1k views
How to label a dynamic KML file in OpenLayers?
How can I display labels for features in a KML file on an OpenLayers map. I was thinking of using popup messages, but labels are more attractive and eye-catching.
I want to replicate the labeling ...
3
votes
3answers
4k views
How to dynamically update a KML layer in OpenLayers 2.10?
Arguably, this is a easy question for you guys GIS expert. Here is the question, how to outsource a dynamic KML file using JavaScript in OpenLayers. I want to refresh every 7 seconds.
Below are ...
0
votes
1answer
1k views
Feature geometry attributes to KML
I'm using the OpenLayers.Format.KML class to export the features in MyLayer to KML. However my features have attributes attached to the geometry object i would also like to have exported to the KML ...
7
votes
4answers
4k views
Plotting KML files onto a Google Map
I would like to show a map on my website.
I have 2 different kinds of KML files that need to be plotted. One defines region boundaries. The other points within those boundaries.
The region boundaries ...
2
votes
3answers
2k views
Render vectors from OSM data in POSTGIS database
I'm a newbie when it comes to mapping application. I had successfully loaded my OpenstreetMap data in a Postgresql/PostGIS database. Now my problem is how to render the vector data (the POI's, ways, ...


