I'm trying to define lots of boundaries (e.g. political boundaries down to
city level of a certain country) but the only method I know is to manually
plot them (i.e. manually taking note of MousePosition, then plot to
supported format).
I'm sure this is a common burden to many map developers, so I
ge:
function setCenter(region) {
lon = Math.random() * 360 - 180;
lat = Math.random() * 180 - 90;
var lonlat = new OpenLayers.LonLat(lon, lat);
map.panTo(lonlat);
}
... but it only brings me to (I believe) 0,0.
I've been trying to figure it out for hours but with no luck. Please h
I'm a newbie, I copied this from an example somewhere to start:
map = new OpenLayers.Map('map',
{
numZoomLevels: 19,
maxResolution: 156543.0399,
units: 'm',
projection: new OpenLayers.Projection("EPSG:900913"),
displayProj
I'm a total newbie on Openlayers, and map dev in general.
I need to develop custom layer defining map political boundaries just like
this: http://www.google.com/intl/en_us/2008election/.
I'd appreciate pointers, code sample and docs links, learning path
suggestions, etc. that you may give.
TIA.