GithubHelp home page GithubHelp logo

laravelgooglemaps's People

Contributors

drehimself avatar farhanwazir avatar grimzy avatar wissamdagher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravelgooglemaps's Issues

issues solved please read this

$data_location = "https://maps.google.com/maps/api/geocode/json?address=".urlencode(utf8_encode($address))."&key=".config('googlemaps.key')."&sensor=".$this->sensor;
if ($this->region != "" && strlen($this->region) == 2) {
$data_location .= "&region=".$this->region;
}
D:\xampp\htdocs\googlemap\vendor\farhanwazir\laravelgooglemaps\src\FarhanWazir\GoogleMaps\GMaps.php
if map not working first get google api key is vailed and enable map service and for direction enable direction services and this package working with price plain of map and after these things map not still working then please go to D:\xampp\htdocs\googlemap\vendor\farhanwazir\laravelgooglemaps\src\FarhanWazir\GoogleMaps\GMaps.php
and replace code
$data_location = "https://maps.google.com/maps/api/geocode/json?address=".urlencode(utf8_encode($address))."&key=".config('googlemaps.key')."&sensor=".$this->sensor;
if ($this->region != "" && strlen($this->region) == 2) {
$data_location .= "&region=".$this->region;
}
if working on server enable file_get_contents and any js changes of google map js related file is
D:\xampp\htdocs\googlemap\vendor\farhanwazir\laravelgooglemaps\src\FarhanWazir\GoogleMaps\GMaps.php

for help
http://biostall.com/demos/google-maps-v3-api-codeigniter-library/

https://www.youtube.com/watch?v=LTJ5t3fXoXU&t=699s

Map Cluster is not working

 $config = [
            'center' => $params['fromLat'] . ',' . $params['fromLon'],
            'zoom' => 12,
            'map_width' => '800px',
            'cluster' => true,
            'clusterGridSize' => 60,
            'clusterMininumClusterSize' => 3
        ];

added cluster on my map but I am having errors when displaying it.

image

Laravel 6 issue

laravel/framework 5.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
Conclusion: remove laravel/framework v6.0.1

Do you plan an update for laravel 6.

marker['onclick'] isn't working

Hi,
How to add a function on marker['onclick'] in my PHP?
something like this..
$marker['onclick'] = function () { redirect('google.com'); };

dynamic drawing

hi there, i want to ask is there any sample that i can refer to create a dynamic drawing polygon and save it to my db for other request?

Geocode Caching

The geocode caching into a Database (MySQL via phpMyAdmin) for Laravel is currently not possible even after resolving the geocode issue that came with change from Google Maps API. Kindly assist

I Can't Install the Package in Laravel 10.

Problem 1
- Root composer.json requires farhanwazir/laravelgooglemaps ^2.3 -> satisfiable by farhanwazir/laravelgooglemaps[2.3, ..., 2.3.9].
- farhanwazir/laravelgooglemaps[2.3, ..., 2.3.9] require laravel/framework 5.* -> found laravel/framework[v5.0.0, ..., v5.8.38] but it conflicts with your root composer.json require (^10.8).

You can also try re-running composer require with an explicit version constraint, e.g. "composer require farhanwazir/laravelgooglemaps:*" to figure out if any version is installable, or "composer require farhanwazir/laravelgooglemaps:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Did all of the above but nothing worked.

how to get the clicked latitude and longitude and pass them to another controller

I have this in my controller which basically will do is to send a pop up telling the latitude and longitude...
public function getMap() { $config['center'] = '9.562389, 44.077011'; $config['zoom'] = '14'; $config['map_height'] = '500px'; $config['scrollwheel'] = false; $config['onclick'] = 'alert(\'You just clicked at: \' + event.latLng.lat() + \', \' + event.latLng.lng());'; $gmaps = new GMaps($config); $gmaps->initialize($config); $map = $gmaps->create_map(); return view('admin.mapTest')->with('map', $map); }

so my question is... how to send the latitude and longitude to another controller?
note: forexample i wann create save that clicked map

VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.

Hi.
how are you? I need your help.
I want to use this package in my project.
So I tried to install this package.
composer require farhanwazir/laravelgooglemaps
But I see this error.

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.
Please help me.

- laravel/framework 5.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

Hi when i try to install in PHP 7.2.19 i found this

  • laravel/framework 5.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

To enable extensions, verify that they are enabled in your .ini files:
- C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

i read about this :

This feature was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0.

Alternatives to this feature include:

Sodium (available as of PHP 7.2.0)
OpenSSL

Can you do some FIX to this can work with Laravel 6 in php 7.2

Kind Regards

Marker

Is there any documentation how to set Marker by Lat & Long, and also How to make gmaps marker set by click? Thanks

Class 'FarhanWazir\GoogleMaps\GmapsServiceProvider' not found

I am getting such type of error everything is all right i have done all the things in the documentation.
It works in windows local Xaamp server but dont work in linux server in production ... please can you fix it...
Class 'FarhanWazir\GoogleMaps\GmapsServiceProvider' not found

in Application.php line 612
at Application->resolveProvider('FarhanWazir\GoogleMaps\GmapsServiceProvider')in Application.php line 570
at Application->register('FarhanWazir\GoogleMaps\GmapsServiceProvider')in ProviderRepository.php line 75
at ProviderRepository->load(array('Illuminate\Auth\AuthServiceProvider', 'Illuminate\Broadcasting\BroadcastServiceProvider', 'Illuminate\Bus\BusServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Foundation\Providers\FoundationServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Notifications\NotificationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Pipeline\PipelineServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Laravel\Tinker\TinkerServiceProvider', 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider', 'App\Providers\AppServiceProvider', 'App\Providers\AuthServiceProvider', 'App\Providers\EventServiceProvider', 'App\Providers\RouteServiceProvider', 'Intervention\Image\ImageServiceProvider', 'FarhanWazir\GoogleMaps\GmapsServiceProvider'))

Add fullScreen control option support

public $enableFullScreenControl = false;                    // If set to TRUE will enable full screen control

//Added for full screen control
if ($this->enableFullScreenControl) {
$this->output_js_contents .= ',
fullscreenControl: true';
}

issu with the rout

i faced a probleme, "Non-static method FarhanWazir\GoogleMaps\GMaps::initialize() should not be called statically, assuming $this from incompatible context".
can u take a look at it, im using laravel 5.4 with php 5*

Error

Hello,
i have this problem:

Google Maps JavaScript API error: ApiProjectMapError

Can you help me?

Your requirements could not be resolved to an installable set of packages.

j'ai un problème : Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for farhanwazir/laravelgooglemaps ^2.3 ->
satisfiable by farhanwazir/laravelgooglemaps[2.3, 2.3.0.x-dev, 2.3.1, 2.3.2, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.5.x-dev].

Force HTTPS

I'm trying to for HTTPS using the config param to true.

Is there another way of forcing the HTTPS?

Does this work with Laravel 6.x?

Dears,

I'm doing an app that needs Google Places API. I'm using Laravel 6.x. Does this work good with this version?

I'm needing this informations:

  • Place ID
  • Latitude
  • Longitude
  • Address (street, number, city, state, country)
  • Place photos

Error in namespace GMapsFacade.php

Class 'FarhanWazir\GoogleMaps\Facades\GMapsFacade' not found

namespace FarhanWazir\GoogleMaps\Facade;

I solved change in ( GMapsFacade.php ) to :

namespace FarhanWazir\GoogleMaps\Facades;

"Undefined offset: 1"

Hi Farhan Wazir, this package works fine, I love it, thanks a lot.

I have one problem to isMarkerInsideGeofence in laravel, my code is

$polygon = array('25.774,-80.190', '18.466,-66.118', '32.321,-64.757', '25.774,-80.190'); $latlngs = array('-12.043333,-77.028333', '-12.043333,-77.028333'); $mapStatus = GMaps::isMarkerInsideGeofence($polygon, $latlngs);

and Laravel response is
private function pointStringToCoordinates($pointString) { if(strpos($pointString, ", ") !== false) $coordinates = explode(", ", $pointString); elseif(strpos($pointString, ",") !== false) $coordinates = explode(", ", $pointString); else $coordinates = explode(" ", $pointString); return array("x" => $coordinates[0], "y" => $coordinates[1]); }

"Undefined offset: 1"

Captura de Pantalla 2019-11-09 a la(s) 5 44 15 p  m

Do you have any ideas?

Responsive Maps

How can I make this maps responsive (Do I have to do it manually or I can use any other responsive maps templates) and how can I get current location of the user.

How get lan, and log of the device, WEB BROWSER or MOBILE

Hello, before find this i doe using js:

`<script>
var x = document.getElementById("demo");

function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.watchPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";}
}

function showPosition(position) {
x.innerHTML="Latitude: " + position.coords.latitude +
"
Longitude: " + position.coords.longitude;
}
</script>`

How i can doe with this componet.

My app is basic a project school...
I store the cordinates of any Hospital register in the DB. so i need just to get the actual lan, and long of the device, to doe a direction.

$config['styles'] returns error

I defined styles in my Controller in this way, following Google Maps documentation:

$estils = '{
    "featureType": "poi.business",
    "stylers": {"visibility": "off"}
}';
$config['styles'] = json_decode($estils, true);

But it returns an error: "Illegal string offset 'definition'".

uvnyb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.