|
POST
|
(5)...use jQuery's attr() method to access this DOM element's "stroke-width" value this.stroke = $(this.line).attr("stroke-width") IE <8 uses vml, and i believe the attribute is strokeweight, not stroke width so (5) will need to become
if(dojox.gfx.renderer==="vml"){
this.stroke = $(this.line).attr("stroke-weight")
}else{
this.stroke = $(this.line).attr("stroke-width")
}
I am not totally sure its stroke weight, going off http://msdn.microsoft.com/en-us/library/documentformat.openxml.vml.line.strokeweight if you inspect it in IE's developer toolkit you should see the css property.
... View more
05-24-2012
09:21 AM
|
0
|
0
|
2758
|
|
POST
|
i use http://json.org/ and the validator at http://jsonformatter.curiousconcept.com/ So far pretty straight forward, only surprise was that comments are not supported! You cannot have //comments in json you need to actually add a comments key:value pair Hi, so far I didn't find any real Official JSON format (if that exist). I've found the ESRI JSON input format expected by a geoprocessing service for ArcGIS 10.0. http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html So I know exactly what the geoprocessing service expects. I've also seen how a featureSet should be sent to a geoprocessing service through the submitJob function of the esri.tasks.Geoprocessor. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm My problem is to figure out, where does that geoprocessor find its toJson function for a featureSet. ESRI says that the format expected should be some like this : {
"geometryType" : "esriGeometryPoint",
"spatialReference" : {"wkid" : 4326},
"features" : [
{
"geometry" : {"x" : -104.44, "y" : 34.83},
"attributes" : {"Id" : 43, "Name" : "Feature 1"}
},
{
"geometry" : {"x" : -100.65, "y" : 33.69},
"attributes" : {"Id" : 67, "Name" : "Feature 2"}
}
]
} But then, the geoprocessor object create the JSON from my featureSet like this: {
"fields":[],
"geometryType":"esriGeometryPoint",
"features":[
{
"geometry":{"x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
"attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true}
}
],
"sr":{"wkid":3400}
} Althought the JSON.stringify() method give me this : {
"features":[
{
"geometry":{"type":"point","x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
"symbol":null,
"attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true},
"infoTemplate":{"title":"Main Camp","content":"Latitude: 56.123456<br>Longitude: -112.12345678"}
}
],
"geometryType":"esriGeometryPoint",
"spatialReference":{"wkid":3400}
} I've tried to call the service from the rest end point with both JSON featureSet and I found out why the JSON object created by the geoprocessor does not work. It simply that, as you can notice, the spatial reference from the geoprocessor is noted as "sr":{"wkid":3400} while form the stringify method it is noted as "spatialReference":{"wkid":3400} which is the expected format. I'm wondering if this is normal and there is just something I'm missing, or is it simply a bug from esri.tasks.geoprocessor. That is why I'd like to know what does the esri.tasks.geoprocessor uses for the purpose of converting FeatureSet to JSON and how can I work around that problem. If anyone has encountered that problem or has a hint on how to solve this, it'd be appreciated. Thank you
... View more
05-24-2012
04:41 AM
|
0
|
0
|
6484
|
|
POST
|
I have an identify button and a project point button. If I click on Identify and then click on the map, Identify works fine, but if I click on the project point button, the project point works, but my Identify stops working. I have included a video to explain: http://youtu.be/RRhQwS8sxaM I have also posted the code on github at: https://github.com/csergent45/SOA-Final reactor.js within the js folder is where the bulk of the code that runs this application, but all the code that has to with identify and projecting the point are in this file. Thanks. Chris S. well your project deactivates the identifyhandle, do you ever reactivate it?
... View more
05-23-2012
12:39 PM
|
0
|
0
|
1808
|
|
POST
|
Hi everybody, is there anyway we can use geoprocessing services like for instance route task on Morocco routes or Africa, Europe or whatever ? It seems like geoprocessing services are working just in the U.S and Canada. Would you please enlighten me about the subject. I wanna use the geoprocessing services for Morocco and I'm really confused about the subject. My guess is this is a limitation of the Bing Geocoder, not the javascript api.
... View more
05-22-2012
07:27 AM
|
0
|
0
|
1193
|
|
POST
|
Thanks for clarifying. I'm still waiting to hear back about testing this with a JSP proxy on a AGS Java instance + SSL. Ok here goes an example https://www.mymanatee.org/gisapps/mapviewer-test/index.jsp?type=utilitiesinfrastructure&extent=-9200946.57406522:3186486.189628383:-9198653.463216856:3187241.005282636&widgetOn=Legend In firefox: 1. Log in u: esri p: esri 2. After logging in, refresh the layer visibility in the Live Map widget (working on automating that) using the green refresh arrows 3. Turn on the Irrigation layer (this is the secure layer) 4. Open the Legend from the widget menu. Notice the icons for the non-label layers In IE: 1. Click ok on warning about insecure content 2. Log in u: esri p: esri 3. If the Live Map widget does not open, open it by using the Folder Icon or from the Map Menu (IE doesnt like automation) 4. Refresh the layer visibility in the Live Map widget (working on automating that) using the green refresh arrows 5. Turn on the Irrigation layer (this is the secure layer) 6. Open the Legend from the widget menu. Notice the red "Xs" instead of icons for all layers hope this helps.
... View more
05-22-2012
07:08 AM
|
0
|
0
|
2600
|
|
POST
|
Ok best i could do for a public demo http://www.mymanatee.org/gisapps/mapviewer-test/index.jsp?type=test&layervis=Aerial%20Grid&widgetOn=Draw The aerial is a background tiled layer added first. Then the WMS Service is added (its the "2011" layer controlled by the slider at the bottom. the other items on the slider are tiled layers). Then the dynamic layer is added "aerial grid". Finally i turned the draw tool on, you can draw any graphic and it will draw under the WMS layer. Just to rule out any third part issue, this is a 10sp4 WMS layer with data directly from SDE. ESRI products only. The WMS layer is actually in a DIV after the graphics layer. No divs have z-indexs, so it draws on top of everything. config for WMS <mapservice label="2011 Aerials" type="wms" catalog="0" visible="true" alpha="1" icon="assets/images/icons/i_shuttle.png">http://www.mymanatee.org/arcgis/services/base-map/aerials-2011-wms/MapServer/WMSServer?request=GetCapabilities</mapservice>
code to create WMS layer if (mapServiceInfo.type === "wms") {
var layerInfo = new esri.layers.WMSLayerInfo({name:mapServiceInfo.layer,title:mapServiceInfo.layer,spatialReference:new esri.SpatialReference({wkid:102100})});
var resourceInfo = {
extent: new esri.geometry.Extent({"xmin":-9214584.290114,"ymin":3145848.430227,"xmax":-9133734.228469,"ymax":3208214.597832,"spatialReference":{"wkid": 102100}}),
layerInfos: [layerInfo],
version:"1.3.0"
};
layer = new esri.layers.WMSLayer(mapServiceInfo.url, {
resourceInfo: resourceInfo,
id: mapServiceInfo.label,
transparent: parseFloat(mapServiceInfo.alpha),
visible: mapServiceInfo.visible,
visibleLayers: [mapServiceInfo.catalog],
type: "wms"
});
... View more
05-22-2012
04:21 AM
|
0
|
0
|
2085
|
|
POST
|
That circumvents the purpose of using the Identity Manager. Is that what you're doing in your app? Yes and no. WE use the identity manager, but there are two cases where we cannot. First is a custom TOC that i make direct calls to the legend thumbnail for each layer. Second is for a custom print servlet that i have to pass each individual tile/dynamic image path to. For each of these I extract the token and append it so i can make an independent in a different session. However this is not related to the error. I extracted that URL from firebug just to give you a path to work with. The error we are seeing is in the default legend widget using the identity manager.
... View more
05-21-2012
04:14 PM
|
0
|
0
|
2600
|
|
POST
|
That doesn't seem right. Are you using the WMSLayer class? Graphics and Feature Layers should always draw on top of dynamic (including WMS) and tiled services. I opened a help ticket. I tried 2.5 through 2.8 , and with both an ESRI ArcGIS server service accessed via WMS and a Lizardtech WMS service. All draw on top of all dynamic layers and on top of the graphics layer, Very very odd. When i alert the layerIds, the WMS service is index 1 of 8. so it should be on top of my background layer 0, but under everything else.
... View more
05-21-2012
04:11 PM
|
0
|
0
|
2085
|
|
POST
|
Thanks Jeff. That URL redirects to what looks like a resource on your local network and 404's for me. Here's the redirect URL I'm seeing: https://mcg-ap-arcsvr02.mcgad.local:8343/arcgis/rest/login?redirect=https%3A%2F%2Fwww.mymanatee.org%2Farcgis%2Frest%2Fservices%2Futilities-infrastructure%2Firrigation%2FMapServer%2F That is an annoying side effect of our WebAppFirewall. You should be able to consume the resource in a web app. https://www.mymanatee.org/arcgis/rest/services/utilities-infrastructure/irrigation/MapServer/?token=UbUqrFQqf4LxwkwbMzefuTVv47Hfu_3vVxXBP5iykzI. not sure how long that token is good for.
... View more
05-21-2012
11:38 AM
|
0
|
0
|
2556
|
|
POST
|
I agree. These forums are a wonderful resource and we have a great active javascript community.
... View more
05-21-2012
07:32 AM
|
0
|
0
|
650
|
|
POST
|
Derek, I have this all intergrated now, but does it make sense that no matter the layer order, my WMS service always draws on top? Even draws on top of my graphics and dynamic services. In fact, I can draw a polygon graphic underneath it???!??!?! Thanks for your help
... View more
05-21-2012
07:21 AM
|
0
|
0
|
2085
|
|
POST
|
Let me see what I can do...might take a bit of searching to find a Java instance configured with SSL and appropriate services. https://www.mymanatee.org/arcgis/rest/services/utilities-infrastructure/irrigation/MapServer/ u: esri p: esri Secure service with https required. Running on Arcgis Server 10ps4 for JAVA on windows. hope that helps.
... View more
05-21-2012
04:55 AM
|
0
|
0
|
2556
|
|
POST
|
As I said, we have spent about a year extensively modifying the original Sample Viewer. It runs completely internally, as well as to the public, all from one server. http://www.mymantee.org/gisapps/mapviewer/
... View more
05-21-2012
04:46 AM
|
0
|
0
|
2503
|
|
POST
|
it will be shortly. I got it had to use version 1.1.1 as version 1.3 uses "CRS" instead on "SRS" in the URL, and had to fake a 102100 coordinate system for my WMS service.
... View more
05-18-2012
07:53 AM
|
0
|
0
|
2085
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|