POST
|
This is my code for show and hide the map service but don't work <script> var map = L.map('map').setView([37.75, -122.23], 10); L.esri.basemapLayer('Topographic').addTo(map); var layer_esri = new L.esri.dynamicMapLayer('http://maps1.arcgisonline.com/ArcGIS/rest/services/USA_Federal_Lands/MapServer', { opacity:0.5 }).addTo(map); </script> <script> $("#isAgeSelected").click(function(){ $("layer_esri").hide(); }); $("#isAgeSelected").click(function(){ $("layer_esri").show(); }); </script> <input type="checkbox" id="isAgeSelected" class="position"> You have any idea? Thanks
... View more
10-14-2014
08:41 AM
|
0
|
11
|
1280
|
POST
|
I know layer control but i'm integrating the leaflet into html5 css3 code for mobile device. So i created a second view called toc with a switch on off for layer and so i can't use the layer control
... View more
10-14-2014
08:38 AM
|
0
|
12
|
1280
|
POST
|
Hy Paul, thanks for your replay but this my code: <script> var map = L.map('map').setView([37.75, -122.23], 10); L.esri.basemapLayer('Topographic').addTo(map); var layer_esri = L.esri.dynamicMapLayer('http://maps1.arcgisonline.com/ArcGIS/rest/services/USA_Federal_Lands/MapServer', { visible: false, opacity:0.5 }).addTo(map); </script> i would like to start my basemap with the map service off and anfter start with check box and so i use "visible" capability for this but don't work
... View more
10-14-2014
08:09 AM
|
0
|
14
|
1280
|
POST
|
Hy guys,
i'm using the esri leaflet plugin for a html5 css3 mobile app. I worked with arcgis javascript and the map service visibility it's possible to set with "visible" method, but this method don't fuction in esri leaflet.
How can i set visibility of map service leaflet ?
Thanks
... View more
10-14-2014
07:20 AM
|
0
|
17
|
4421
|
POST
|
Hello everyone. Recently i saw the video published on esri video about integration between ESRI and Google Glass, this is the link: Google Glass and Esri - Yes I Can Haz the Maps! | Esri Video Is available the code example shown in the video? Is there any articles that i read for the integration? Thanks to all Greetings
... View more
08-04-2014
03:22 AM
|
0
|
0
|
2923
|
POST
|
Hello to all. I saw on the guide online presence of a new tool on 10.2. the tool is export mosaic dataset items. I have a 10.2 advanced and spatial extension. inside the toolbox datamanagment the tool is not present and i have activated the spatial analyst extension If I try to work with ArcPy and if I try to load this module is not found Someone can give me an answer and help me? thank you very much Greetings to all
... View more
01-17-2014
05:06 AM
|
0
|
1
|
874
|
POST
|
hello guys. I wrote this script that should read a list of shp file from a folder and then define the spatial and then the project. How do I create db before, and in one of these I'm going to put the result. The model works but does not run the project. Can you help? I do not understand why is not working This is my script
import arcpy, os
from arcpy import env
# Envirement Settings
arcpy.env.workspace = arcpy.GetParameterAsText(0)
# Variabili per la funzione di CreateFileGDB
out_folder_gdb = arcpy.GetParameterAsText(1)
name_gdb = arcpy.GetParameterAsText(2)
out_folder_gdb_utm = arcpy.GetParameterAsText(3)
name_gdb_utm = arcpy.GetParameterAsText(4)
# Creazione dei DB
arcpy.CreateFileGDB_management(out_folder_gdb, name_gdb)
arcpy.CreateFileGDB_management(out_folder_gdb_utm, name_gdb_utm)
# Imposto lista elementi
fcs = arcpy.ListFeatureClasses('*')
imposto variabile locale
try:
for f in fcs:
inData = f
coordinateSystems = "PROJCS['Monte_Mario_Rome_Italy_1',GEOGCS['GCS_Monte_Mario_Rome',DATUM['D_Monte_Mario',SPHEROID['International_1924',6378388.0,297.0]],PRIMEM['Rome',12.45233333333333],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',1500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-3.45233333],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]"
arcpy.DefineProjection_management(inData, coordinateSystems)
arcpy.Project_management(inData,out_folder_gdb + "/" + name_gdb + ".gdb", "WGS 1984 UTM Zone 32N","", "Monte_Mario_To_WGS_1984_4")
except arcpy.ExecuteError:
print(arcpy.GetMessages(2))
except Exception as ex:
print(ex.args[0])
thank you very much greetings
... View more
01-09-2014
01:40 AM
|
0
|
1
|
698
|
POST
|
hello guys, I'm using the script for project features that is in the help of arcgis desktop, but I get a generic error 999999 this is the script code [HTML] import arcpy, os from arcpy import env # Enviroment Setting env.workspace = "C:/Users/fdivito/Documents/Commesse/LOMBARDIA_INFORMATICA/PolidroDati/DATI_ANALISI/Feature.gdb" env.overwriteOutput = True # Imposta variabile locale su cui viene salvato il risultato dell'operazione outWorkspace = "C:/Users/fdivito/Documents/Commesse/LOMBARDIA_INFORMATICA/PolidroDati/DATI_ANALISI/Feature_utm.gdb" try: # Use ListFeatureClasses to generate a list of inputs for infc in arcpy.ListFeatureClasses(): # Determine if the input has a defined coordinate system, can't project it if it does not dsc = arcpy.Describe(infc) if dsc.spatialReference.Name == "Unknown": print ('skipped this fc due to undefined coordinate system: ' + infc) else: # Determine the new output feature class path and name outfc = os.path.join(outWorkspace, infc) # Set output coordinate system outCS = arcpy.SpatialReference('WGS_1984_UTM_Zone_32N') # run project tool arcpy.Project_management(infc, outfc, outCS) # check messages print(arcpy.GetMessages()) except arcpy.ExecuteError: print(arcpy.GetMessages(2)) except Exception as ex: print(ex.args[0]) [/HTML] Any help please? Bye Thanks
... View more
11-25-2013
06:14 AM
|
0
|
6
|
368
|
POST
|
Hi robert, i entered in my code the wkid of spatial reference with id
<fx:Declarations>
<esri:Extent>
<esri:SpatialReference wkid="102100" id="sp"/>
</esri:Extent>
<esri:QueryTask id="queryTask"
executeComplete="navigator.pushView(ApplicazioneHomeView, event.featureSet)"
showBusyCursor="false"
url="http://www.pcn.minambiente.it/arcgis/rest/services/classificazione_sismica_comunale_2012/MapServer/0"
useAMF="true"/>
<esri:Query id="query"
outFields="['comune']"
returnGeometry="true" outSpatialReference="{sp}"
where="{data}"/>
</fx:Declarations>
and i call it and now the application works Thanks
... View more
11-06-2013
12:07 AM
|
0
|
0
|
153
|
POST
|
Hello to all. I created a mobile application and following the example of Mansour Raad I created a query that passes the result directly on the map But I have a problem, when the result is passed to the map traslatto result than the basemap. The basemap is Topo with wkid 102100 while the service on which I make the query is 32633. How can I fix the problem in order to correctly project the result on the map? I try with insert a property "outSpatialReference"
<fx:Declarations>
<esri:QueryTask id="queryTask"
executeComplete="navigator.pushView(ApplicazioneHomeView, event.featureSet)"
showBusyCursor="false"
url="http://www.pcn.minambiente.it/arcgis/rest/services/classificazione_sismica_comunale_2012/MapServer/0"
useAMF="true"/>
<esri:Query id="query"
outFields="['comune']"
returnGeometry="true" outSpatialReference="32633"
where="{data}"/>
</fx:Declarations>
but return an error: 'outSpatialReference': values of type com.esri.ags.SpatialReference cannot be represented in text. Any help is welcome thanks bye
... View more
11-04-2013
05:00 AM
|
0
|
2
|
504
|
POST
|
Hello everyone, I have a problem with displaying the base map when I open my application using the switch basemap. I have developed a mobile application and I used the example of a switch basemaps, but I used a caloutbutton INSIDE tHIS with the list of maps instead the buttons visible on the map. When I launch the application does not load the map but as soon as I click on the calout button to open the list of maps is immediately loaded. How can I do to display the map as soon as you launch the application without having to click on caloutbutton? this is my code <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:esri="http://www.esri.com/2008/ags"> <fx:Script> <![CDATA[ import spark.events.DropDownEvent; protected function calloutbutton1_openHandler(event:DropDownEvent):void { // TODO Auto-generated method stub } protected function calloutbutton1_closeHandler(event:DropDownEvent):void { // TODO Auto-generated method stub } ]]> </fx:Script> <fx:Script> <![CDATA[ import com.esri.ags.geometry.MapPoint; import com.esri.ags.layers.TiledMapServiceLayer; import mx.events.FlexEvent; private function layerShowHandler(event:FlexEvent):void { // update the LODs/zoomslider to use/show the levels for the selected base map var tiledLayer:TiledMapServiceLayer = event.target as TiledMapServiceLayer; map.lods = tiledLayer.tileInfo.lods; } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Declarations> <esri:Extent id="initialExtent" xmin="-13635000" ymin="4541000" xmax="-13625000" ymax="4547000"> <esri:SpatialReference wkid="102100"/> </esri:Extent> </fx:Declarations> <esri:Map extent="{initialExtent}" id="map" zoomSliderVisible="false"> <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" visible="{bb.selectedIndex == 0}"/> <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" visible="{bb.selectedIndex == 1}"/> <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="{bb.selectedIndex == 2}"/> <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)" url="http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" visible="{bb.selectedIndex == 3}"/> <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)" url="http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer" visible="{bb.selectedIndex == 4}"/> </esri:Map> <s:actionContent> <s:CalloutButton close="calloutbutton1_closeHandler(event)" open="calloutbutton1_openHandler(event)" visible="true"> <s:icon> <s:MultiDPIBitmapSource source160dpi="mobile160/assets/2_action_about.png"/> </s:icon> <s:List id="bb" requireSelection="true" width="240" color="black"> <s:dataProvider> <s:ArrayList> <fx:String>Streets</fx:String> <fx:String>Topographic</fx:String> <fx:String>Imagery</fx:String> <fx:String>Oceans</fx:String> <fx:String>National Geographic</fx:String> </s:ArrayList> </s:dataProvider> </s:List> </s:CalloutButton> </s:actionContent> </s:View> any help is well come bye
... View more
11-01-2013
05:46 AM
|
0
|
2
|
375
|
POST
|
Thanks for your replay Odoe. I tried to integrate the example esri leaflet (ArcGISDynamicMapServiceLayer) but on mobile this class and other are not supported. Thanks
... View more
10-23-2013
06:36 AM
|
0
|
0
|
274
|
POST
|
hello guys, I have a question. you can integrate esri leaflet with jquery Mobile? thank you very much Bye
... View more
10-23-2013
05:47 AM
|
0
|
2
|
470
|
POST
|
hello guys, I'm developing a mobile application with jQuery Mobile API and javascript. I have followed the example of the popup mobile but does not work on dynamic mapservice that i use. Any thoughts on this? Can you give me some advice? This is my code. [HTML] <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9, IE=10"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <!-- API JQUERY MOBILE --> <link rel="stylesheet" href="themes/geologia.min.css" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile.structure-1.3.2.min.css" /> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> <!-- API ESRI JAVASCRIPT --> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css"> <script src="http://js.arcgis.com/3.7/"></script> <link rel="stylesheet" type='text/css' href='http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/esri/dijit/css/Popup.css'/> <style type="text/css"> html, body { height: 100%; margin: 0px; padding: 0px; width: 100%; } #mapcontent, #map { width: 100%; height: 100%; padding: 0; position: absolute; z-index: 0;} </style> <script> var map; var layer1; var popup; require([ "esri/map", "esri/dijit/BasemapToggle", "dojo/domReady!", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/dijit/Popup", "esri/arcgis/utils", "esri/dijit/PopupMobile", "dojo/dom-construct", ], function( Map, ArcGISDynamicMapServiceLayer, arcgisUtils, Popup ) { popup= new esri.dijit.Popup(null,dojo.create("div")); map = new Map("map", { center: [12.785, 42.372], zoom: 6, slider:false, basemap: "topo", infoWindow: popup }); /*aggiungi layer*/ layer1 = new esri.layers.ArcGISDynamicMapServiceLayer("http://www.pcn.minambiente.it/arcgis/rest/services/geologica/MapServer", { visible:false} ) map.addLayer(layer1) }); function updateLayerVisibility() { var isChecked = $('#checkbox-v-2a').is(':checked'); if(isChecked == true){ layer1.show() } else{ layer1.hide() }; } </script> </head> <body> <!-- home view --> <div data-role="page" id="home"> <!-- header --> <div data-theme="a" data-role="header" data-position="fixed"> <a href="#toc" data-role="button" data-icon="star" data-iconpos="notext"></a> <h3>Geologia</h3> </div> <!-- content --> <div data-role="content" id="mapcontent"> <div id="map"></div> </div> </div> <!-- layer view --> <div data-role="page" id="toc"> <!-- header --> <div data-theme="a" data-role="header" data-position="fixed"> <a href="#home" data-role="button" data-icon="back" data-iconpos="notext"></a> <h3>Layer</h3> </div> <!-- content --> <div data-role="content"> <form> <fieldset data-role="controlgroup"> <legend>Vertical:</legend> <input type="checkbox" name="" id="checkbox-v-2a" onClick="updateLayerVisibility()"> <label for="checkbox-v-2a">Carta Geologica 1M</label> <input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b" onClick="updateLayerVisibility_1()"> <label for="checkbox-v-2b">Carta Geologia 500K</label> <input type="checkbox" name="checkbox-v-2c" id="checkbox-v-2c"> <label for="checkbox-v-2c">Operation Layer 3</label> </fieldset> </form> </div> </div> </body> </html> [/HTML] Hello to all thanks
... View more
10-10-2013
02:27 AM
|
0
|
0
|
234
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|