File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
components/map-right-click Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default {
3030 } ,
3131 computed : {
3232 canAddStop ( ) {
33- return this . $store . getters . mode === constants . modes . directions && this . mapViewData . hasRoutes ( )
33+ return this . $store . getters . mode === constants . modes . directions && this . mapViewData . hasRoutes ( ) && this . mapViewData . places . length < appConfig . maxPlaceInputs
3434 } ,
3535 show ( ) {
3636 return this . showRightClickPopup
Original file line number Diff line number Diff line change @@ -448,13 +448,6 @@ export default {
448448 return markerData
449449 }
450450 } ,
451- /**
452- * Determines if a route stop can be added
453- */
454- canAddStop ( ) {
455- const can = ! Array . isArray ( this . markers ) || this . markers . length < appConfig . maxPlaceInputs
456- return can
457- } ,
458451 /**
459452 * Return the current map polyline measures options
460453 * @returns {Object } options
@@ -1367,7 +1360,7 @@ export default {
13671360 if ( ! insidePolygon ) {
13681361 const mapEl = this . $refs . map . $el
13691362 GeoUtils . normalizeCoordinates ( event . latlng )
1370- const data = { event, mapEl, canAddStop : this . canAddStop }
1363+ const data = { event, mapEl }
13711364 // Event to be caught by the MapRightClick.vue component
13721365 EventBus . $emit ( 'mapRightClicked' , data )
13731366 }
You can’t perform that action at this time.
0 commit comments