laravel-maps icon indicating copy to clipboard operation
laravel-maps copied to clipboard

info windows does not work

Open isurutmv opened this issue 7 years ago • 1 comments

` public function distric($id) { $districs = district::all(); $distric = district::find($id); $config = array(); $config['center'] = 'auto';

  $config['draggableCursor'] = 'default';
$config['onboundschanged'] = 'if (!centreGot) {
        var mapCentre = map.getCenter();
        marker_0.setOptions({
            position: new google.maps.LatLng(mapCentre.lat(), mapCentre.lng())
        });
    }
    centreGot = true;';

app('map')->initialize($config);

// set up the marker ready for positioning
// once we know the users location
$marker = array();
app('map')->add_marker($marker);

foreach($distric->area_list as $area_list) {

foreach($area_list->directory as $directory) { foreach($directory->dir_category_sub_set as $dir_category_sub_set) { if($dir_category_sub_set->sub_category_id == '557057') {

$marker = array();
$marker['position'] = $directory->site_map; 
 $marker['infowindow_content'] = '1 - Hello World!';

app('map')->add_marker($marker); } } } }

$map = app('map')->create_map();

   return view('distric',compact('districs','distric','map'));
}

this is my controller in my map info window does not work how can I fix it?`

isurutmv avatar Mar 29 '18 06:03 isurutmv

Hi @isurutmv I believe I was using infowindows just last night. Let me get back to you on this, but it might take a week or so. Thanks for reporting this. :)

mikebronner avatar Mar 29 '18 16:03 mikebronner