When I click handlesubmit it sets the latitude and longitude of (mylocation) for initialRegion of mapview.
I want to add a dynamic marker as well.
how do i put a dynamic coordinate inside a marker?
I tried to pass ‘mylocation’ as a initial value but it gives me an error of
(latitude and longitude should have an initial value)
since the initial value of ‘mylocation’ is undefined, it would only have a value if i click ‘handlesubmit’