Skip to content

Commit 957d6b2

Browse files
committed
Site Geotagged Content dashlet defaults to Google Maps again, allow Leaflet via a module.
- Refactored extensibility modules git-svn-id: https://share-extras.googlecode.com/svn/trunk/Site Geotagged Content Dashlet@1449 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent bfaa343 commit 957d6b2

File tree

5 files changed

+40
-11
lines changed

5 files changed

+40
-11
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<extension>
2+
<modules>
3+
<module>
4+
<id>Document List Geographic View (Leaflet)</id>
5+
<customizations>
6+
<customization>
7+
<targetPackageRoot>org.alfresco</targetPackageRoot>
8+
<sourcePackageRoot>org.sharextras.customization.doclib-geo-view-leaflet</sourcePackageRoot>
9+
</customization>
10+
</customizations>
11+
</module>
12+
</modules>
13+
</extension>

config/alfresco/site-data/extensions/org_sharextras_doclib-geo-view.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,5 @@
99
</customization>
1010
</customizations>
1111
</module>
12-
<module>
13-
<id>Document List Geographic View (Leaflet)</id>
14-
<customizations>
15-
<customization>
16-
<targetPackageRoot>org.alfresco</targetPackageRoot>
17-
<sourcePackageRoot>org.sharextras.customization.doclib-geo-view-leaflet</sourcePackageRoot>
18-
</customization>
19-
</customizations>
20-
</module>
2112
</modules>
2213
</extension>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<extension>
2+
<modules>
3+
<module>
4+
<id>Site Geotagged Content Dashlet (Leaflet)</id>
5+
<customizations>
6+
<customization>
7+
<targetPackageRoot>org.sharextras</targetPackageRoot>
8+
<sourcePackageRoot>org.sharextras.customization.site-geotagged-content-leaflet</sourcePackageRoot>
9+
</customization>
10+
</customizations>
11+
</module>
12+
</modules>
13+
</extension>

config/alfresco/site-webscripts/org/sharextras/components/dashlets/site-geotagged-content.get.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ function main()
5656
*/
5757
var mapWidget = {
5858
// Name of the JS component to use for the dashlet. Use to switch between Leaflet and GMaps.
59-
//name: "Extras.dashlet.GMapsSiteGeotaggedContent",
60-
name: "Extras.dashlet.LeafletSiteGeotaggedContent",
59+
id: "SiteGeotaggedContent",
60+
name: "Extras.dashlet.GMapsSiteGeotaggedContent",
61+
//name: "Extras.dashlet.LeafletSiteGeotaggedContent",
6162
options: {
6263
// Use OSM by default for Leaflet tiles
6364
leafletTileUrl: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if (model.widgets)
2+
{
3+
for (var i = 0; i < model.widgets.length; i++)
4+
{
5+
var widget = model.widgets[i];
6+
if (widget.id == "SiteGeotaggedContent")
7+
{
8+
widget.name = "Extras.dashlet.LeafletSiteGeotaggedContent";
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)