Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
create a casual area with OpenLayers
Hi all
I use NetBeans with OpenLayers, I should create a random area, with random points to be created automatically on the map. i tried with combinations tra area,vector,vectorlayer,points but there are still successful because I can not create an array of random points for the latitude and longitude and do not know if there is a command for automatic drawing of the area. Some advice?
sorry for my english
thanks
Hi,
This example might help you:
http://code.google.com/p/vopenlayers/source/browse/trunk/src/test/java/org/vaadin/vol/demo/ActionHandlers.java#55
There is a polyline drawn (rectangle to be more specific) in the middle of the current view when user select "Rectangle" via context menu. Modifying e.g. dx and dy variables a bit with java.util.Random would make the vector "random". Switching from polyline to area should be trivial.
cheers,
matti