|
POST
|
Appreciate the links, but they dont help. Mainly because they hardcode everything down the to field values I ended up just appending the links onto the feature as it comes back to the query. Then i loop through and set the links and manually create the dom elements and write them to the links tab. var links = feature.attributes.links;
for (var key in links) {
if (links.hasOwnProperty(key)) {
if(links[key]){
var a = dojo.create('a',{ href: links[key],target:"_blank"}, dojo.byId('resultLinksTab'));
var img = dojo.create('img',{ src:"images/"+key+".png"}, a);
dojo.addClass(img,'resultLink');
}
}
... View more
07-25-2013
10:33 AM
|
0
|
0
|
1562
|
|
POST
|
I am using a popup in a side panel. It is a tabContainer. I have a details tab which I am writing the content to, works great. I would like a LINK panel, which contains a number of hyperlinks for each popup item. How do i attach the hyperlinks to the content? Right now I have a JSON Array of hyperlinks that is generated at the same time as my popup content. psuedo code
//start loop for each feature
//how do i put these in the popup so i can access them later?
var links = [{link1: 'http://...", link2: 'http://....'}]
//popup content
var fieldInfos= [];
dojo.forEach(fieldNames, function(name){
fieldInfos.push({
fieldName: name, visible:true
});
});
// alert(fieldInfos);
var g = new esri.Graphic(f.geometry, sym, attrs);
g.setInfoTemplate (new esri.dijit.PopupTemplate({
title: title,
fieldInfos: fieldInfos
}));
map.graphics.add(g);
features.push(g);
//end loop
this.popup.setFeatures(features);
this.popup.select(0);
... View more
07-24-2013
12:48 PM
|
0
|
4
|
2955
|
|
POST
|
I know this is old, but did you ever find a solution to this? our function queries a variety of services and it is impossible to predefine a template thanks
... View more
07-24-2013
08:05 AM
|
0
|
0
|
4721
|
|
POST
|
When do you call the alert? Using the following code, the alert says 102100. require(["esri/map"], function (Map) {
var map;
map = new Map("map", {
basemap: "hybrid",
autoResize: true,
sliderStyle : "large",
extent: new esri.geometry.Extent({xmin:-9228363.6,ymin:3140074.58,xmax:-9116765.5,ymax:3202141.45,spatialReference:{wkid:102100}})
});
map.on("update-end", function(){
alert(map.spatialReference.wkid);
});
}); remove the basemap:"hybrid" line and it no longer works. That is the problem. I dont want to specify an esri basemap.
... View more
07-16-2013
11:21 AM
|
0
|
0
|
717
|
|
POST
|
map = new esri.Map("map", {
autoResize: true,
sliderStyle : "large",
extent: new esri.geometry.Extent({xmin:-9228363.6,ymin:3140074.58,xmax:-9116765.5,ymax:3202141.45,spatialReference:{wkid:102100}})
}); alert(map.spatialReference.wkid); returns 4326????????? I have tried everyway to set it I can. I have no data or maps in 4326. This is before any layers are even added.
... View more
07-16-2013
09:53 AM
|
0
|
3
|
956
|
|
POST
|
Without seeing code it is difficult, but due to cross site scripting, you need a proxy page. This is definitely the issue if your local services are on a different server from your application.
... View more
05-10-2013
08:05 AM
|
0
|
0
|
553
|
|
POST
|
I have a query that is hitting a secure service. My app is already validated and has a token. I would like to append the token in the query so when i execute the task it works. Bit I cant seeem to If i add it as var q = new esri.tasks.Query(); q.maxAllowableOffset = 0; q.returnGeometry = true; q.token = mytoken; it just gets ignored. any ideas? thanks
... View more
05-08-2013
07:16 AM
|
0
|
2
|
1969
|
|
POST
|
I THINK I FOUND THE DIFFERENCE The non-working computer is in a conference room hooked to a smart board. Touch events on the board (pan, zoom) WORK!!! but mouse navigation does not It looks like if the API detects a touch device it disables mouse events. And chrome is incorrectly being identified as a mobile browser (happens alot). Anyone else?
... View more
04-17-2013
08:11 AM
|
0
|
0
|
2813
|
|
POST
|
Do you have any additional info? I'd really like to be able to reproduce this. in CHROME (V26) www.arcgis.com gallery search for - manatee county parcels choose Manatee County, FL - Parcel Map open in arcgis.com map viewer works from one computer, doesnt work from another both windows 7 64bit, both chrome Version 26.0.1410.64 m Rebooting and (aggressively) clearing cache does not fix non-working browser.
... View more
04-17-2013
08:07 AM
|
0
|
0
|
2813
|
|
POST
|
this happened to us on arcgis.com today. Switching to IE fixed it. Did not clear cache
... View more
04-16-2013
11:50 AM
|
0
|
0
|
2813
|
|
POST
|
Believe it or not, I just found and fixed it. My Draw widget had dojo.require("dijit.form.CheckBox"); Which was no longer used. For some reason, it was causing the error. All I did was comment it our and the login popped up. Very odd.
... View more
04-10-2013
10:44 AM
|
0
|
0
|
1521
|
|
POST
|
Same Error with 3.4 Chrome prompts for login, firefox does not https://www.mymanatee.org/gisapps/mapviewer34/index.jsp?type=utilitiesinfrastructure
... View more
04-10-2013
08:35 AM
|
0
|
0
|
1521
|
| 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
|