<div dir="ltr"><div dir="ltr">Hi Lara,<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"3","compose-window":{"secure":false}}"><div><br></div><div>To change your scaleline to metric try finding and changing this parameter in your app.js file:</div><div><br></div>var app = new gm3.Application({<br> mapserver_url: CONFIG.mapserver_url,<br> mapfile_root: CONFIG.mapfile_root,<br> map: {<br> scaleLine: {<br> enabled: true,<br> units: 'imperial'<br> }<br> }<br>});<br><div><br></div><div>You should just have to change 'imperial' to 'metric'.</div><div><br></div><div>Chris</div><div><br></div><div><br></div></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2020 at 11:54 PM Lara Perez- Jefa Departamento Cartografia y Topografia Ayuntamiento Oliva (Valencia) Spain <<a href="mailto:topografia@oliva.es">topografia@oliva.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Hi everyone. I have finally found the
answer:<br>
To work with EPSG: 25830, I added the projection to the files
common_metadata.map, I modified the geomoose_globals.map and the
app.js.<br>
The solution:<br>
<br>
common_metadata.map<br>
# Useful global metadata settings,<br>
# enabled all WxS requests, sets common projections,<br>
# and defaults to JSON for default wms_feature_info<br>
#<br>
<br>
'ows_enable_request' '*'<br>
'ows_srs' 'EPSG: 25830 EPSG: 4326 EPSG: 3857'<br>
'wfs_srs' 'EPSG: 25830 EPSG: 4326 EPSG: 3857'<br>
'wms_feature_info_mime_type' 'application / json'<br>
<br>
geomoose_globlas.map<br>
# A convienent place to setup a bunch of defaults for MapServer<br>
# so they don't need to be set in every mapfile.<br>
PROJECTION<br>
;"init = epsg: 25830"<br>
END<br>
EXTENT 746000 4304950 758100 4314500<br>
<br>
app.js:<br>
app.loadMapbook({url: 'mapbook.xml'}).then(function() {<br>
// set the default view.<br>
app.setView({<br>
center: [ -<font color="#ff0000">10682 , 4708000 </font>],<br>
zoom:13<br>
});<br>
</div>
<div><br>
app.addProjection({<br>
ref: 'EPSG:25830',<br>
def: '+proj=utm +zone=30 +ellps=GRS80 +datum=NAD83
+units=m +no_defs'<br>
});</div>
<div><br>
</div>
<div>app.registerAction('fullextent',
ZoomToAction, {<br>
extent: [-<font color="#ff0000">18500,4702000,-3000,4715000</font>]<br>
});</div>
<div><br>
</div>
<div>var point_projections = [<br>
{<br>
label: 'UTM ETRS 89',<br>
ref: 'EPSG:25830'<br>
},<br>
{<br>
label: 'X Y: ',<br>
ref: 'xy'<br>
},<br>
{<br>
label: 'Lat,Lon',<br>
ref: 'latlon'<br>
}<br>
];<br>
</div>
<div><br>
</div>
<div>app.add(gm3.components.JumpToExtent,
'jump-to-extent', {<br>
locations: [<br>
{<br>
label: 'Termino Municipal',<br>
extent: [-<font color="#ff0000">18500,4702000,-3000,4715000</font>]<br>
},<br>
{<br>
label: 'Casco Urbano',<br>
extent: [<font color="#ff0000">-14600,4708500,-11690,4711200</font>]<br>
},<br>
{<br>
label: 'Playas',<br>
extent: [<font color="#ff0000">-12900,4708190,-6912,4713700]</font><br>
}<br>
]<br>
});<br>
</div>
<div><br>
</div>
<div>Notaci that coordinates for the view are
in X,Y, not in UTMETRS89....<br>
</div>
<div><br>
</div>
<div>Now I would like to know how to change
the scalebar units ... still in miles ...<br>
</div>
<div><br>
</div>
<div>-- <br>
<table style="width:100%;height:119px;border-bottom:thin solid rgb(255,153,0);border-top:medium solid rgb(255,153,0)" width="50%">
<tbody>
<tr>
<td width="305" height="163"><a href="http://oliva.es/es/" target="_blank">
<img src="http://oliva.es/wp-content/uploads/2017/01/AJUNTAMENT_O-1.jpg" alt="" width="305" height="159"></a></td>
<td width="925">
<div><strong>Cap del Departament de Cartografia i
Topografia</strong></div>
<div>Lara Perez Bessone</div>
<div>Enginyera Tecnica Topografa Municipal</div>
<div>email: <a href="mailto:topografia@oliva.es" target="_blank">topografia@oliva.es</a> Tel.
mòvil: 647 835 086 ext. 521</div>
<br>
<div><strong>Ajuntament
d'Oliva - València</strong></div>
<div>Plaça del Ajuntament 1, 46780
Oliva</div>
<div>Tel. 962850250 Fax 962855165
<a href="http://www.oliva.es" target="_blank">www.oliva.es</a></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font size="4">Chris Hughes</font><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">GIS Analyst</div><div style="font-size:12.8px"><font size="1">Lincoln County Surveyor Department </font></div><div><font size="1"><span style="font-family:Roboto,arial,sans-serif">880 NE 7th S</span><span style="font-family:Roboto,arial,sans-serif">t</span>. l Newport, OR 97365</font></div><div style="font-size:12.8px"><font size="1">Tel: (541) 574 1283</font></div></div></div></div>