Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple polylines on the same map fail #283

Open
r-s-v-p opened this issue Jun 20, 2018 · 1 comment
Open

Multiple polylines on the same map fail #283

r-s-v-p opened this issue Jun 20, 2018 · 1 comment

Comments

@r-s-v-p
Copy link

r-s-v-p commented Jun 20, 2018

Hi. I'm currently on Laravel 5.4 and need your urgent advise, 'cause all my effords to make a $map->getOverlayManager()->addPolyline($polyline); or $map->getOverlayManager()->addPolylines([$polyline1, $polyline2]); is ended with light-grey screen in place of map. Currently I was able to display only 1 polyline.

@r-s-v-p
Copy link
Author

r-s-v-p commented Jun 20, 2018

a little bit of what i've tried just for a test:

$coords[] = new Coordinate(50.45, 30.623333);
$coords[] = new Coordinate(50.45, 30.723333);
$coords[] = new Coordinate(50.45, 30.823333);

$polyline1 = new Polyline($coords, [new IconSequence(new Symbol(SymbolPath::CIRCLE))], ['fillOpacity' => 0.5]);

$map->getOverlayManager()->addPolyline($polyline1);

unset($coords);

$coords[] = new Coordinate(50.55, 30.523333);
$coords[] = new Coordinate(50.65, 30.523333);
$coords[] = new Coordinate(50.75, 30.523333);
$coords[] = new Coordinate(50.75, 30.623333);
$coords[] = new Coordinate(50.75, 30.723333);

$polyline2 = new Polyline($coords, [new IconSequence(new Symbol(SymbolPath::CIRCLE))], ['fillOpacity' => 0.5]);

// AND
$map->getOverlayManager()->addPolyline($polyline1);
$map->getOverlayManager()->addPolyline($polyline2);
// OR
$map->getOverlayManager()->addPolylines([$polyline1, $polyline2]);

// Both of variants resulted in grey screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant