File tree Expand file tree Collapse file tree 5 files changed +40
-11
lines changed Expand file tree Collapse file tree 5 files changed +40
-11
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 9
9
</customization >
10
10
</customizations >
11
11
</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 >
21
12
</modules >
22
13
</extension >
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ function main()
56
56
*/
57
57
var mapWidget = {
58
58
// 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",
61
62
options : {
62
63
// Use OSM by default for Leaflet tiles
63
64
leafletTileUrl : "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments