We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Thank you for the plugin, Could you help me, how and where to add a custom marker icon.
I can able to add custom icon in js like icon: 'http://maps.google.com/mapfiles/ms/icons/blue.png'
The text was updated successfully, but these errors were encountered:
@eshwarallaka You may try similar to this by extending,
Map component
class GoogleMaps extends \yii2mod\google\maps\markers\GoogleMaps { protected function registerAssets() { $view = $this->getView(); GoogleMapsAsset::register($view); $view->registerJsFile($this->getGoogleMapsApiUrl(), ['position' => \yii\web\View::POS_HEAD]); $options = $this->getClientOptions(); $view->registerJs("yii.googleMapManager.initModule({$options})", $view::POS_END, 'google-api-js'); } }
Asset file
class GoogleMapsAsset extends \yii2mod\google\maps\markers\GoogleMapsAsset { public $sourcePath = '@vendor/../common/components/googlemap'; /** * @var array */ public $js = [ 'markerclusterer_compiled.js', 'googlemap.js', ]; }
Sorry, something went wrong.
No branches or pull requests
Hello,
Thank you for the plugin, Could you help me, how and where to add a custom marker icon.
I can able to add custom icon in js like icon: 'http://maps.google.com/mapfiles/ms/icons/blue.png'
The text was updated successfully, but these errors were encountered: