yii2-leaflet-extension
yii2-leaflet-extension copied to clipboard
Yii 2 Extension library to display interactive maps with Leaflet .
The "bower-asset/leaflet" v1.8.0 is not working with the "2amigos/yii2-leaflet-extension". You have to downgrade to the last working version: bower-asset/leaflet (v1.8.0 => v1.7.1) composer.json: "2amigos/yii2-leaflet-extension" : "~1.0", "bower-asset/leaflet" : "1.7.1",
Hello there, I want to show a non-geographical map on my page, but I couldn't do it. I would be very grateful if you could help me with an example.
this is not an issue, maybe info to who need it.. if you need to use scroll gesture handling like ctrl+scroll to zoom, you can use [this leaflet addon](https://github.com/elmarquis/Leaflet.GestureHandling) -...
Trying to add a polygon to my map below is my code ``` $center = new \dosamigos\leaflet\types\LatLng(['lat' => 37.7900, 'lng' => -122.401]); $polygon = new dosamigos\leaflet\layers\Polygon( [ 'name' => 'poly',...
``` $polygon = new Polygon(['name'=>'poly','map'=>'map']); $polygon->setLatLngs([$poly1, $poly2, $poly3, $poly4]); $polygon->clientEvents = ['click' => "function(e) {alert(1)}"]; but return wrong js without event: map.addLayer(var poly = L.polygon([[50.07300647938297,31.440094543457036],[50.07300647938297,31.438094543457034],[50.074006479382966,31.438094543457034],[50.074006479382966,31.440094543457036]], ```
…rs from ArcGIS directly, without having to create TileLayer, setting UrlTemplate. require to setup bower-asset/esri-leaflet package first.
[Composer\Repository\InvalidRepositoryException] No valid bower.json was found in any branch or tag of https://github.com/Leaflet/Leaflet.git, could not load a pack age from it. how to solution?
On the Yii site extention page https://www.yiiframework.com/extension/yii2-leaflet-library the github link points to https://github.com/2amigos/yii2-leaflet-library which gives a 404
I am trying to add tilelayers combined with the Markercluster plugin. This is working and provided as documentation: ... use dosamigos\leaflet\layers\TileLayer; use dosamigos\leaflet\controls\Layers; ... $center = new LatLng(['lat' => (float)$latitude,...
When I render the widget on a hidden tab, the map will not be rendered correctly. (There is a thread from 2014 here, but that code is not working anymore...)....