Tagged Questions
0
votes
1answer
44 views
How to set the length of a line using openlayers
I'm trying edit a polygon by changing the length of some lines by code. Found this method to calculate based on the bearing.
But I didn't find anything on how to calculate the bearing, before I start ...
2
votes
1answer
147 views
How to draw a polygon with preset length in OpenLayers?
For a project I am working on, I need to be able to put a polygon on a map using OpenLayers, based on a variable point that can be set by a user. The polygon is an isosceles triangle of which two legs ...
4
votes
1answer
378 views
OpenLayers measure tool - instant measurement
I need to use measure tool to measure distances (instant measurement!) in my application. Instant measurement example can be found here. But the main problem is that when I use instant measurement ...
1
vote
1answer
781 views
distanceTo is giving wrong result in OpenLayers?
Hi i am using distanceTo from OpenLayers to calculate the distance between two locations
these are map details
Geographic = new OpenLayers.Projection("EPSG:4326");
Mercator = new ...
1
vote
1answer
878 views
Measuring on OpenLayers map
These days, I am trying to develop web map using openlayers. I copy source code from here
Then I changed code to display my data.B ut it does not work, even map is also not showing. In chrome shows ...
1
vote
2answers
728 views
How to get vector feature information (distance and extent ) on OpenLayers
I have basic WMS layer and vector layer in openlayers. Using EditingToolbar i can draw some features as shown below
Then I want to get some information (like distance and extent) of drawn features ...
3
votes
3answers
1k views
How do I determine the center point of several features in OpenLayers?
I have several polygons being drawn on a map, usually representing a country or province or state. Depending on some chosen data, different regions may be selected, so what I was hoping is that ...
4
votes
3answers
2k views
How to properly utilize DWITHIN Spatial Filter in OpenLayers
Given the following code:
var points = [];
points.push(new OpenLayers.Geometry.Point(-110, 38));
points.push(new OpenLayers.Geometry.Point(-108, 40));
var lineString = ...
