I am working with Angular 8 with agm-map. I want to define a limit the map area that user can zoom or pan(drag). without any limitations user can pan even beyond the north and south bounds of the map.
agm-map Angular Google Map Limit Panning and Zooming
988 views Asked by Rashmi Prbhath At
1
There are 1 answers
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in GOOGLE-MAPS
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- MarkerInfoWindow doesn't hold the clicked marker position after list refresh in Compose Map
- The Polyline is not showing in flutter but the directions api is enabled and the current position is not updating
- Unsure what imports to use for Advanced Marker Element
- The problem is that it takes a long time to index web pages in emdadrodbar.ir?
- distance matrix api gives incorrect data
- How to display google maps in dark mode in a .NET MAUI (Android) app
- Couldn't import Google Map API
- google maps api - how to get location information /place_id from shareable links maps.goo.gl
- 'map-advanced-marker' component not found after upgrading @angular/google-maps
- How to Filter bus stops between Start and Stop BUS STOP?
- How to make pressing on marker fill in the textViews
- Google api nearbysearch how to filter data business_status
- Embedded google map throws net::ERR_BLOCKED_BY_CLIENT in chromium(Brave) browser
- Why the code shows only the header and footer of xml file?
Related Questions in ANGULAR8
- update angular 8 to 9
- How to manipulate Array of Object based on condition Angular 8
- <tbody> tag is removed after @swimlane/ngx-charts & @swimlane/ngx-graph version upgrade in Angular 8
- How to make Cancellable api calls in loop in Angular?
- Angular 8.3 - Child not rendered, instead parent is being rendered
- How to submit the formarray in angular in the given format?
- how to build Angular source code in local?
- how to download Angular8 source code and make a fix for it in local
- How should I add values in 2-level array format to a formGroup?
- Error in The target entry-point "ng2-slim-loading-bar" has missing dependencies: rxjs/Observable
- How to display half year based on year selection and disable half year for future years Angular 8
- How to display the year in the dropdown when July month starts
- Angular agDatePickerComponent not working on empty or blank ag grid cell
- How to add new input fields for lists and pass those data to dialog in angular 14
- Angular 8 creating a link between 2 separate variables
Related Questions in AGM-MAP
- Issue with clickable area in an AGM-MAP
- How to work with the clusters on AGM-MAP (Angular 6+)
- agm-marker-cluster does not show markers after zoom
- agm-map & agm-marker drag
- angular agm-map how to let user drop marker
- agm-map control options not working properly
- How to parse kml file to zoom in map
- change the agm-circle color
- How do I draw polygon in agm map based on Input co-ordinates in Angular?
- agm-map changes font of whole page
- Restrict to a specific country in agm-map
- Change agm-map google maps API Key dynamically in Angular 7
- How do I center the agm-map on the marker?
- GoogleMap infowindow close listener
- agm-map angular6 on iphone(safari and chrome) rendering problem after zoom or marker position change
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There were couple of ways previously handle same problem. One way was listening to boundsChange event and if user has pan beyond the limit simply set boundaries back to the area we want. you can find the more details about boudsChange event in here. But there is a very easy way method for this using in built restriction attribute. restriction is a MapRestriction typed attribute. I just assigned the below value to avoid panning beyond the nort and south boundaries of the map,
In same way you can define your restrictions using Longitudes and Latitudes in the map.for more details about restriction attribute visit here.