Closed (fixed)
Project:
Leaflet
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Jun 2015 at 17:16 UTC
Updated:
31 Aug 2015 at 04:24 UTC
Jump to comment: Most recent
Leaflet.js has a vector layer option for rectangles, http://leafletjs.com/reference.html#rectangle. The attached patch adds that functionality to the leaflet module, so when defining features, you can just pass in:
$features[] = array(
'type' => 'rectangle',
'bounds' => array(
'n' => 123,
's' => 123,
'e' => 123,
'w' => 123,
),
'settings' => array(
'color' => '#ee9900',
'clickable' => FALSE,
'fillOpacity' => 0.3,
),
);
| Comment | File | Size | Author |
|---|---|---|---|
| leaflet-rectangle-feature.patch | 948 bytes | jnettik |
Comments
Comment #1
jnettikComment #3
rdeboerThanks @jnettik!
Patch applied.
Available now in Leaflet 7.x-1.x-dev and in 7.x-1.2 and later once released.
Rik