mastani / laravel-google-static-map Goto Github PK
View Code? Open in Web Editor NEWLaravel Google Static Map Generator
License: MIT License
Laravel Google Static Map Generator
License: MIT License
It's not possible to install this package on a Laravel v6.0 project, as the Composer dependencies require "illuminate/contracts": "5.*"
and "illuminate/support": "5.*"
.
The package seems works perfectly in Laravel 11. It just needs support in composer.json
.
"require": {
"illuminate/contracts": "5.*|6.*|7.*|8.*|^9.0|^10.0|^11",
"illuminate/support": "5.*|6.*|7.*|8.*|^9.0|^10.0|^11"
},
Thanks for releasing this package!
To support security best practices and exceed certain usage restrictions, the package should allow for generating signed URLs: https://developers.google.com/maps/documentation/maps-static/get-api-key?hl=en_GB#detailed-guides-to-generating-a-digital-signature
Upon recent upgrade to composer stable channel 2, I started to get errors about missing classes;
Class 'mastani\GoogleStaticMap\GoogleStaticMap' not found
Class 'mastani\GoogleStaticMap\Format' not found
When downgraded to composer stable channel 1 (composer self --1
) the errors went away.
Suggestion: update vendor prefix to TitleCase.
Do you want me to open a PR, @mastani ?
When a API Secret is passed to the setter, should it be a string or an array?
laravel-google-static-map/src/GoogleStaticMap.php
Lines 248 to 249 in ebcf3c5
Shouldn't this ☝️ check strlen
rather than count
?
Relates to #1
I would like to be able to draw a polygon or line on the map which is possible with the standard static maps API.
I'm happy to write the method into the class and do a PR if you would accept. Would rather contribute than just fork and forget.
Essentially the consuming dev would feed in a GeoJSON array of lat,long pairs which correspond to the points of the polygon. We could also allow for the insertion using WKT strings like POLYGON.
If you are happy, say the word and i'll PR.
Will it be possible to add support for Laravel 8?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.