POST
|
Thank you once again zj_zou for providing information.
... View more
08-29-2013
10:38 AM
|
0
|
0
|
517
|
POST
|
Yeah now the point is very much clear with respect to Tile map service layer. Can we use the same street map service URL with dynamic service layers and try to accomplish what I was asking for?
... View more
08-29-2013
10:25 AM
|
0
|
0
|
517
|
POST
|
Thanks zj_zou for you reply. Is their any alternative way achieving this functionality. Like enabling and disabling layers on the street map?
... View more
08-29-2013
10:01 AM
|
0
|
0
|
517
|
POST
|
Hi zj_zou, Thanks for you reply. But the look and feel and amount information provided in the street map related to streets of various places around world in different zoom levels is not provided in Topographic and Light Gray Canvas maps. Is their any property that can be set to disable the Highway labels on the street map?
... View more
08-29-2013
09:33 AM
|
0
|
0
|
517
|
POST
|
Hi, I have an requirement in my application where I need to display the streets in the world map but not the Icons with numbering(285, 575, 27, 411) on them. I'm currently using 3.4 version of ArcGIS JS. Please see the attached Screen shot for more details. The Icons with the numbering on the map are highlighted with red rectangle borders. Thanks in advance.
... View more
08-28-2013
09:17 PM
|
0
|
8
|
730
|
POST
|
Hi I have simple map. I'm adding a layer of type 'ArcGISTiledMapServiceLayer' and displaying 'https://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer' map. No when I pan the map to Left or Right side a new map starts to appear on the screen as if they are endless of maps on the screen which come up as I keep on pan the map to Right or Left sides. I don't want my map to display another map on the screen. Please refer to the Screenshot of what I mean. In the screen shot you can see that when I pan right bringing Australia in to the middle of my screen I see SouthAmercica slowly coming in to the screen from right hand side of the map. I want this behaviour to be stopped. Is their any way to stop this behaviour of the map? Update: Currently I'm using 3.4 version of Js API. When I user earlier versions of the Js API like 2.8 I get the functionality what I want i.e., new map does not creeps out from other side of the map when user panns the map to one side of the map. Thanks in advance.
... View more
05-31-2013
01:20 AM
|
0
|
1
|
842
|
POST
|
Hi All, I'm working on application where I'm displaying ESRI map along with some graphics added on to the map. I'm using script files from the arcgisonline.com site. Now my requirement is I do not want to point to arcgis server any more. So I want to the Js file to be referred locally. So can any one tell me what are the files that I need to download and deploy them in my webserver to make ESRI API work properly. Note: I need to all the files which it takes to render the map and I'm using method to convert x and y values in to Latitude and Longitude and then Latitude and Longitude to 'X' and 'Y' values based on the requirement. Thanks in advance
... View more
05-22-2013
01:58 AM
|
0
|
1
|
564
|
POST
|
Hi All, I'm adding a Raphael area on top of ESRI map surface area to render some graphics I needed. When I instantiate the Raphael instance with equal width and height as that of map, Events are not triggered on the map surface. I mean when I click on the empty area on the Raphael surface I want the click event to be invoked on the map. For doing that I added a click event on the Raphael Instance Canvas and from the event listener dispatching the click event on the map(Events on the map registered using 'dojo.on()' so that they can be dispatched using 'on.emit()' method). But by doing so I could invoke the handler registered for the click event on the map but, When I try to access the properties of the click event for example say 'event.mapPoint' error is being thrown(Access of undefined property) which is a valid error. Because the event handler gets values that are passed from the on.emit()'s third parameter. Is there a way to invoke the listener with the default or original values that are passed when the listener is invoked when an user clicks directly on the map area. Can some body tell me how to do that? I'm using 3.4 version of ArcGIS Js API. Thanks in advance.
... View more
05-14-2013
04:50 AM
|
0
|
0
|
415
|
POST
|
Hi All, I'm using ArcGis api version 2.2 and 3.4 and finding different functionality for the same code. I'm adding few rectangles on the map and some connection to those rectangles. (Rectangles and their connection are drawn using Raphael Js library.) Case 1 -> Using ArcGis api 2.2/2.3 I'm able to drag the rectangles to the new location and also pan,zoom(using Mouse wheel , Slider) the map in IE8 browser. Case 2 -> When I test the same code in Chrome and Firefox browser's the behaviour is different, map is getting zoomed and paned but not the rectangles. Case 3-> By using the 3.4 version of ArgcGis the behaviour is much more different. In Chrome, Firefox, IE browsers the rectangles are being drag able and map is not getting paned or zoomed(Using Mouse wheel). Can some one explain why this different behaviour is being shown by different version of API. Is this a bug or else did I miss some thing to add to my code make this thing work using API 3.4 as it was working in IE using version 2.3. One more thing why it is behaving differently in different browsers using the same version of API 2.3 referring to case 2(Mentioned aboved).
... View more
05-13-2013
03:10 AM
|
0
|
0
|
686
|
POST
|
Hi All, I'm using ArcGis api version 2.2 and 3.4 and finding different functionality for the same code. I'm adding few rectangles on the map and some connection to those rectangles. (Rectangles and their connection are drawn using Raphael Js library.) Case 1 -> Using ArcGis api 2.2/2.3 I'm able to drag the rectangles to the new location and also pan,zoom(using Mouse wheel , Slider) the map in IE8 browser. Case 2 -> When I test the same code in Chrome and Firefox browser's the behaviour is different, map is getting zoomed and paned but not the rectangles. Case 3-> By using the 3.4 version of ArgcGis the behaviour is much more different. In Chrome, Firefox, IE browsers the rectangles are being drag able and map is not getting paned or zoomed(Using Mouse wheel). Can some one explain why this different behaviour is being shown by different version of API. Is this a bug or else did I miss some thing to add to my code make this thing work using API 3.4 as it was working in IE using version 2.3. One more thing why it is behaving differently in different browsers using the same version of API 2.3 referring to case 2(Mentioned aboved).
... View more
05-01-2013
11:57 PM
|
0
|
0
|
582
|
POST
|
JavaScript and Actionscript are quite similar in regards of syntax, especially if you ever did some AS2 development. You can have an element dispatch an event similar to AS3 https://developer.mozilla.org/en-US/docs/DOM/EventTarget.dispatchEvent Doing the same on regular JS objects (non-dom elements) takes some elbow grease, but Dojo in the JS API provides some very nice utilities to accomplish this. http://livedocs.dojotoolkit.org/dojo/Evented If you extend a new class based on dojo/Evented, you get access to some nice event delegation. The Dojo docs seem to be acting up, but an example would be something like var MySumClass = declare(['dojo/Evented'], {
constructor: function(x, y) {
this.x = x;
this.y = y;
}
dispatch: function() {
this.emit('myEvent', {
message: 'This is a test message.',
result: this.x + this.y
});
}
});
var myInstance = new MySumClass(5,10);
myInstance.on('myEvent', function(results) {
console.log('message', results.message);
console.log('results', results.result);
});
myInstance.dispatch(); // console logs print at this point
This also gives you the ability to to use dojo/on with dojo/Evented http://livedocs.dojotoolkit.org/dojo/on This opens up some cool uses where you can listen for events only once, pause them, remove them and so on. Thank you odoe for giving a reply. I think I did not explain my requirement properly. What I was searching is, dispatching a predefined event of the ESRI map from a java script function. Scenario is: I have function in Java script and I need to dispatch a "onZoom" event already connect to the ESRI map when the map is created and invoke the associated handler connected to the zoom event.
... View more
04-23-2013
11:02 PM
|
0
|
0
|
330
|
POST
|
JavaScript and Actionscript are quite similar in regards of syntax, especially if you ever did some AS2 development. You can have an element dispatch an event similar to AS3 https://developer.mozilla.org/en-US/docs/DOM/EventTarget.dispatchEvent Doing the same on regular JS objects (non-dom elements) takes some elbow grease, but Dojo in the JS API provides some very nice utilities to accomplish this. http://livedocs.dojotoolkit.org/dojo/Evented If you extend a new class based on dojo/Evented, you get access to some nice event delegation. The Dojo docs seem to be acting up, but an example would be something like var MySumClass = declare(['dojo/Evented'], {
constructor: function(x, y) {
this.x = x;
this.y = y;
}
dispatch: function() {
this.emit('myEvent', {
message: 'This is a test message.',
result: this.x + this.y
});
}
});
var myInstance = new MySumClass(5,10);
myInstance.on('myEvent', function(results) {
console.log('message', results.message);
console.log('results', results.result);
});
myInstance.dispatch(); // console logs print at this point
This also gives you the ability to to use dojo/on with dojo/Evented http://livedocs.dojotoolkit.org/dojo/on This opens up some cool uses where you can listen for events only once, pause them, remove them and so on. Thanks odoe for giving a quick reply. By following above approach you suggested we are creating a event on the HTML element not on the map. I need to dispatch a zoom event on the map from a java script function. By following the above approach, If we add the event handler to the map using dojo.connect(map,"onClcik",handleClickEvent); "handleClickEvent" handler will not be invoked when we dispatch the event from the simulateClick(). we need to add the functionality what we want to do in the else part of the if condition. On the whole I want to dispatch a "onZoom" event on the map from a java script function and the ESRI api should handle the zoom event as it does normally or by default(zoom's the map at a particular location).
... View more
04-23-2013
10:24 PM
|
0
|
0
|
330
|
POST
|
Hi, Can some body suggest or guide on how to dispatch a event from a java script method some thing like dispatchEvent() in the Adobe Flex framework. Is that possible from the ESRI Java script API or not? One more thing can we create a custom layer which displays some html content on the map. I mean I need to create layer to display a html page on the map.
... View more
04-23-2013
03:54 AM
|
0
|
3
|
986
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|