diff --git a/web/client/examples/api/index.html b/web/client/examples/api/index.html index 4be5906e22..85cd2dcf28 100644 --- a/web/client/examples/api/index.html +++ b/web/client/examples/api/index.html @@ -12,6 +12,11 @@ + + + + + @@ -25,7 +30,23 @@ top: 100px; bottom: 100px; left: 100px; - right: 100px; + right: 600px; + } + #help { + position: absolute; + top: 100px; + bottom: 100px; + width: 500px; + right: 50px; + padding: 10px; + border: solid 1px black; + } + #map { + position:absolute; + width: 100%; + height: 100%; + margin: 0; + padding: 0; } h1 { text-align: center; @@ -36,6 +57,35 @@
+ You can easily embed MapStore2 in your website, and load your UI and configuration dinamically! +
++ Use the MapStore2 JavaScript API to add a MapStore2 map and tools to your page. +
++ ++
+ MapStore2.create('container', { + plugins: ["Map"] + }); ++
+ Use the plugins example to save your configuration with + a meaningful name and use it in the embedded example with the map=<name> parameter. +
++ Look at the + full code + of this example. +
+