File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ <osm-map >
2
+ <!-- Either leaflet or openlayers -->
3
+ <mapType >leaflet</mapType >
4
+ <!-- Map zoom 0-18 (larger numbers have greater zoom level) -->
5
+ <mapInitialZoom >15</mapInitialZoom >
6
+ <!-- Leaflet tile URL template - see http://leaflet.cloudmade.com/reference.html#tilelayer -->
7
+ <leafletTileUrl >http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png</leafletTileUrl >
8
+ <!-- Whether to display the location retrieved from from reverse geocode service -->
9
+ <loadLocation >true</loadLocation >
10
+ </osm-map >
Original file line number Diff line number Diff line change 1
1
<#include "/org/alfresco/components/component.head.inc" >
2
2
<!-- OpenStreetMap Map -->
3
3
<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/extras/components/geographic/osm-map.css" / >
4
+ <@script type="text/javascript" src="${page.url.context}/res/extras/components/geographic/osm-map.js" ></@script >
5
+ <#--
4
6
<script type="text/javascript" src="${page.url.context}/res/extras/modules/geographic/openlayers/OpenLayers.js"></script>
5
- <@script type="text/javascript" src="${page.url.context}/res/extras/components/geographic/osm-map.js" ></@script >
7
+ -->
8
+ <!-- Leaflet -->
9
+ <link rel =" stylesheet" type =" text/css" href =" ${page.url.context}/res/extras/modules/geographic/leaflet/leaflet.css" />
10
+ <script type =" text/javascript" src =" ${page.url.context}/res/extras/modules/geographic/leaflet/leaflet.js" ></script >
Original file line number Diff line number Diff line change 10
10
new Extras.component.OSMMap (" ${id}" ).setOptions (
11
11
{
12
12
documentDetails: ${documentDetailsJSON},
13
+ mapType: " ${config.script[" osm- map" ].mapType?js_string}" ,
14
+ mapInitialZoom: " ${config.script[" osm- map" ].mapInitialZoom?js_string}" ,
15
+ leafletTileUrl: " ${(config.script[" osm- map" ].leafletTileUrl!'')?js_string}" ,
16
+ loadLocation: ${(config .script [" osm-map" ].loadLocation ! true )? string}
13
17
}).setMessages (${messages});
14
18
// ]]></script>
15
19
Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ label.exif_resolutionUnit.title=Resolution Unit
31
31
label.exif_resolutionUnit.description =Unit used for horizontal and vertical resolution
32
32
33
33
# Custom OSM labels
34
- label.locationName =Showing item in {0}
34
+ label.locationName =Showing item in {0}
35
+ label.copyright.osm =Map data © OpenStreetMap contributors
36
+ error.badMapType =Bad map type or map type not available
You can’t perform that action at this time.
0 commit comments