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:
1.5 KB
|
Línea | |
---|
1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title>OpenLayers Script Protocol XML Example</title> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
6 | <link rel="stylesheet" href="../theme/default/style.css" type="text/css"> |
---|
7 | <link rel="stylesheet" href="style.css" type="text/css"> |
---|
8 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
---|
9 | <meta name="apple-mobile-web-app-capable" content="yes"> |
---|
10 | <script src="../lib/OpenLayers.js"></script> |
---|
11 | </head> |
---|
12 | <body> |
---|
13 | <h1 id="title">Script Protocol With XML</h1> |
---|
14 | <div id="tags"> |
---|
15 | protocol, script, cross origin, xml, advanced |
---|
16 | </div> |
---|
17 | <p id="shortdesc"> |
---|
18 | Demonstrates how, with a custom parseFeatures method, the script protocol can be used with YQL for cross-origin loading of files in any of the XML formats supported by OpenLayers. |
---|
19 | </p> |
---|
20 | <div id="map" class="smallmap"></div> |
---|
21 | <div id="docs"> |
---|
22 | <p> |
---|
23 | YQL can wrap a jsonp callback around an XML file, which effectively means Yahoo's servers are acting as a proxy for cross-origin feature loading. This example uses a GPX file, but the same technique can be used for other formats such as KML. |
---|
24 | </p> |
---|
25 | <p> |
---|
26 | View the <a href="cross-origin-xml.js" target="_blank">cross-origin-xml.js</a> |
---|
27 | source to see how this is done |
---|
28 | </p> |
---|
29 | </div> |
---|
30 | <script src="cross-origin-xml.js"></script> |
---|
31 | </body> |
---|
32 | </html> |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.