Hi,
I started using ArcGIS JavaScript v 4.0. I encountered an issue with mapview. After setting the center point to map view, i cannot pan the map. Once i remove view.center line, no issue.
Projection system is SVY21
Pls refer the attached image
Do you have a code snippet showing how you are setting the center point?
Hi,
Pls find the attached code snippet. Map service is also accessible over internet
If I comment line no 152 (setting the centre point) it will be fine else will be issue in panning
Instruction to use:
Rename the attachment map.zix to map.zip
Rename the html file from *.htmx to *.html
Rename the JavaScript file in js folder from *.jx to *.js
Run the application like http://localhost/xxx/xxx
Regards,
Murali
Hi,
Sorry, forgot to add steps to replicate the issue
Steps to replicate issue.
1. In the text box type bed,tamp….etc (Singapore locations)
2. It will show the suggestions list . Select anyone in the list
3. Now the selected location will be center point(set at line no 152)
4. Pan the map.
You can see the error in browser’s console
Comment line no 152 (Mapviewer.view.center= centerPoint)
No reload the application and repeat steps again
No issue in panning
Regards,
Murali