|
POST
|
Perfect. Using a tiling scheme works as well. If you found my post helpful, please mark it as helpful or as answered.
... View more
07-18-2014
12:24 PM
|
0
|
5
|
2296
|
|
POST
|
Right, since you are choosing ArcGIS Online format, you can only go up to 20 (0-19). Under tiling scheme, you need to choose custom, and then add your two levels of detail
... View more
07-18-2014
10:59 AM
|
3
|
2
|
3665
|
|
POST
|
ahh ok so it is only on the layer you set as a basemap when you define your map object? did you post your code where you do new Map
... View more
07-18-2014
10:41 AM
|
0
|
1
|
935
|
|
POST
|
The zoom level in javascript is set by the tile levels of the first map loaded. Once you hit the max level, you cannot zoom in further. You have two options. Publish/use your own basemap with additional levels, and ensure that basemap is loaded FIRST or Create you map object with a custom set of LODs (levels of detail) specifying more levels. We do the later, since our basemap as 0-20 levels (we will be adding level 21 and 22 soon, 20 is 1:564, 21 1:282, 22 1:141) and load the custom LODs to override the zoom scales.
this.map = new Map("map",
{ infoWindow: popup,
basemap: "streets",
autoResize: true,
sliderStyle: style,
logo: false,
showAttribution: false,
lods: lods,
minZoom:10 });
with lods
var lods =
[
{
"level": 0,
"resolution": 156543.03392800014,
"scale": 5.91657527591555E8
},
{
"level": 1,
"resolution": 78271.51696399994,
"scale": 2.95828763795777E8
},
{
"level": 2,
"resolution": 39135.75848200009,
"scale": 1.47914381897889E8
},
{
"level": 3,
"resolution": 19567.87924099992,
"scale": 7.3957190948944E7
},
{
"level": 4,
"resolution": 9783.93962049996,
"scale": 3.6978595474472E7
},
{
"level": 5,
"resolution": 4891.96981024998,
"scale": 1.8489297737236E7
},
{
"level": 6,
"resolution": 2445.98490512499,
"scale": 9244648.868618
},
{
"level": 7,
"resolution": 1222.992452562495,
"scale": 4622324.434309
},
{
"level": 8,
"resolution": 611.4962262813797,
"scale": 2311162.217155
},
{
"level": 9,
"resolution": 305.74811314055756,
"scale": 1155581.108577
},
{
"level": 10,
"resolution": 152.87405657041106,
"scale": 577790.554289
},
{
"level": 11,
"resolution": 76.43702828507324,
"scale": 288895.277144
},
{
"level": 12,
"resolution": 38.21851414253662,
"scale": 144447.638572
},
{
"level": 13,
"resolution": 19.10925707126831,
"scale": 72223.819286
},
{
"level": 14,
"resolution": 9.554628535634155,
"scale": 36111.909643
},
{
"level": 15,
"resolution": 4.77731426794937,
"scale": 18055.954822
},
{
"level": 16,
"resolution": 2.388657133974685,
"scale": 9027.977411
},
{
"level": 17,
"resolution": 1.1943285668550503,
"scale": 4513.988705
},
{
"level": 18,
"resolution": 0.5971642835598172,
"scale": 2256.994353
},
{
"level": 19,
"resolution": 0.29858214164761665,
"scale": 1128.497176
},
{
"level": 20,
"resolution": 0.14929107082380833,
"scale": 564.248588
}
];
... View more
07-18-2014
09:24 AM
|
2
|
1
|
3665
|
|
POST
|
then you can attach an onchange event to the box . In my example registry.byId("printOrientation").onChange=function(){ //do your zoom to feature };
... View more
07-18-2014
06:24 AM
|
0
|
0
|
1427
|
|
POST
|
Knowledge of jquery is never a bad thing, but dont let anyone tell you you have to use it just because.
... View more
07-18-2014
06:21 AM
|
1
|
0
|
3031
|
|
POST
|
does this on work? World_Topo_Map (MapServer) im noticing that the second one is using a tilemap and not tile.. seems like a different format, and if you go straight to the path, the first link returns a tile, the second one does not
... View more
07-17-2014
10:59 AM
|
0
|
1
|
2344
|
|
POST
|
Ok two things, first edit you response. click go advanced editing. Then highlight the code, hit the doubleright arrow (bottom right) and select syntax highlighting, and choose java. Ok second. wow, thats complicated. My concern is the proxyrefered. It looks like you are defining the proxy, and so is ESRI. So both of you are proxying requests. Can you try setting alwaysuseproxy to false?
... View more
07-17-2014
09:54 AM
|
0
|
1
|
2344
|
|
POST
|
Looks like you guys stole my style A quick question. The measure-end event only fires when you click on a location, but the Location updates on mousemove. Is there anyway to fire a location-change event?
... View more
07-17-2014
09:08 AM
|
0
|
5
|
1244
|
|
POST
|
If you get some good requests, it sounds like the pathing to the proxy are set up properly. That leaves two possibilites 1. Internally in the proxy there is an error causing it to be recursively called 2. Something about the resource it self, or the way you defined it, is causing the duplicate issue. Can you show the code in the proxy, and the code where you add the problematic world_topo_map service
... View more
07-17-2014
08:32 AM
|
0
|
3
|
2344
|
|
POST
|
wish i could see more of your code. It really sounds like you have a double reference to the proxy. Especially since hardcoding it makes the hardcoded value show up twice. Are you doing any request modification? can you post appfunctions.js?
... View more
07-17-2014
08:15 AM
|
0
|
0
|
2344
|
|
POST
|
in appfunctions.js, what is the actual line that sets it? it feels like you are pathing incorrecting (especially if hardcoding the path fixes it)
... View more
07-17-2014
07:10 AM
|
0
|
5
|
2344
|
|
POST
|
I will be in the minority on this, but. Learning jquery is a great tool to have in your pocket. When I first started with the javascript API, knowing our systems and development group uses jquery, I started to learn and try to force all things ESRI over to jquery. I spent a few months awhile ago stripping all the jQuery out of my code. I found that I can natively do everything I want, usually better, with DOJO. Plus the library is already loaded and I know it works with the js api because it is tested with it. So preaching aside, if you have to use jquery then absolutely do it. If you are trying to learn a framework just for working with the javascript api, you will be much better served, both in ease of use and in gained understanding of the workings of the api itself, by learning dojo.
... View more
07-17-2014
06:14 AM
|
7
|
2
|
3031
|
|
POST
|
How does this post have 4 correct answers? that doesnt seem right Timothy HalesJim Barry
... View more
07-17-2014
05:59 AM
|
0
|
1
|
3176
|
|
POST
|
Where do you set using the proxy in your application? i.e.
esri.config.defaults.io.proxyUrl = 'proxy.jsp';
... View more
07-16-2014
11:50 AM
|
0
|
1
|
2344
|
| 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
|