From d19abea59c0ad7e6da29d4e5742c4870407c2f94 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 30 Apr 2018 23:25:23 -0300 Subject: [PATCH] Exemplo de uso com Openlayers --- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 30f3df3..ce02404 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,55 @@ O mapa base é um Tile Map Service (TMS) que utiliza dados públicos e/ou oficia #### Versão #### 0.1 +#### Endereço #### + +http://digisus-mapabase-homologacao.saude.gov.br/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities + +#### Exemplo OpenLayers #### + + var esus = new ol.layer.Tile( + { + title : "Mapa Base digiSUS Gestor", + visible : true, + isBaseLayer : true, + name : "esus", + source : new ol.source.TileWMS( + { + url : "http://digisus-mapabase-homologacao.saude.gov.br/wms", + params : { + 'layers' : "osm", + 'srs' : "EPSG:4326", + 'format' : "image/png" + }, + attributions : [ new ol.Attribution( + { + html : 'Map Data: © OpenStreetMap contributors' + }) ] + }) + }); + + var esusmono = new ol.layer.Tile( + { + title : "Mapa Base digiSUS Gestor - Monocromatico", + visible : false, + isBaseLayer : true, + name : "esusmono", + source : new ol.source.TileWMS( + { + url : "http://digisus-mapabase-homologacao.saude.gov.br/wms", + params : { + 'layers' : "osm_mono", + 'srs' : "EPSG:4326", + 'format' : "image/png" + }, + attributions : [ new ol.Attribution( + { + html : 'Map Data: © OpenStreetMap contributors' + }) ] + }) + }); + + #### Dados #### São utilizados as seguintes fontes de dados: -- libgit2 0.21.2