Select to view content in your preferred language

Select / draw / drag a rectangle on a map.

2588
2
Jump to solution
10-17-2013 02:27 AM
RobertVan_Niekerk
New Contributor
Using the Javascript API, what's a good way to implement the following functionality :
A user should be able to select or draw a rectangle (A4 or A3) on the map and drag it. The resulting extent should be available for me (so I can send it to a printing routine).

I'm looking for suggestions on what tools to use (maybe an esri drawing tool or the OverviewMap class https://developers.arcgis.com/en/javascript/jsapi/overviewmap-amd.html?) or other ideas of how to accomlpish this.

Thanks in advance!
0 Kudos
1 Solution

Accepted Solutions
AbhijatC
Deactivated User
Using the Javascript API, what's a good way to implement the following functionality :
A user should be able to select or draw a rectangle (A4 or A3) on the map and drag it. The resulting extent should be available for me (so I can send it to a printing routine).

I'm looking for suggestions on what tools to use (maybe an esri drawing tool or the OverviewMap class https://developers.arcgis.com/en/javascript/jsapi/overviewmap-amd.html?) or other ideas of how to accomlpish this.

Thanks in advance!




Possibly I am not giving a beautiful explanation. But combining these two features may satisfy your requirement.

https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html
https://developers.arcgis.com/en/javascript/jssamples/graphics_contextmenu.html

You may add print task in context menu for the added graphic.


Abhy

View solution in original post

0 Kudos
2 Replies
AbhijatC
Deactivated User
Using the Javascript API, what's a good way to implement the following functionality :
A user should be able to select or draw a rectangle (A4 or A3) on the map and drag it. The resulting extent should be available for me (so I can send it to a printing routine).

I'm looking for suggestions on what tools to use (maybe an esri drawing tool or the OverviewMap class https://developers.arcgis.com/en/javascript/jsapi/overviewmap-amd.html?) or other ideas of how to accomlpish this.

Thanks in advance!




Possibly I am not giving a beautiful explanation. But combining these two features may satisfy your requirement.

https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html
https://developers.arcgis.com/en/javascript/jssamples/graphics_contextmenu.html

You may add print task in context menu for the added graphic.


Abhy
0 Kudos
RobertVan_Niekerk
New Contributor
Possibly I am not giving a beautiful explanation. But combining these two features may satisfy your requirement.

https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html
https://developers.arcgis.com/en/javascript/jssamples/graphics_contextmenu.html

You may add print task in context menu for the added graphic.


Abhy


Thanks, I'll look in to that!
0 Kudos