Tagged Questions
-1
votes
0answers
10 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.
...
0
votes
0answers
17 views
How to add clickable action to each feature from a featurecollection geojson object rendered using OpenLayers?
I have geojson object which is a featurecollection object. I need to render this geojson object as a vector layer on openlayers map. I have successfully rendered the layer. Now i want to add clickable ...
3
votes
2answers
50 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.
...
2
votes
3answers
72 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
84 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
152 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
64 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
140 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
146 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
169 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
31 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
181 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
411 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 ...
4
votes
1answer
189 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
176 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 ...
0
votes
1answer
149 views
how can i render geojson format and gml format?
I can show wms png format my map but i didnt render jeojson and gml format by the way my url is correct service. İn additonal i used same code in my local and i can render local geoserver . plz show ...
0
votes
1answer
170 views
OpenLayers polygon fill not working with GeoJSON file as source
I'm trying to visualise some data in a custom shape on a map, and I'm stuck with styling it.
I'm currently using the openlayers framework in combination with a geoJSON file that I generate in code. ...
1
vote
2answers
261 views
How to project a geoJSON file in OpenLayers?
I have a json file well formed. I want to read a json file as a base layer from OpenLayers.
<script type="text/javascript">
var styles = new OpenLayers.StyleMap({
...
3
votes
1answer
171 views
What is generally faster in OpenLayers: WMS or GeoJSON?
I work both with WMS (connection with postgres) and GeoJSON in OpenLayers. I have the impression that a WMS is faster when more feature need to be loaded. And I have the impression that GeoJSON is ...
2
votes
3answers
155 views
GeoJSON generator with OpenLayers support
Is there a service that allows me to draw on an OpenLayers map, and see the resulting GeoJSON?
3
votes
1answer
527 views
How do you put GeoJSON attribute information in a popup with OpenLayers
I am having some trouble putting GeoJSON attribute information in a pop-up. The selection control is working, and I create an alert (for testing) and this is working. But I can't figure out how you ...
1
vote
1answer
423 views
How can I add an infowindow to an OpenLayers GeoJSON layer?
In my OpenLayers script I refer to an geojson layer. Is it possible to add an info window?If yes, how can I create this. Script is as follows:
var lon = 5,
lat = 52,
zoom = 7,
epsg4326 = ...
2
votes
1answer
255 views
GML and GeoJSON vector layer can not display in Firefox and Chrome
I have following codes. It works perfectly in IE (GML and GeoJSON vector layer was loaded), but not in Firefox and Chrome without any errors noticed. Please help me to fix this problem.
Here is the ...
3
votes
2answers
412 views
Create multiple vector layers by reading a GeoJSON file once in OpenLayers
I am a begginner to OpenLayers, and my question is about making things more efficient.
My work is about displaying time-dependent weather elements on several point locations on the map. All these ...
1
vote
0answers
425 views
searching GeoJSON features
After googling for many days and reading the OL documentation, I don't understand well how the filterToParams in OpenLayers.HTTP protocol should work, what I'm trying to do is to find and display the ...
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 ...
1
vote
0answers
241 views
Vector layer shifted on OSM map: why?
I've defined the following map:
Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
2
votes
1answer
175 views
Which OpenLayers.Protocol should I prefer which design patterns provided at?
At our scenario, there is a server which stores the feature info (coordinates, properties, etc) into a SQL database. Google Maps are used for a layer. The geoJSON data format are used for ...
2
votes
1answer
56 views
Which conditions does the geoJSON file read from the server in?
I've added an alert to the function myReadFunction in order to detect function calls.
As according to my observations, the function readMyFunction is called sometimes while I have been navigating on ...
2
votes
1answer
298 views
How to validate whether the BBOX strategy works successfully?
I want to send requests to our feature server that asks only data within
the viewable map extent. So I've used BBOX strategy and HTTP Protocol as
following code.
mVectorLayer = new ...
1
vote
2answers
930 views
How to get GeoJSON features using OpenLayers?
Can anybody explain how to get geojson features .Can somebody show way to get attributes from geojson text.
OpenLayers.ProxyHost = "/gt/proxy.cgi?url=";
var lon = 5;
var lat = 44;
var ...
2
votes
2answers
628 views
Getting json feature id on OpenLayers
I'm projecting some features using json format on OpenLayers. I need to get the id from the feature (not the OpenLayers' id but the one in the json file). The file looks something like this.
...
1
vote
2answers
218 views
OpenLayers GeoJSON: limit significant digits to 6 when using write()?
Is there a way that OpenLayers.Format.JSON write() method to serialize coordinates using 6 decimals only ?
Example: instead of http://pastie.org/4200997 to have http://pastie.org/4200994
1
vote
1answer
198 views
how to make openlayers example work in jsFiddle
Hy,
I'm working on a jsFiddle with a openlayers example in it. http://dev.openlayers.org/releases/OpenLayers-2.11/examples/snapping.html
At the moment it's not working because it's not getting a ...
1
vote
1answer
297 views
Select independent objects using GEOJson on Openlayers
I'm working with OpenLayers and loading a couple of GEOJson files which works perfectly. Now I want to be able to select individual components of the GEOJson file. As for example if I have more than ...
3
votes
0answers
90 views
GeoJSON support in ArcObjects 10 .NET
i am currently trying to build a geoprocessing application using OpenLayers and ArcObjects,
I have some features that user draws on openlayers and i need to send these features to arcobjects for ...
0
votes
1answer
906 views
Alternate colors of GeoJSON linestring segments in OpenLayers?
I am rendering a vector linestring via GeoJSON on top of an OpenLayers map. I'd like to alternate the styling between two slightly different shades of blue, such that the colors alternate from one ...
4
votes
2answers
917 views
Beginner needs suggestions on map clicks and geojson
I'm a beginner with programming, and javascript. I went to the FOSS4G-NA conference and was very inspired to learn more. I'm trying to learn PostGIS, and have come across a very useful tutorial for ...
1
vote
1answer
449 views
Vector layer won't move as window resizes in Chrome
I have a GeoJSON layer that I am treating as a javascript object in my openlayers map. When I use IE or Firefox, everything works fine. However, in Chrome, as I resize the window, the GeoJSON layer is ...
3
votes
1answer
1k views
OpenLayers & GeoJSON files
After some hunting, it seems that if I have an a geojson file, I NEED the data and map to be on a server in order to view this in OpenLayers because of the protocol class. I saw an example where I can ...
1
vote
1answer
2k views
OpenLayers - a GeoJSON layer
OpenLayers can parse GeoJSON in order to create an array of features. So, it is possible to create a layer from GeoJSON input by simply parsing it and then adding the features to a new vector layer.
...
1
vote
3answers
1k views
Trouble Displaying GeoJSON file in OpenLayers
I am noobie to OpenLayers and can not for the life of me figure out how to display a geoJson file. This seems like it should be easy but I have been banging my head for a day. I'm sure I am missing ...
2
votes
1answer
658 views
Openlayers dynamic filtering/styling of geojson layer
I'm working with Openlayers and overlaying a geojson file representing species type over OSM. I have an HTML form that allows users to select a species type and I then need to filter the geojson layer ...
0
votes
1answer
922 views
Building Floor Plan map using OpenLayers and json
How to show map of building floor plan using OpenLayers and json.
moreover, i want to know that how to change features dynamically with zoom based from json files. Let's take example,
Initial the ...
1
vote
1answer
440 views
How to update GML layer without reloading local file?
I set up a GML layer with local GeoJSON file as data source:
veclayer = new OpenLayers.Layer.GML("vector", "localfile.json",
{
format: OpenLayers.Format.GeoJSON,
strategies: [new ...
2
votes
1answer
723 views
OpenLayers GeoJSON Data Store
Background: I have a single geoJSON data object that backs multiple Vector Layers of its features. I do this because the feature data has many attributes and can be presented in many different ways, ...
1
vote
2answers
297 views
OpenLayers data moves when panning map
I have an OpenLayers map.
On to this I have loaded a GeoJSON file.
When I pan the map the GeoJSON data moves relative to the basemap.
Surely this isn't right! Can anyone shed some light no why ...

