Sfoglia il codice sorgente

mappa editabile

master
Mattia MWG 4 anni fa
parent
commit
14e996de92
  1. 26
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  2. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp
  3. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css
  4. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css.map
  5. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js
  6. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js.map
  7. 1
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/.gitignore
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/commons-logging.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/jstl-api.jar
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  11. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/log4j.jar
  12. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/util-bridges.jar
  13. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/util-java.jar
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/util-taglib.jar
  15. 572
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/tld/c.tld
  16. 28
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/html/plugin/top.jsp

26
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp

@ -292,16 +292,16 @@
<aui:input name="zoom" label="" type="hidden" <aui:input name="zoom" label="" type="hidden"
value='<%=geolocalization.length>2?geolocalization[2]:"8" %>'/> value='<%=geolocalization.length>2?geolocalization[2]:"8" %>'/>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="lat" label="" type="hidden" <aui:input name="lat_hidden" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' /> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' />
<aui:input disabled="true" type="text" name="lat_hidden" <aui:input type="text" name="lat"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' label="dp-lat"/> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' label="dp-lat"/>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="long" label="" type="hidden" <aui:input name="long_hidden" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/> value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
<aui:input disabled="true" type="text" name="long_hidden" <aui:input type="text" name="long"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>' label="dp-long"/> value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>' label="dp-long"/>
</div> </div>
<aui:input disabled="<%=disabledInput || isGeoEditable %>" type="hidden" name="geoIsEditable" <aui:input disabled="<%=disabledInput || isGeoEditable %>" type="hidden" name="geoIsEditable"
@ -602,7 +602,6 @@ function localize(){
on: { on: {
success: function() { success: function() {
var response = this.get('responseData'); var response = this.get('responseData');
console.log(response);
if(response.length == 0){ if(response.length == 0){
alert('Spiacenti... Nessun risultato per i dati immessi') alert('Spiacenti... Nessun risultato per i dati immessi')
}else if(response && response[0]){ }else if(response && response[0]){
@ -651,6 +650,19 @@ function checkIfDisableSistemiCostruttivi(){
} }
} }
$('#<portlet:namespace/>long, #<portlet:namespace/>lat').on('change', function(){
if($('#<portlet:namespace/>long').val() != '' && $('#<portlet:namespace/>lat').val() != ''){
var latitude = parseFloat($('#<portlet:namespace/>lat').val());
var longitude = parseFloat($('#<portlet:namespace/>long').val());
$('#<portlet:namespace/>lat_hidden').val(latitude);
$('#<portlet:namespace/>long_hidden').val(longitude);
var zoom = mapItMap.getCurrentZoom();
updateCoords(latitude, longitude, zoom, true, true);
}
});
$('#sistemi_costruttivi input').on('change', function(){ $('#sistemi_costruttivi input').on('change', function(){
var _this = $(this); var _this = $(this);
@ -829,7 +841,7 @@ $('#<portlet:namespace/>collaudoStaticoCheckbox').change(function () {
}); });
function checkCollaudoStatico(){ function checkCollaudoStatico(){
var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"), /*var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"),
miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"), miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"),
adeguamentoSismico = AUI().one("#<portlet:namespace/>tcAdeguamentoSismicoCheckbox"), adeguamentoSismico = AUI().one("#<portlet:namespace/>tcAdeguamentoSismicoCheckbox"),
nuovaCostruzione = AUI().one("#<portlet:namespace/>tc-nuova-costruzioneCheckbox"), nuovaCostruzione = AUI().one("#<portlet:namespace/>tc-nuova-costruzioneCheckbox"),
@ -852,7 +864,7 @@ function checkCollaudoStatico(){
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).attr("disabled", true); $('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).attr("disabled", true);
} else if(interventoLocale.attr("checked")){ } else if(interventoLocale.attr("checked")){
$('#<portlet:namespace/>collaudoStaticoCheckbox').removeAttr('disabled'); $('#<portlet:namespace/>collaudoStaticoCheckbox').removeAttr('disabled');
} }*/
} }
</script> </script>

4
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp

@ -78,7 +78,7 @@
}); });
Liferay.on('soggetti-ready',function(event) { Liferay.on('soggetti-ready',function(event) {
if(<%= !disabledInput %>){ /*if(<%= !disabledInput %>){
var isCommittenteAndDitta = event.isCommittenteAndDitta; var isCommittenteAndDitta = event.isCommittenteAndDitta;
if(isCommittenteAndDitta){ if(isCommittenteAndDitta){
A.one('#<portlet:namespace/>collaudoStaticoCheckbox').addClass('disabled'); A.one('#<portlet:namespace/>collaudoStaticoCheckbox').addClass('disabled');
@ -90,7 +90,7 @@
document.location.hash = '_1_WAR_portosfeportlet_tab=_1_WAR_portosfeportlet_page_soggetti'; document.location.hash = '_1_WAR_portosfeportlet_tab=_1_WAR_portosfeportlet_page_soggetti';
soggettiEdit=false; soggettiEdit=false;
} }
} }*/
}); });
</aui:script> </aui:script>
<%-- <liferay-portlet:runtime portletName="<%=PortletKeys.SOGGETTI %>" queryString='<%="dettPraticaId="+dettPratica.getDettPraticaId()+"&getCompleted="+String.valueOf(getCompleted)%>' ></liferay-portlet:runtime> --%> <%-- <liferay-portlet:runtime portletName="<%=PortletKeys.SOGGETTI %>" queryString='<%="dettPraticaId="+dettPratica.getDettPraticaId()+"&getCompleted="+String.valueOf(getCompleted)%>' ></liferay-portlet:runtime> --%>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css

@ -1,2 +0,0 @@
.ol-box{box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-Index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:12px;z-Index:11;color:#000;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.ol-scale-text{position:absolute;font-size:14px;text-align:center;bottom:25px;color:#000;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.ol-scale-singlebar{position:relative;height:10px;z-Index:9;border:1px solid #000}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-overlaycontainer,.ol-overlaycontainer-stopevent{pointer-events:none}.ol-overlaycontainer-stopevent>*,.ol-overlaycontainer>*{pointer-events:auto}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:rgba(255,255,255,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:rgba(255,255,255,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-control button span{pointer-events:none}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}
/*# sourceMappingURL=ol.css.map */

1
liferay-plugins-sdk-6.2/portlets/portos-fe-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BACE,KAAM,KACN,OAAQ,KAEV,iCACE,OAAQ,EACR,KAAM,EACN,cAAe,EAAE,IAAI,EAAE,EAEzB,oCACA,uBACE,QAAS,aAEX,oCACE,OAAQ,IAAI,MAAM,QAClB,OAAQ,MACR,OAAQ,IACR,MAAO,MAET,0CACE,OAAQ,IACR,KAAM,IACN,SAAU,SAEZ,iDACA,wCACE,QAAS,KAEX,mCACE,WAAY,qBAEd,oBACE,OAAQ,IAAI,OAAO,kBAGrB,0CACE,OAAQ"}

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js

File diff suppressed because one or more lines are too long

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js.map

File diff suppressed because one or more lines are too long

1
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/.gitignore vendored

@ -0,0 +1 @@
/classes/

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/util-java.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

572
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/tld/c.tld

@ -1,572 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<description>JSTL 1.2 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.2</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>
<validator>
<description>
Provides core validation features for JSTL tags.
</description>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
</validator>
<tag>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
exception thrown from a nested action. The type of the
scoped variable is the type of the exception thrown.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
<name>choose</name>
<tag-class>com.liferay.taglib.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<name>if</name>
<tag-class>com.liferay.taglib.core.IfTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or
not the body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to import.
</description>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is Reader.
</description>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when accessing a relative
URL resource that belongs to a foreign
context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Character encoding of the content at the input
resource.
</description>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
Collection of items to iterate over.
</description>
<name>items</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.Object</type>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
If items specified:
Iteration begins at the item located at the
specified index. First item of the collection has
index 0.
If items not specified:
Iteration begins with index set at the value
specified.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
If items specified:
Iteration ends at the item located at the
specified index (inclusive).
If items not specified:
Iteration ends when index reaches the value
specified.
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step items of
the collection, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility. Its type depends
on the object of the underlying collection.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of type
javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
String of tokens to iterate over.
</description>
<name>items</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description>
The set of delimiters (the characters that
separate the tokens in the string).
</description>
<name>delims</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<description>
Iteration begins at the token located at the
specified index. First token has index 0.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration ends at the token located at the
specified index (inclusive).
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step tokens
of the string, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of
type
javax.servlet.jsp.jstl.core.LoopTag
Status. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters &lt;,&gt;,&amp;,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
<name>otherwise</name>
<tag-class>com.liferay.taglib.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the query string parameter.
</description>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Value of the parameter.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Redirects to a new URL.
</description>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to redirect to.
</description>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when redirecting to a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Name of the scoped variable to be removed.
</description>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable to hold the value
specified in the action. The type of the scoped variable is
whatever type the value expression evaluates to.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Target object whose property will be set. Must evaluate to
a JavaBeans object with setter property property, or to a
java.util.Map object.
</description>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the property to be set in the target object.
</description>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Creates a URL with optional query parameters.
</description>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
processed url. The type of the scoped variable is
String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
URL to be processed.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when specifying a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<name>when</name>
<tag-class>com.liferay.taglib.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or not the
body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
</tag>
</taglib>

28
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/html/plugin/top.jsp

@ -120,7 +120,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
var geographic = new OpenLayers.Projection("EPSG:4326"); var geographic = new OpenLayers.Projection("EPSG:4326");
var mercator = new OpenLayers.Projection( "EPSG:3857"); var mercator = new OpenLayers.Projection( "EPSG:3857");
extent.transform(geographic,mercator ); extent.transform(geographic,mercator );
mapItMap.addOption({restrictedExtent: extent}); //mapItMap.addOption({restrictedExtent: extent});
/* var boxes = new OpenLayers.Layer.Boxes("boxes"); /* var boxes = new OpenLayers.Layer.Boxes("boxes");
var box = new OpenLayers.Marker.Box(extent); var box = new OpenLayers.Marker.Box(extent);
@ -135,7 +135,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_osm.civici.point', transparent: true}, layers: 'rt_osm.civici.point', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(civici); //mapItMap.addWMSLayer(civici);
var comuni = new OpenLayers.Layer.WMS( var comuni = new OpenLayers.Layer.WMS(
'Comuni', 'Comuni',
@ -144,7 +144,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_ambamm.idcomuni.rt.poly', transparent: true}, layers: 'rt_ambamm.idcomuni.rt.poly', transparent: true},
{isBaseLayer: false} {isBaseLayer: false}
); );
mapItMap.addWMSLayer(comuni); //mapItMap.addWMSLayer(comuni);
var topografico = new OpenLayers.Layer.WMS( var topografico = new OpenLayers.Layer.WMS(
'Topografico', 'Topografico',
@ -153,7 +153,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_cartoteca.dbt.2k', transparent: true}, layers: 'rt_cartoteca.dbt.2k', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(topografico); //mapItMap.addWMSLayer(topografico);
var rischio_bacini_regionali = new OpenLayers.Layer.WMS( var rischio_bacini_regionali = new OpenLayers.Layer.WMS(
'Rischio Idrogeologico', 'Rischio Idrogeologico',
@ -162,7 +162,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_peridr.rischio_bacini_regionali', transparent: true}, layers: 'rt_peridr.rischio_bacini_regionali', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(rischio_bacini_regionali); //mapItMap.addWMSLayer(rischio_bacini_regionali);
var catasto_strade = new OpenLayers.Layer.WMS( var catasto_strade = new OpenLayers.Layer.WMS(
'Strade', 'Strade',
@ -171,7 +171,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_cat.idcatstrade.rt', transparent: true}, layers: 'rt_cat.idcatstrade.rt', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(catasto_strade); //mapItMap.addWMSLayer(catasto_strade);
var catasto_fabbricati = new OpenLayers.Layer.WMS( var catasto_fabbricati = new OpenLayers.Layer.WMS(
'Fabbricati', 'Fabbricati',
@ -180,7 +180,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_cat.idcatfabbr.rt', transparent: true}, layers: 'rt_cat.idcatfabbr.rt', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(catasto_fabbricati); //mapItMap.addWMSLayer(catasto_fabbricati);
var catasto_fogli = new OpenLayers.Layer.WMS( var catasto_fogli = new OpenLayers.Layer.WMS(
'Fogli Catastali', 'Fogli Catastali',
@ -189,7 +189,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_cat.idcatbdfog.rt', transparent: true}, layers: 'rt_cat.idcatbdfog.rt', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(catasto_fogli); //mapItMap.addWMSLayer(catasto_fogli);
var catasto_particelle = new OpenLayers.Layer.WMS( var catasto_particelle = new OpenLayers.Layer.WMS(
'Particelle Catastali', 'Particelle Catastali',
@ -198,7 +198,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
layers: 'rt_cat.idcatpart.rt', transparent: true}, layers: 'rt_cat.idcatpart.rt', transparent: true},
{isBaseLayer: false, visibility : false} {isBaseLayer: false, visibility : false}
); );
mapItMap.addWMSLayer(catasto_particelle); //mapItMap.addWMSLayer(catasto_particelle);
var markerStyle = { var markerStyle = {
@ -352,6 +352,7 @@ Liferay.on('geolocation-ready',function(event) {
if(latitude!="" && longitude!=""){ if(latitude!="" && longitude!=""){
var zoom = mapItMap.getCurrentZoom() > 8 ? mapItMap.getCurrentZoom() : 12; var zoom = mapItMap.getCurrentZoom() > 8 ? mapItMap.getCurrentZoom() : 12;
console.log(full);
if(full){ if(full){
//zoom = 14; //zoom = 14;
var markerStyle = { var markerStyle = {
@ -371,13 +372,14 @@ Liferay.on('geolocation-ready',function(event) {
mapItMap.addLayerPoints(layerName, search_point, true, {}); mapItMap.addLayerPoints(layerName, search_point, true, {});
updateCoords(latitude, longitude, zoom, false); updateCoords(latitude, longitude, zoom, false);
} }
mapItMap.moveMap(longitude, latitude, zoom); mapItMap.moveMap(longitude, latitude, zoom);
} }
}); });
}); });
function updateCoords(lat_coord, long_coord, zoom_coord, fullUpdate){ function updateCoords(lat_coord, long_coord, zoom_coord, fullUpdate, noTransform){
AUI().use('aui-io-request', function(A) { AUI().use('aui-io-request', function(A) {
var latitude = AUI().one("#"+portletNamespace+"lat"), var latitude = AUI().one("#"+portletNamespace+"lat"),
longitude = AUI().one("#"+portletNamespace+"long"), longitude = AUI().one("#"+portletNamespace+"long"),
@ -389,7 +391,10 @@ function updateCoords(lat_coord, long_coord, zoom_coord, fullUpdate){
var newlonLat; var newlonLat;
if(fullUpdate){ if(fullUpdate){
newlonLat = new OpenLayers.LonLat(long_coord, lat_coord).transform( new OpenLayers.Projection("EPSG:3857") , new OpenLayers.Projection("EPSG:4326")); if(!noTransform)
newlonLat = new OpenLayers.LonLat(long_coord, lat_coord).transform( new OpenLayers.Projection("EPSG:3857") , new OpenLayers.Projection("EPSG:4326"));
else
newlonLat = new OpenLayers.LonLat(long_coord, lat_coord);
var markerStyle = { var markerStyle = {
graphicHeight: 29, graphicHeight: 29,
@ -408,6 +413,7 @@ function updateCoords(lat_coord, long_coord, zoom_coord, fullUpdate){
}else{ }else{
newlonLat=new OpenLayers.LonLat(long_coord, lat_coord); newlonLat=new OpenLayers.LonLat(long_coord, lat_coord);
} }
var url = "https://nominatim.openstreetmap.org/reverse?format=json&zoom=18&addressdetails=1" var url = "https://nominatim.openstreetmap.org/reverse?format=json&zoom=18&addressdetails=1"
+"&lat="+(newlonLat.lat)+"&lon="+(newlonLat.lon); +"&lat="+(newlonLat.lat)+"&lon="+(newlonLat.lon);

Caricamento…
Annulla
Salva