tecnica:gps_cartografia_gis:openlayers_900913
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tecnica:gps_cartografia_gis:openlayers_900913 [2009/01/31 23:29] – external edit 127.0.0.1 | tecnica:gps_cartografia_gis:openlayers_900913 [2010/11/05 14:21] – niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== OpenStreetMap |
Le mappe di **[[http:// | Le mappe di **[[http:// | ||
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 184: | Line 142: | ||
This recipe can be improved by adding a '' | This recipe can be improved by adding a '' | ||
+ |
tecnica/gps_cartografia_gis/openlayers_900913.txt · Last modified: 2010/11/05 14:47 by niccolo