-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathplugin.html
More file actions
135 lines (124 loc) · 7.47 KB
/
plugin.html
File metadata and controls
135 lines (124 loc) · 7.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="MapWindow is an Open Source GIS desktop application">
<meta name="author" content="Paul Meems">
<link rel="icon" href="../../favicon.ico">
<title>MapWindow5 plugin development</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="css/mw5.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Main jumbotron for a primary marketing message or call to action -->
<section class="jumbotron">
<div class="container">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 pull-right ">
<img class="img-responsive" src="img/LogoMapWindow_5.jpg" width="812" height="143" alt="MapWindow 5 - open source GIS Desktop Application" />
</div>
</div>
</section>
<section class="container">
<div class="row">
<article class="col-md-12 col-xs-12">
<h1>How to create a plug-in for MapWindow5</h1>
<p>
We're working on an easy workflow for developers to create their own plug-in for MapWindow5.<br/>
We don't have a lot of documentation yet. You need to learn the structure by looking at existing plug-ins.<br/>
We've made a template plug-in, which you can use as a base for your own plug-in.
</p>
<p>
This is the recommended workflow. We've tested in on a Windows10-x86 machine with VS2013 Community.
<ol>
<li>
Install the latest beta installer, available at <a href="http://mapwindow5.codeplex.com/releases" target="_blank" title="Get the latest version of MapWindow5">mapwindow5.codeplex.com/releases</a> and install it in a different location than <code>C:\Program Files</code> because you'll need rights to write your plug-in dll to it.<br />
I suggest <code>C:\dev\MapWindow5\</code>
</li>
<li>
Download this <a href="downloads/plugins-v5.0.2.zip" target="_blank" title="Download zip file with source code of plug-ins">zip file</a>. It contains a VS2013 solution with several projects for a few core plug-ins and the template plug-in.<br />
Unzip it, I suggest <code>C:\dev\plugins\</code>
</li>
<li>
Open the solution. You need to change some paths.
<ul>
<li>
Select the properties of each project and add a reference path to the location of MapWindow5, see step 1.<br />
<img class="img-responsive" src="img/ReferencePaths.png" alt="Reference paths setting" />
</li>
<li>
In the properties of the plug-in you want to debug you also need to set the location of MapWindow.exe.<br/>
<img class="img-responsive" src="img/DebugSetting.png" alt="Debug setting" />
</li>
</ul>
You should now be able to compile and debug your plug-in.
</li>
</ol>
</p>
<p>
If you have questions you can post them at the discussion page on codeplex: <a href="http://mapwindow5.codeplex.com/discussions" target="_blank" title="Post your questions at CodePlex">mapwindow5.codeplex.com/discussions</a><br/>
Happy coding and keep us informed of your progress.
</p>
</article>
</div>
</section>
<section class="container">
<div class="row" style="background-color: white">
<article class="col-md-4 col-xs-12">
<!-- 300x250 ad tag -->
<div data-type="ad" data-publisher="mapwindow.org" data-zone="ron" data-format="300x250" data-tags="GIS%2cMapping%2cMap%2cC%23%2cMaps%2cWMS%2cgeospatial"></div>
</article>
<article class="col-md-4 hidden-xs">
<div data-type="ad" data-publisher="mapwindow.org" data-zone="ron" data-format="300x250" data-tags="open%2csource%2cdesktop%2cNET2cmicrosoft"></div>
</article>
<article class="col-md-4 hidden-xs">
<div data-type="ad" data-publisher="mapwindow.org" data-zone="ron" data-format="300x250" data-tags="GIS%2csyncfusion%2cfree"></div>
</article>
</div>
<hr>
<footer class="hidden-xs">
<div class="footer-ad" data-type="ad" data-publisher="mapwindow.org" data-zone="ron"
data-format="728x90" data-tags="GIS%2cMapping%2cMap%2cC%23%2cMaps%2cWMS%2cgeospatial"> </div>
<p>© MapWindow Developers Team 2015</p>
</footer>
</section> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="http://getbootstrap.com/assets/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript">
function _dmBootstrap(file) {
var _dma =
document.createElement('script'); _dma.type = 'text/javascript'; _dma.async = true;
_dma.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + file;
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(_dma);
} function _dmFollowup(file)
{ if (typeof DMAds === 'undefined') _dmBootstrap('cdn2.DeveloperMedia.com/a.min.js'); }
(function () {
_dmBootstrap('cdn1.DeveloperMedia.com/a.min.js'); setTimeout(_dmFollowup,
2000);
})();</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] ||
function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a =
s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script',
'//www.google-analytics.com/analytics.js', 'ga'); ga('create', 'UA-5161528-17', 'auto');
ga('require', 'displayfeatures'); ga('send', 'pageview');</script>
</body>
</html>