Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test-project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Junaid Rahman pv
test-project
Commits
8d20d771
Commit
8d20d771
authored
Sep 06, 2016
by
Junaid Rahman pv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created map widget(PlacePicker)
parent
f332e150
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
102 deletions
+0
-102
_form.php
backend/modules/business/views/business/_form.php
+0
-102
No files found.
backend/modules/business/views/business/_form.php
View file @
8d20d771
...
@@ -153,106 +153,4 @@ use common\widgets\PlacePicker;
...
@@ -153,106 +153,4 @@ use common\widgets\PlacePicker;
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
<script>
// $(function () {
// createmap();
// function createmap() {
// var lat = $('#latitude').val(),
// lng = $('#longitude').val(),
// latlng = new google.maps.LatLng(lat, lng),
// image = 'http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png';
// if (!lat && !lng) {
// lat = 10.5113798;
// lng = 76.1532094;
// }
// //zoomControl: true,
// //zoomControlOptions: google.maps.ZoomControlStyle.LARGE,
// var mapOptions = {
// center: new google.maps.LatLng(lat, lng),
// zoom: 13,
// mapTypeId: google.maps.MapTypeId.ROADMAP,
// panControl: true,
// panControlOptions: {
// position: google.maps.ControlPosition.TOP_RIGHT
// },
// zoomControl: true,
// zoomControlOptions: {
// style: google.maps.ZoomControlStyle.LARGE,
// position: google.maps.ControlPosition.TOP_left
// }
// },
// map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions),
// marker = new google.maps.Marker({
// position: latlng,
// map: map,
// draggable: true,
// icon: image
// });
// var input = document.getElementById('searchTextField');
// var autocomplete = new google.maps.places.Autocomplete(input, {
// types: ["geocode"]
// });
// autocomplete.bindTo('bounds', map);
// var infowindow = new google.maps.InfoWindow();
// google.maps.event.addListener(autocomplete, 'place_changed', function (event) {
// infowindow.close();
// var place = autocomplete.getPlace();
// if (place.geometry.viewport) {
// map.fitBounds(place.geometry.viewport);
// } else {
// map.setCenter(place.geometry.location);
// map.setZoom(17);
// }
// moveMarker(place.name, place.geometry.location);
// $('#latitude').val(place.geometry.location.lat());
// $('#longitude').val(place.geometry.location.lng());
// });
// google.maps.event.addListener(map, 'click', function (event) {
// $('#latitude').val(event.latLng.lat());
// $('#longitude').val(event.latLng.lng());
// infowindow.close();
// var geocoder = new google.maps.Geocoder();
// geocoder.geocode({
// "latLng": event.latLng
// }, function (results, status) {
// console.log(results, status);
// if (status == google.maps.GeocoderStatus.OK) {
// console.log(results);
// var lat = results[0].geometry.location.lat(),
// lng = results[0].geometry.location.lng(),
// placeName = results[0].address_components[0].long_name,
// latlng = new google.maps.LatLng(lat, lng);
// moveMarker(placeName, latlng);
// $("#searchTextField").val(results[0].formatted_address);
// }
// });
// });
// google.maps.event.addListener(marker, 'click', function (event) {
// $('#latitude').val(event.latLng.lat());
// $('#longitude').val(event.latLng.lng());
// infowindow.close();
// });
// google.maps.event.addListener(marker, 'dragend', function (event) {
// $('#latitude').val(event.latLng.lat());
// $('#longitude').val(event.latLng.lng());
// infowindow.close();
// });
// $('#latitude').bind('input', function () {
// createmap();
// infowindow.close();
// });
// $('#longitude').bind('input', function () {
// createmap();
// infowindow.close();
// });
// function moveMarker(placeName, latlng) {
// marker.setIcon(image);
// marker.setPosition(latlng);
// infowindow.setContent(placeName);
// //infowindow.open(map, marker);
// }
// }
// });
</script>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment