|
POST
|
It works for a split second when I add: var mapDeferred = new esriUtils.createMap('ec7080edfb7c4197989dee3c6207264c', 'map1', {
mapOptions:{
basemap:"streets"
}
}); However, the 'streets' basemap gets covered near instantly by another layer. From my point of view, it looks like a specific layer in your webmap is completely covering the basemap.
... View more
07-11-2013
09:26 AM
|
0
|
0
|
2840
|
|
POST
|
Hi Peter, I tried to recreate your issue and cannot. Can you make a jsfiddle with your code that shows the issue? http://jsfiddle.net/
... View more
07-03-2013
01:45 PM
|
0
|
0
|
2146
|
|
POST
|
Have you tried using the map events listed below? https://developers.arcgis.com/en/javascript/jsapi/map.html#onclick https://developers.arcgis.com/en/javascript/jsapi/map.html#onmousedrag Let me know if this helps! *edit Additional links in case you use AMD-style DOJO: https://developers.arcgis.com/en/javascript/jsapi/map-amd.html#onclick https://developers.arcgis.com/en/javascript/jsapi/map-amd.html#onmousedrag
... View more
07-01-2013
03:16 PM
|
0
|
0
|
616
|
|
POST
|
Hello! You should be able to use HTML-based syntax inside an InfoWindow using InfoTemplate and the setContent() method. Can you post a code sample or recreate both issues using http://jsfiddle.net/ Thanks and good luck!
... View more
07-01-2013
03:10 PM
|
0
|
0
|
824
|
|
POST
|
If you haven't looked at the tutorials and samples yet, give it a shot. https://developers.arcgis.com/en/javascript/jstutorials/ As far as displaying a point on a map using location information: this is the right place! You can map an object based on address or geographic coordinates (lat/long, in your case). Example: If you have the latitude and longitude of a location, you could create a point object and display this point on a map using a geocoder. Examples are here: https://developers.arcgis.com/en/javascript/jssamples/#geocoding However, I'm not sure about triangulation. You might need someone else to help you with that.
... View more
07-01-2013
02:58 PM
|
0
|
0
|
376
|
|
POST
|
Can you post some code snippets? Need more information to accurately assess the problem. *edit I took a minute to do a search and saw a lot of posts that suggest forcing IE8 into compatibility mode with the following line. <meta http-equiv="X-UA-Compatible" content="IE=7" /> Apparently this fixes some long standing issues but I don't know if it helps you at all.
... View more
06-28-2013
09:45 AM
|
0
|
0
|
966
|
|
POST
|
No problem Peter. Can you post the function that initializes and parses the document template? Also, post the BorderContainer that wraps your main ContentPane(s). You could always try to replicate the issue in a http://jsfiddle.net/ and paste that link.
... View more
06-26-2013
07:41 AM
|
0
|
0
|
1858
|
|
POST
|
Thank you for the update! Take a look at this: http://strickspage.com/extending-dijit-dialog-with-a-templated-widget-containing-widgets/ Your error might have to do with parseOnLoad (or rather, when the parsing is done). If this post does not help, I would need to see more code; I don't see the source of your error in the code you've provided.
... View more
06-25-2013
03:11 PM
|
0
|
0
|
1858
|
|
POST
|
Can you provide more code for context? I will try to help.
... View more
06-25-2013
02:23 PM
|
0
|
0
|
1858
|
|
POST
|
Hi Oren! I wasn't using the most up-to-date version of IE10 and have since updated (thank you for the unintentional reminder!). I just had a chance to look at the jsfiddle you posted. Try changing onMouseMove to onMouseOver (for IE10 only) on the following line: [HTML] //old : dojo.connect(map1, 'onMouseMove', drawCoordinates); dojo.connect(map1, 'onMouseOver', drawCoordinates); [/HTML] It seems to work in IE10 (Standards) but the span updates much more slowly than it does in the other browsers. This feels like a temporary fix but may help until a permanent solution is found. I noticed you are using the older version of Dojo; have you tried using the newer AMD oriented style from Dojo 1.7+? This may fix the issue but I cannot be sure. http://dojotoolkit.org/reference-guide/1.9/dojo/mouse.html
... View more
06-17-2013
01:23 PM
|
0
|
0
|
2463
|
|
POST
|
Hi Oren, Hoping I can help. 1) I just looked and it seems the coordinates work in both IE10 and IE9 (screenshot of IE10 attached). 2) The "Source:" text seems to be located within the following div containers. [HTML]<div class="esriControlsBR"> <span class="esriAttribution" style="width: 34px; cursor: pointer;"> <span class="esriAttributionList"> <span class="esriAttributionItem" style="display: inline;">Source: Esri, DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community<span class="esriAttributionDelim"> | </span></span> <span class="esriAttributionLastItem" style="display: inline;">DeLorme, METI/NASA, NAVTEQ, USGS, Esri<span class="esriAttributionDelim"> | </span></span> </span> </span> </div>[/HTML] Unless there is an official way to remove that text, you might be able to hide one of the above divs when a user clicks your button. I'm not sure if this is helpful but here is a link to Attributions in the JSAPI. https://developers.arcgis.com/en/javascript/jsapi/attribution.html [ATTACH=CONFIG]25309[/ATTACH]
... View more
06-17-2013
08:32 AM
|
0
|
0
|
2463
|
|
POST
|
Jon, Thanks for the response. However, those aren't the issue. I have already selected the feature, I'm not changing the feature (not clicking another feature), nor clearing features, simply clicking the same feature after the infoWindow has already popped up. At that point the infoWindow goes from populated data to blank. Sorry Luke! Looks like I misunderstood. I was under the assumption that clicking an already-selected feature causes the feature to become unselected (meaning your infowindow would go blank since there's no feature selected). This is why I used onSelectionChange instead of onSelection.
... View more
06-14-2013
01:21 PM
|
0
|
0
|
1164
|
|
POST
|
I do something similar in one of my projects. However, I end up assigning events to "onSelectionChange", "onSetFeatures" and "onClearFeatures" and populate the infoWindow accordingly, depending on the situation. This sample may or may not help (even if its not exactly what you are doing): http://developers.arcgis.com/en/javascript/jssamples/popup_sidepanel.html
... View more
06-14-2013
10:29 AM
|
0
|
0
|
1164
|
|
POST
|
1) I will look into assigning a value to currentFeature after lunch. I just need to examine your code again. 2) To be honest, I am not quite sure why it works on line 54 (and I don't believe it should). This is the code my firebug extension is seeing after the page renders. <a class="highslide" style="float:left" onclick="return hs.expand(this);" width="420" url"}"="" href="http://147.126.65.155/Images/campus/${">
<img id="sysPic" width="220px" url"}"="" src="http://147.126.65.155/Images/campus/mbeane_walk.jpg">
<span class="highslide-caption">Enlarge image</span>
</a> I see that ${"url"} is replaced by mbeane_walk.jpg in the img tag but not the link tag. I have not seen that syntax used directly in an HTML code block before (unless wrapped in PHP etc). Also, it doesn't seem to work on all browsers,. I am assuming it has to do with jQuery or your web-server configuration (you are also using both jquery 1.6.4 and 1.9.1). Hopefully someone else can join this discussion and provide insight on this particular mater. It is beyond my understanding and I too would like to know the answer!
... View more
06-11-2013
12:25 PM
|
0
|
0
|
1304
|
|
POST
|
Thank you for clarifying! I took a look at your code and there are a number of ways to remedy this problem. First of all, your code is fine in theory. The buttons should trigger a function when clicked and your map should zoom accordingly. onClick='executeZoomToNext("${nextpt}");' However, the problem is that the value sent by your onClick is not an integer, but literally "${nextpt}" as a string. Because the variable you are trying to access is a javascript variable, the HTML treats this as a simple string. You cannot directly copy/paste javascript variables into an HTML code block. Now, there are two ways to handle this. 1) Change onClick to executeZoomToPrev(); and executeZoomToNext(); respectively and within these specific functions, get the id of the current feature using javascript. This ensures minimal changes to your current code (and is what I would do).
function executeZoomToNext(){
//var currentFeature = GET CURRENT FEATURE CODE
queryTask2 = new esri.tasks.QueryTask(mapservice+"/lurec_systems/MapServer/0");
query2 = new esri.tasks.Query();
query2.returnGeometry = true;
query2.outSpatialReference = map.spatialReference;
query2.outFields = ["objectid", "id", "name", "descrip", "system", "zoomlevel", "nextpt", "url"];
query2.where = "id = "+currentFeature+"";
queryTask2.execute(query2, showResult2);
} 2) Update the value of both onClicks dynamically each time a new feature is selected (using javascript). This way is more slightly more complicated but I have seen it in practice. (Also, this way is more work overall compared to way 1). Hopefully this makes some sense. I can try to explain in a different way if this isn't enough information to lead you in the right direction. Good luck!
... View more
06-11-2013
10:58 AM
|
0
|
0
|
1304
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-26-2014 09:56 AM | |
| 1 | 09-18-2014 11:50 AM | |
| 1 | 09-19-2014 11:28 AM | |
| 1 | 07-09-2014 01:43 PM | |
| 1 | 07-09-2014 02:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-14-2024
05:31 PM
|