This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

black.trystan927516
black.trystan927516

Hello guys. First, let me begin by pointing out that I am just coming back to Laravel, and I am fairly new to October. I created a real estate agency app that allows the realtor to pinpoint the exact position of the property on a map. The app allows a user to drag an existing marker to the geographical location where the property is, after which the latitude and longitude fields are populated with the coordinates (using JS) and stored in the DB. My problem is that when I need to update the Property, the marker is still located in the default position, which is to say that it does not use the coordinates stored in the database. I need some help with how to render a different partial for the create and update view in the backend. In my view, this would allow me to specify a different set of coordinates for the marker in the update view (pull them from the database). The approach I just specified is the best I could come up with. If there is a better way to achieve it in October, I am open to suggestions. Thank you.

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.