POST
|
Awesome. Like Derek said in that post, this did the trick: document.dojoClick = false; after dojox/mobile modules are loaded. Thanks for the quick response!
... View more
10-22-2013
12:55 PM
|
0
|
0
|
409
|
POST
|
Yes, I am experiencing the same thing with the onClick event in 3.7. It works great in a browser, or a browser emulating a mobile device. Using an actual phone yields different results. In a browser, the onClick event in the code below yields one console log and one alert per click in a browser. On a phone you get three alerts. The first alert always returns "NaN, NaN" for the mapPoint and "undefined, undefined" for the evt.x and y. The subsequent two alerts on the phone give the correct mapPoint and evt coordinates. So each onClick fires three events, the first of which doesn't return coordinates. Here is how to see this issue on an iPhone:
<script src="http://js.arcgis.com/3.7/"></script>
<script>
var map;
require(["esri/map","dojox/mobile","dojo/domReady!"],
function(Map, dojoxMobile){
map = new Map("map", {basemap: "topo", center: [-59.48, 44.066], zoom: 4});
map.on("click",function(evt){
console.log("mapPoint: " + evt.mapPoint.x + ", " + evt.mapPoint.y);
console.log("evt: " + evt.x + ", " + evt.y);
alert("mapPoint: " + evt.mapPoint.x + ", " + evt.mapPoint.y + "\nevt: " + evt.y + ", " + evt.x);
});
});
</script>
So why the three events?
... View more
10-22-2013
12:07 PM
|
0
|
0
|
409
|
POST
|
Hi David, it's been awhile since this post but if it still helps, try changing your switch tags from from <div> to <input>.
... View more
09-20-2013
09:01 AM
|
0
|
0
|
209
|
POST
|
Hi Robert, Another quick question regarding the links wrapped in CDATA - from the example earlier: Code:
<links>
<link alias="Tax Maps">
<![CDATA[http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin={PIN}]]>
<icon><![CDATA[assets/images/map.png]]></icon>
</link>
</links> In your previous versions, the prefix and suffix were found under the <link> tag. The result if the {PIN} field was null: no link would even be shown for the user to click. Now that the prefix/suffix are in the CDATA section, just the prefix/suffix will return as a hyperlink if the field is null or blank. So what happens in the above example, if the {PIN} field were null, is that the link would still be shown and hyperlink to just the prefix: "http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin=" and return a PIN not found result since no PIN was submitted. Is there any way to get this to behave like links in previous versions, where no hyperlink is presented in the results and popup if the field is null/blank? Thanks! -rob.
... View more
08-29-2012
07:59 AM
|
0
|
0
|
541
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|