tecnica:gps_cartografia_gis:openlayers_900913
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tecnica:gps_cartografia_gis:openlayers_900913 [2009/06/19 13:18] – niccolo | tecnica:gps_cartografia_gis:openlayers_900913 [2010/11/05 14:19] – niccolo | ||
---|---|---|---|
Line 20: | Line 20: | ||
Questo trucco funziona sul sito di OpenStreetMap, | Questo trucco funziona sul sito di OpenStreetMap, | ||
- | ===== Layer supportati da OpenLayers ===== | ||
- | **[[http:// | ||
- | |||
- | ^ OSM | OpenStreetMap, | ||
- | ^ Markers | ||
- | ^ Text | Del tutto simile al '' | ||
- | ^ GeoRSS | ||
- | ^ GML | Carica una gemoetria da un file GML (XML geografico). La vestizione può essere fatta con uno stile, non si possono usare icone bitmap. Il file viene caricato con un protocollo specificato (es. HTTP) e con delle strategie specificate (ad esempio al variare della bounding box). La strategia **'' | ||
- | ^ WFS | | | ||
- | ^ TMS | | | ||
- | |||
- | Esempi: | ||
- | |||
- | <code javascript> | ||
- | var layerMapnik = new OpenLayers.Layer.OSM.Mapnik(" | ||
- | </ | ||
- | |||
- | <code javascript> | ||
- | var markers = new OpenLayers.Layer.Markers(" | ||
- | </ | ||
- | |||
- | <code javascript> | ||
- | var pois = new OpenLayers.Layer.Text(" | ||
- | location:" | ||
- | </ | ||
- | |||
- | <code javascript> | ||
- | var track_style = new OpenLayers.Style(); | ||
- | track_style.strokeColor = "# | ||
- | track_style.strokeWidth = 7; | ||
- | track_style.strokeOpacity = 0.7; | ||
- | var object_trk = new OpenLayers.Layer.GML(" | ||
- | format: OpenLayers.Format.GPX, | ||
- | style: track_style, | ||
- | projection: map.displayProjection}); | ||
- | map.addLayer(object_trk); | ||
- | </ | ||
- | |||
- | <code javascript> | ||
- | var gsat = new OpenLayers.Layer.Google( | ||
- | " | ||
- | </ | ||
===== Dynamic layer update ===== | ===== Dynamic layer update ===== | ||
Line 196: | Line 154: | ||
The original Blue Marble images came from **[[http:// | The original Blue Marble images came from **[[http:// | ||
- | ==== Blue Marble WMS ==== | + | ==== Blue Marble WMS Server |
**[[http:// | **[[http:// | ||
Line 213: | Line 171: | ||
The same imagery server can be used by other software, e.g. OpenLayers via the '' | The same imagery server can be used by other software, e.g. OpenLayers via the '' | ||
- | ==== WMS Tiled ==== | + | ==== Blue Marble |
* **[[http:// | * **[[http:// | ||
Line 223: | Line 181: | ||
Some of the tags announced by the service are: | Some of the tags announced by the service are: | ||
- | ^ OnlineResource | + | ^ OnlineResource |
^ LatLonBoundingBox | ^ LatLonBoundingBox | ||
^ width, height | ^ width, height |
tecnica/gps_cartografia_gis/openlayers_900913.txt · Last modified: 2010/11/05 14:47 by niccolo