simplemap
simplemap copied to clipboard
A beautifully simple map field type for Craft CMS.
Is there a way to get the state abbreviation instead of the whole thing? E.g. WI instead of Wisconsin.
Would be nice to add custom tiles to the map like the [leaflet-extras](http://leaflet-extras.github.io/leaflet-providers/preview/index.html). It just uses [L.tileLayer](https://leafletjs.com/reference-1.4.0.html#tilelayer)
After updating Craft CMS from `4.2.5.1` to `4.2.5.2` I now get an `An internal server error occurred.` when browsing the field layout of a page using a Simple Map field....
I just installed the plugin on Craft 4. The installation looked successful: ``` *** installing simplemap > create table {{%maps}} ... done (time: 0.005s) > create unique index idx_xpprhqrpgfgkssibzvlwmqcmptxcpomsrhqz on...
I encountered the `$zoom` type error after upgrading from Craft 3 to 4. Cannot assign null to property ether\simplemap\models\Map::$zoom of type int For a quick fix, you can add `?`...
The function `nomalizeLocation` throws an error if the $location is a string and the method self::latLngFromAddress doesn't find any result and returns null 
Run the BaseLocation $config through the craft Typecast helper to address type errors when working with the map field on the front end. Craft automatically call this for any classes...
Using this field inside [Vizy](https://github.com/verbb/vizy) plugin, I get this error: ```sql SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'ownerId' cannot be null The SQL being executed was: INSERT INTO `maps` (`ownerId`,...
Fix syntax error when using older versions of PHP eg. 7.2
If the map field is passed an array with empty string, rather than floats or null values, BaseLocation.php throws a TypeError: ```Cannot assign string to property ether\simplemap\models\BaseLocation::$lat of type ?float```...