14.01.2013 Views

Developer's Guide - MapGuide Open Source - OSGeo

Developer's Guide - MapGuide Open Source - OSGeo

Developer's Guide - MapGuide Open Source - OSGeo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents<br />

Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1<br />

What This <strong>Guide</strong> Covers . . . . . . . . . . . . . . . . . . . . . . . . . . 2<br />

Essential Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2<br />

Preparing to Run the Examples . . . . . . . . . . . . . . . . . . . . . . . 2<br />

Hello, Map – Displaying a Web Layout . . . . . . . . . . . . . . . . . . . 3<br />

Hello, Map 2 – Adding a Custom Command . . . . . . . . . . . . . . . 4<br />

Web Layouts and Map<strong>Guide</strong> Server Pages . . . . . . . . . . . . . . 5<br />

Map<strong>Guide</strong> Page Flow . . . . . . . . . . . . . . . . . . . . . . . . . 6<br />

Example Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />

Running the Example . . . . . . . . . . . . . . . . . . . . . . . . 9<br />

How This Page Works . . . . . . . . . . . . . . . . . . . . . . . . 10<br />

Understanding Viewer Frames . . . . . . . . . . . . . . . . . . . . . . 11<br />

Interactions Between Frames . . . . . . . . . . . . . . . . . . . . . . . 13<br />

Map<strong>Guide</strong> Viewer API . . . . . . . . . . . . . . . . . . . . . . . . 13<br />

Calling the Viewer API from the Task Pane . . . . . . . . . . 14<br />

Calling the Viewer API from the Script Frame . . . . . . . . 15<br />

Calling the Viewer API with an Invoke Script<br />

Command . . . . . . . . . . . . . . . . . . . . . . . . . . 16<br />

Map<strong>Guide</strong> Web API . . . . . . . . . . . . . . . . . . . . . . . . . 16<br />

Embedding a Viewer in Your Own Page . . . . . . . . . . . . . . . . . 17<br />

Session Management . . . . . . . . . . . . . . . . . . . . . . . . 17<br />

Resources and Repositories . . . . . . . . . . . . . . . . . . . . . . . . 19<br />

Library and Session . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />

iii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!