0
votes
0answers
26 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
4
votes
3answers
97 views

Is there a API which return the geojson data for a countries borders?

Is there a simple free REST API where I can send the name or code of a country and get in return geojson data which highlights it's borders ? I'm writing an application where I will have a changing ...
1
vote
1answer
56 views

GeoJSOn or WFS service to view, edit and save geometries

To view, edit and save in postgis geometries using OpenLayers + Geoserver what is recomenadado use GeoJSON or serivços WFS? I ask this for performance and additionally want the edition is recorded ...
0
votes
1answer
250 views

Read GeoJSON with openlayers

I generated a GeoJSON a projected table in EPSG: 4326 domeu postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put in the www folder on my server I'm running geoserver locally my pages are also in ...
0
votes
0answers
35 views

OpenLayers GeoJson style

I have a GeoJson that I'm displaying in OpenLayers. I created a style map and added it to a layer. The problem is that in GeoJSON I have two types of features - Points and Linestring. And they both ...
0
votes
1answer
82 views

Using Openlayers Protocol.HTTP GeoJSON format

just took Openlayers GeoJSON Example and inserted the features to file json1.json instead using a variable, then tried to preform HTTP call: var epsg4326 = new OpenLayers.Projection('EPSG:4326'), ...
2
votes
3answers
127 views

ShapeFile to GeoJson conversion

I am working with OpenLayers. I want to convert ShapeFile into GeoJson format and send it to browser to show with OpenLayers. But problem is when the size of my shape file is so big like 60MB or ...
0
votes
1answer
168 views

Issue with a point insertion into a Geoserver points layer. WFS-T

How is the best way to insert a feature from the client side into an existing GeoServer layer? Maybe using an ajax call and JSONP? Or OpenLayers (i can't figure out how to have the proxy working)? ...
2
votes
1answer
248 views

Transform projection from EPSG:4326 into EPSG:900913

. i've got this problem about projection. .i just wanted to know what am i missing. . i already displayed map base layer using openlayers through base_layer = new OpenLayers.Layer.WMS( "OpenLayers ...
1
vote
0answers
380 views

Access-Control-Allow-Origin problem when loading json file from Amazon S3 to display in OpenLayers

This is my code for displaying geojson in OpenLayers, where "geourl" is directed to a json file in Amazon S3. geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new ...
1
vote
2answers
135 views

Printing possible for openlayers GeoJson WFS with Mapfish printing service and wkhtmltopdf?

I searched lots of places but i couldn't find proper examples or documentation to do printing using Mapfish Printing service or Wkhtmltopdf. My application got few WFS layers from openlayers and ...
1
vote
1answer
137 views

GeoJSON vector layer created using OpenLayers is broken

What i want to do here is to create a vector layer (using openlayers) from a GeoServer JSON Response. Actually i'm doing this: var url = ...
1
vote
2answers
114 views

OpenLayers add a json layer to existing map on load

I am new to OpenLayers ... i have managed to build a layer with several features (draw tools, delete and save buttons). When the user draws shapes on the image map and press Save, these are stored ...
3
votes
2answers
210 views

Problem with loading GeoJSON file in OpenLayers generated by PHP

I'm trying to read some geo-data from PostGIS database using PHP, creating a GeoJSON file and showing it on a base map using OpenLayers. The PHP code works just fine. The generated data in GeoJSON ...
1
vote
1answer
92 views

JSONP working with Geoserver and OpenLayers

I'm in this scenario (fighting with the same origin police issue): I have a map initialized with OpenLayers and a WFS request trough the Protocol.Script object that is giving me this error: ...
2
votes
3answers
118 views

How to prepare a multi-colored vector layer?

I need to present a multi-colored vector layer and something similar to below: I need to prepare the vector layer by making use with the data set available in my database. Inside my database, I ...
0
votes
1answer
281 views

External geojson not showing in OpenLayers

I'm new to OpenLayers. I tried some recipes found here to load an external geojson file as an overlay on a map I'm creating and it's not working. The map is loading as well as my base layer, but no ...
2
votes
1answer
369 views

Converting wkt to geojson with OpenLayers

I am trying to convert wkt to geojson wit OpenLayers. I wrote my code based on this question (geojson to wkt). That's what I have so far, but it is not working. Any ideas? var = ...
0
votes
3answers
146 views

Postgis ST_AsGeoJSON() to openlayers security issues?

Im about to implement a python script serving my openlayers code with GeoJson data from PostGIS. However, here How to connect OpenLayers to PostGIS data? I see " Unfortunately you cannot connect a web ...
3
votes
2answers
402 views

Offline Phonegap/Openlayers App

I have a mobile app that uses Phonegap with OpenLayers and Geoserver. Now, I need to make the app available completely offline. The amount of data points can get very large depending on what client is ...
5
votes
3answers
535 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 ...
3
votes
3answers
205 views

Extracting Earthquake Depth from the USGS GeoJson Earthquake Feed for use with Openlayers

I have some GeoJson from the USGS as follows: {"type":"Feature","properties":{"mag":4.3,"place":"30km ESE of Jarm, ...
3
votes
1answer
593 views

My GeoJson will not display on a Vector Layer in Openlayers

I have geoJson from the the USGS that I am downloading to my server. It validates just fine with geojsonlint. When I past the JSON into this Openlayers example it says it is bad input json. My Code ...
1
vote
1answer
275 views

Get Features from OpenLayers Layer.Vector not working

polygon_layer = new OpenLayers.Layer.Vector("Polygone", { projection : projLonLat, strategies : [ new OpenLayers.Strategy.Fixed() ], protocol : new ...
1
vote
0answers
103 views

Possible to rollback from QGIS 2.0.1?

I'm running Ubuntu 12.04 LTS. Unfortunately Ubuntu has automatically upgraded my QGIS from 1.8 to 2.0.1. And 2.0.1 which creates GeoJSON files that OpenLayers cannot parse. Would be best for me to ...
1
vote
1answer
354 views

Converting geojson to wkt with OpenLayers

I was just wondering if there was a good way to convert GeoJson data to WKT data using OpenLayers. The method I've tried is to create a Feature.Vector with the GeoJson and then tried using ...
0
votes
0answers
123 views

saveStrategy and OpenLayers

I am trying to apply code mainly from here http://maps.peterrobins.co.uk/files/ol6.html and create a custom "saving button". Problem is, that my json is loaded (from mysql db) to variable. (This time ...
2
votes
2answers
218 views

Show different marker for cluster and icon for single vector features in OpenLayers

I have a vector layer which is geoJSON file containing school points and their attributes,to visualize this i defined cluster and show circle which size is based on the number of features it contains. ...
0
votes
1answer
144 views

Linebreak in style.Text in Openlayers 3

I have a vector layer from json, and have a style symbolizer: new ol.style.Text({ text: ol.expr.parse('name') }) In an vector layer, some of the nodes contains more than one name. I try to find a ...
0
votes
0answers
139 views

Openlayer seems slow when zooming / panning on vector (geometry line) from geojson. Why?

I have a layer with 7 lines . when I zoom on some of the lines , the maps seems to be very slow. I thought it might be because I bring a lot of points to the client (that represents the line) aa ...
0
votes
0answers
83 views

Is there a big (if any) performance difference between Geoserver SQL Layer and OpenLayers geojson Layer?

I have a table with multiline geography items in SQL Server 2008 (Routes). I want to show them on OL Google Map but I'm having trouble creating SQL Data source in geoserver (something related to ...
3
votes
3answers
682 views

Display GeoJSON layer on top a SVG image instead of a map.

I'm very new to GIS, so hope this is the correct place to ask. Not sure if this will even be possible. This is what I want to achieve: In short, I want to display a set of polygons, lines etc. in a ...
1
vote
2answers
244 views

Can't read returned geojson

I've got a function that takes an Openlayers mouse click and puts the click location into a SQL statement which then gets passed to a JSP script which runs the SQL statement on the PostGIS database ...
1
vote
1answer
168 views

How do you make a function for changing projection with proj4js in Openlayers?

I have included Proj4js in OpenLayers. I would like to create a function (so I can use a make a button). To change the projection of my map. I have included in javascript Proj4js.defs["EPSG:54008"] ...
0
votes
2answers
107 views

How do you get all info from GeoJSON layer in Openlayers?

In OpenLayers I have added a GeoJSON layer (of the world) and created a simple infotool. The GeoJSON layer contains multiple features for some countries. If I click on a country I only get one ...
1
vote
1answer
200 views

OpenLayer and not well formed Json

I am learning to use GeoExt and OpenLayers, and I want to reproduce one of the examples given at the geoExt website. The script call a GeoJSON containg the position of Alp summits. I downloaded it via ...
-2
votes
1answer
59 views

Render specific vector data from database with openlayer

I want to render some data on a map. They are stored as points in my database (postGiS), each one is associated with a name. I want to render points with the same place name in the same color. ...
3
votes
2answers
123 views

Performance loss for OpenLayers EPSG transformation? Storing GeoJSON coordinates in lat/lon or in native map projection?

For a project the map projection is EPSG:32468 (tiles). On top of the map, two or three GeoJSON LineStrings should be displayed using OpenLayers. Each LineString has about 1500 coordinates. ...
4
votes
3answers
760 views

Interacting between Openlayers and Python

I have a openlayers website like this one that gives the user the ability to draw polygons and then creates a GeoJSON file. I want to process this GeoJSON with a python script. The python script ...
0
votes
1answer
298 views

GeoJSON Get Request MVC 4

I'm having trouble creating an OpenLayers Vector layer with GeoJSON data in an MVC 4 application. The GET request for my json file always comes back with a 404.3 error - page cannot be served ...
1
vote
0answers
607 views

OpenLayers and GeoJSON - possible to create, modify and delete features?

I wondered if anyone has some OpenLayers GeoJSON code to read, create, modify and delete features (i.e. instead of using WFS-T)? This is how far I've come - I've no problem changing the pop-up to a ...
0
votes
1answer
235 views

GeoJSON won't show in IE, but works fine in FF

I’m not sure if this question isn’t too specific for Stack Exchange, but I really can’t find a solution, and even extensive web search hasn’t brought up any help. There are similar, but different ...
0
votes
1answer
1k views

Problem loading a GeoJSON file using Openlayers

I am setting up a website using Openlayers and GeoJSON files. When I get the GeoJSON file using the code below it work as expected. url: "./file.geojson", But if I try and use the full domain ...
1
vote
1answer
1k views

OpenLayers and GeoJSON - problem projecting EPSG:4326

I'm trying to project some GeoJSON data but it ends up at 0,0. I've looked at other posts and tried those solutions to no avail. Can anyone help? Here is the code: <html> <head> ...
0
votes
1answer
605 views

Selection and Popups on Overlapping/Coincident Vector Layer Polygons in OpenLayers

I have a GeoJSON file of polygons that I am bringing into my OpenLayers session. Some of the polygons occupy the same space on the map. I am using a select control and popup control like:- ...
1
vote
1answer
34 views

GeoJSON - Resymbolize without redownloading?

GeoJSON served via GeoServer to OpenLayers. Simple question - Is it possible to apply a new styleMap without redownloading the data from the server? I am currently using the following, but am ...
0
votes
1answer
512 views

Attribute extraction from GeoJSON to symbolize - OpenLayers

Loading polygons from geoserver via OpenLayers using GeoJSON. My plan is to symbolize using attributes in the GeoJSON. I am struggling to access the attributes. Any insight appreciated: The ...
1
vote
1answer
2k views

Integrate GeoJSON file with openlayers.protocol.http

I've got a problem with (the title says it) integrating a geojson file in my openlayers map. I have to use the openlayers.protocol.http way. I examined lots of examples on the web (and on ...
5
votes
1answer
676 views

Real time positioning of vector features using database

I am a newbie in GIS and want to implement something like a vehicle tracker wherein I will get a series of coordinates in a database. I have no idea how to go about it, I mean what should my process ...
1
vote
2answers
618 views

Trouble with GeoJSON in HTTP GET Request

I using a Vector Layer with the HTTP protocol to request GeoJSON from my web server, and am trying to get this GeoJSON to display on my map. The GET request appears to be working correctly, as I can ...