1 / 11

Introducing Mapbuilder

Introducing Mapbuilder. Michael Adair Natural Resources Canada. Introduction. Mapbuilder-lib consists of JavaScript components to build geographic client applications within a web browser. Leverages OGC specifications for web mapping: Context, WMS, …

chogan
Download Presentation

Introducing Mapbuilder

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introducing Mapbuilder Michael Adair Natural Resources Canada

  2. Introduction Mapbuilder-lib consists of JavaScript components to build geographic client applications within a web browser • Leverages OGC specifications for web mapping: Context, WMS, … • Retrieves XML documents (and images) dynamically at run-time using HTTP • Renders XML documents to HTML using the browser’s built-in XSLT processor • Object-oriented architecture using the Model-View-Controller (MVC) design pattern

  3. Design Drivers • Client is a web browser • Minimal server side requirements • Easy to incorporate libraries into a web page • Keep bandwidth to a minimum • Use JavaScript/DHTML, XML/XSL • Modular design • Open source (GPL) • Attract developers

  4. MVC design pattern Model • maintains the state and data of the application - the XML document View • A rendering of the XML document Controller • The user interface presented to the user to manipulate the application The MVC pattern forces one to think of an application in terms of three modules:

  5. The configuration file All mapbuilder applications are initialized from an XML configuration file • Closely follows the MVC design pattern to define models, widgets (views) and tools (controllers) used in the application • Links the HTML elements to JavaScript objects via ID attributes • Follows Object-Property-Value rule of RDF and GML

  6. Using Mapbuilder • Download the library and install on a web server • Create the HTML for your page and identify elements where mapbuilder content is to be inserted • Create your configuration document • Include the JavaScript library and initialize

  7. Simple example page <html> <head> <title>Mapbuilder Demo</title> <script> // URL of Mapbuilder configuration file. var mbConfigUrl='config/SimpleConfig.xml'; </script> <script type="text/javascript" src="../lib/Mapbuilder.js"></script> </head> <body onload="mbDoLoad()"> <div id="mainMapPane"></div> </body> </html>

  8. Demos • Mapbuilder User Guide (Quicklook server) (Localhost version) • Reference implementation (Quicklook server) (Localhost version) • Loading external URLs

  9. Features • Very easy entry point to web mapping • Extensible • Consumes standards-based web services, primarily from the OGC • Runs in IE6, Mozilla 1.3+, Netscape 6+ • Very responsive client – no page reloads

  10. Future plans • Support for more models, widgets, tools • from user requirements • WFS client: via WMS/SLD and/or SVG • depends on OGC context spec evolution • WFS-T client: add/edit features • depends on WFS-T server • Applications: simple to complex • Allows community to make maps • Context editor

  11. Contact Info • http://mapbuilder.sourceforge.net • Mapbuilder mailing list: mapbuilder-devel@lists.sourceforge.net • mike.adair@nrcan.gc.ca Also at the NRCan booth in the exhibit area

More Related