stableversion-3.0
Last change
on this file since 92f109b was
307d09d,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agregaron las librerias
|
-
Propiedad mode establecida a
100644
|
File size:
873 octetos
|
Línea | |
---|
1 | var points = new OpenLayers.Layer.PointGrid({ |
---|
2 | isBaseLayer: true, dx: 15, dy: 15 |
---|
3 | }); |
---|
4 | |
---|
5 | var map = new OpenLayers.Map({ |
---|
6 | div: "map", |
---|
7 | layers: [points], |
---|
8 | center: new OpenLayers.LonLat(0, 0), |
---|
9 | zoom: 2 |
---|
10 | }); |
---|
11 | |
---|
12 | var rotation = document.getElementById("rotation"); |
---|
13 | rotation.value = String(points.rotation); |
---|
14 | rotation.onchange = function() { |
---|
15 | points.setRotation(Number(rotation.value)); |
---|
16 | }; |
---|
17 | |
---|
18 | var dx = document.getElementById("dx"); |
---|
19 | var dy = document.getElementById("dy"); |
---|
20 | dx.value = String(points.dx); |
---|
21 | dy.value = String(points.dy); |
---|
22 | dx.onchange = function() { |
---|
23 | points.setSpacing(Number(dx.value), Number(dy.value)); |
---|
24 | }; |
---|
25 | dy.onchange = function() { |
---|
26 | points.setSpacing(Number(dx.value), Number(dy.value)); |
---|
27 | }; |
---|
28 | |
---|
29 | var max = document.getElementById("max"); |
---|
30 | max.value = String(points.maxFeatures); |
---|
31 | max.onchange = function() { |
---|
32 | points.setMaxFeatures(Number(max.value)); |
---|
33 | }; |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.