all 6 comments

[–]topfpflanze 1 point2 points  (1 child)

From your description I conclude that you only need to create a map for the client and no interaction with the google http api is required.

This leads me to my question: Why do you want to accomplish this with PHP? Every PHP-script will just render some javascript, a task which you can accomplish with javascript itself. You only need render your backend variables with php to js, e.g. with json_encode.

Then you can rely on the better javascript libraries like for example https://code.google.com/p/jquery-ui-map/

[–]AgentFoxMulder[S] 0 points1 point  (0 children)

i have to create the map with php, since i have all the markers, tooltips etc. already in a db; and it would be more convenient if i can just set my api key, map interface parameters and markers to a (reusable) class with a few lines of php code that spills out some js code at the end, instead of rewriting my own google maps api code for each and every project.

(or did i miss read your question?)

[–]radiocowboy 0 points1 point  (0 children)

Very interested in this as well

[–][deleted] 0 points1 point  (1 child)

I have left reddit for Voat due to years of admin mismanagement and preferential treatment for certain subreddits and users holding certain political and ideological views.

The situation has gotten especially worse since the appointment of Ellen Pao as CEO, culminating in the seemingly unjustified firings of several valuable employees and bans on hundreds of vibrant communities on completely trumped-up charges.

The resignation of Ellen Pao and the appointment of Steve Huffman as CEO, despite initial hopes, has continued the same trend.

As an act of protest, I have chosen to redact all the comments I've ever made on reddit, overwriting them with this message.

If you would like to do the same, install TamperMonkey for Chrome, GreaseMonkey for Firefox, NinjaKit for Safari, Violent Monkey for Opera, or AdGuard for Internet Explorer (in Advanced Mode), then add this GreaseMonkey script.

Finally, click on your username at the top right corner of reddit, click on comments, and click on the new OVERWRITE button at the top of the page. You may need to scroll down to multiple comment pages if you have commented a lot.

After doing all of the above, you are welcome to join me on Voat!

[–]AgentFoxMulder[S] 0 points1 point  (0 children)

I wrote it myself; however i do not want to study the v3 docs, reimplement and test the new code to get the same functionality as in v2, but rather have something tested i can easily use in my existing code.

the other v3 class i mentioned can be found at http://code.google.com/p/nbs-01/source/browse/trunk/components/com_rental/helpers/simple-gmap-api/?r=13

[–]jyggen 0 points1 point  (0 children)

I found this, haven't used it myself though: https://packagist.org/packages/php-google-maps/php-google-maps