0
votes
2answers
144 views

How can I add attributes contained in JSON data to an OpenLayers popup?

I am working on a website using jQuery, Javascript, and OpenLayers. I am adding markers to an OpenLayers Vector layer using the following code: var pointLayer = new OpenLayers.Layer.Vector("POI ...
1
vote
2answers
98 views

Find closest feature

How can I find the closest feature(coordinates) in a json file from a set lat lon using openlayers. Currently, I get the centroid point(lat,lon) from the selected polygon feature ok, but I Would also ...
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 = ...
3
votes
2answers
209 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 ...
0
votes
0answers
624 views

D3 adding topojson - no data visible

Yesterday I asked what would be the best method of creating an overlay in a web map that would allow for some interactivity. Create interactive map with no server Thanks to a variety of people who ...
0
votes
0answers
217 views

OpenLayers LineString: Not displaying the line (array of points)

I'm perplexed as to why tail_path is not drawing the line (can't see anything on the map) but the alert seems to be returning the correct data. var path_travelled = new Array(); var path = ...
1
vote
1answer
261 views

OpenLayers removing/adding marker (airplane): update the orientation based on lat/long (next point in database)

The code below I have is working great. I'll try to explain it in a few lines (btw you can view it here http://codeshare.io/9Z1BE): -there's a marker on the map. The lat long is returned as json from ...
-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. ...
2
votes
3answers
218 views

Making tracking data available to Geoserver

I have tracking data from GPS, which gives latitude, longitude, heading, etc. Right now it's stored in a non-standard database (Accumulo) and I'm looking into how best to make the data available for ...
0
votes
0answers
144 views

Send WMS Request as JSON

I'm using openLayers and geoserver. I'm making a layer with openLayers.Layer.WMS to geoserver and am adding cql_filter to filter down id's. Here is my code: var kent = new ...
3
votes
0answers
95 views

How to PGRoute from OpenLayers via PostGIS/PostgreSQL [duplicate]

I need to route a shortest distance for a map which I have loaded from a PostgreSQL by means of JSON file. I can project the map in my browser and I can identify the linestrings. For a particular ...
3
votes
2answers
206 views

how to search for a Point of MultiLineString geometry in a json file using OpenLayers

I have a json file with large geometries(MultiLineString), here I got a Point among the json layer(baseLayer). I would like to search for a Point's LineString in the layer, from which MultiLineString ...
0
votes
1answer
945 views

OpenLayers: Showing WKT data via JSON from MVC

I am trying to read geographic data from MS SQL Server 2012 and display it using the JavaScript library OpenLayers in an MVC4 view. I can confirm that the data leaves MVC OK but I have problem is ...
2
votes
0answers
348 views

OpenLayers BBOX sending double requests

I've implemented a openlayers bbox strategy on a vector layer. I have my server return a nice jsonp object wrapped in the callback given by the request. The problem is that during normal use of the ...
0
votes
1answer
236 views

What would be the URL of a JSON file on the local drive?

When i save json file in web apps then using http://localhost:8080/WGSClient/js/object.json this path file gets open.But when i keep it outside web apps like local folder then using same url format ...
0
votes
1answer
410 views

Openlayers loop through json array and output result with as javascript

Connection.php file which stored database connection code with json: <?php $username = "root"; $password = ""; $database = "roadmap"; $url = "localhost"; $con = mysql_connect($url, $username , ...
2
votes
1answer
538 views

Connect JSON to GeoExt Application

I am returning a JSON to a GeoExt app and this is the code that is collecting the return, var control = new OpenLayers.Control.Click({ trigger: function(evt) { ...
5
votes
3answers
2k views

Slow IE8 responsiveness with OpenLayers and many features

Background Adding about 700 sites to an OpenLayers Map. Firefox 11 and Google Chrome display the sites just fine. IE8, which is the organization's standard and will not be upgraded for the ...
3
votes
2answers
1k 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
1answer
288 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 ...
3
votes
2answers
1k views

Is there a Web app for building GeoExt tree configurations?

I have a GeoExt application and looking for approaches for building tree configuration (in JSON format). Now tree configuration is made manually and looks like: var treeConfig = new ...
-2
votes
2answers
2k views

Why is my JSON not appearing on my webpage?

Greetings lovers of GIS, I came across this error whilst doing my JSON file. "Error in loading GML file" Everything works fine in localhost but dramatically wrong in my server. Any helping hands? ...
7
votes
1answer
981 views

Adding Panoramio Photos To An OpenLayers Map

I have a pretty well integrated OpenLayers map that I want to add photos from the Panoramio API to. Unfortunately, it seems both API's are under documented on this subject. I found one great tutorial ...