so first of all thanks for your reply.
var intersectableFeatures = priorityLayerArray[i].features;
//each features
for (var j = 0; j <
intersectableFeatures.length; j++)
{
//current feature to comapre
var currentfeature =
intersectableFeatures[j];
//Compare with others
for (var x = 0; x <
intersectableFeatures.length; x++)
{
//compared fieature
var comparefeature =
intersectableFeatures[x];
//check if not same feature
if(currentfeature.attributes.name === comparefeature.attributes.name)
{
continue;
}
else
{
var isIntersecting =
currentfeature.geometry.intersects(comparefeature.geometry,{touching:false});
if(isIntersecting)
{
alert(currentfeature.attributes.name + " intersects with: " +
comparefeature.attributes.name);
}
}
}
This is my Code where i try to check the intersection. the
priorityLayerArray[] is an array where i save different layers, so the
priorityLayerArray[i] is the layer i want to check if it has some features
wich intersects.
So is there no way in openlayers itself to check if the features overlap or
only touches?
greetings
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/no-intersection-when-features-snap-tp4967965p4975550.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users