Skip to content

Commit

Permalink
correctif doc...
Browse files Browse the repository at this point in the history
  • Loading branch information
lowzonenose committed Jun 1, 2018
1 parent a863a23 commit fca6579
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions README-itowns.md
Expand Up @@ -228,8 +228,8 @@ L'utilisateur a le choix entre plusieurs méthodes d'import.
import {Services, itownsExtended as It} from 'geoportal-extensions-itowns';

// votre utilisation de l'extension
const globeView = new It.GlobeViewExtended(...
Services.getConfig(...
const globeView = new It.GlobeViewExtended(...)
Services.getConfig(...)
```

**Méthode 2** : import d'un objet d’espace de noms pour le module
Expand All @@ -240,17 +240,17 @@ import * as Gp from 'geoportal-extensions-itowns';

// votre utilisation de l'extension
const It = Gp.itownsExtended;
const globeView = new It.GlobeViewExtended(...
Gp.Services.getConfig(...
const globeView = new It.GlobeViewExtended(...)
Gp.Services.getConfig(...)
```
***Variante 2*** : le module itowns est importé indépendamment de l'extension
``` javascript
import It from 'itowns';
import * as Gp from 'geoportal-extensions-itowns';

// votre utilisation de l'extension
const globeView = new It.GlobeViewExtended(...
Gp.Services.getConfig(...
const globeView = new It.GlobeViewExtended(...)
Gp.Services.getConfig(...)
```

## Compatibilités
Expand Down
12 changes: 6 additions & 6 deletions README-leaflet.md
Expand Up @@ -233,8 +233,8 @@ L'utilisateur a le choix entre plusieurs méthodes d'import.
import {Services, LExtended as L} from 'geoportal-extensions-leaflet';

// votre utilisation de l'extension
var map = L.map(...
Services.getConfig(...
var map = L.map(...)
Services.getConfig(...)
```

**Méthode 2** : import d'un objet d’espace de noms pour le module
Expand All @@ -245,17 +245,17 @@ import * as Gp from 'geoportal-extensions-leaflet';

// votre utilisation de l'extension
const L = Gp.LExtended;
var map = L.map(...
Gp.Services.getConfig(...
var map = L.map(...)
Gp.Services.getConfig(...)
```
***Variante 2*** : le module leaflet est importé indépendamment de l'extension
``` javascript
import L from 'leaflet';
import * as Gp from 'geoportal-extensions-leaflet';

// votre utilisation de l'extension
var map = L.map(...
Gp.Services.getConfig(...
var map = L.map(...)
Gp.Services.getConfig(...)
```

## Compatibilités
Expand Down
12 changes: 6 additions & 6 deletions README-openlayers.md
Expand Up @@ -247,8 +247,8 @@ L'utilisateur a le choix entre plusieurs méthodes d'import.
import {Services, olExtended as Ol} from 'geoportal-extensions-openlayers';

// votre utilisation de l'extension
var map = new Ol.Map(...
Services.getConfig(...
var map = new Ol.Map(...)
Services.getConfig(...)
```

**Méthode 2** : import d'un objet d’espace de noms pour le module
Expand All @@ -259,17 +259,17 @@ import * as Gp from 'geoportal-extensions-openlayers';

// votre utilisation de l'extension
const Ol = Gp.olExtended;
var map = new Ol.Map(...
Gp.Services.getConfig(...
var map = new Ol.Map(...)
Gp.Services.getConfig(...)
```
***Variante 2*** : le module openlayers est importé indépendamment de l'extension
``` javascript
import Ol from 'openlayers';
import * as Gp from 'geoportal-extensions-openlayers';

// votre utilisation de l'extension
var map = new Ol.Map(...
Gp.Services.getConfig(...
var map = new Ol.Map(...)
Gp.Services.getConfig(...)
```

## Compatibilités
Expand Down

0 comments on commit fca6579

Please sign in to comment.