Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Wiki Markup
{scrollbar}

Modificar nivel de zoom del mapa

...

Code Block
function init() {
            ...
            if (bounds != null) {
            %>
                map.zoomToExtent(new OpenLayers.Bounds.fromString(<%="\"" + bounds + "\""%>));
                map.zoomTo(7);
            <%
            }
            ...
}

Escalas

Nivel

km

mi

map.zoomTo(5)

200

200

map.zoomTo(6)

100

100

map.zoomTo(7)

100

50

map.zoomTo(8)

50

20

map.zoomTo(9)

20

10

...