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
I need to open a popup on geoJSON feature by GET. I cant find how is this possible here is my geojson layer setup code:
angular.extend($scope.layers.overlays, { sold: { name: 'Sold Land', type: 'geoJSONShape', data: data, visible: true, layerOptions: { style: { color: '#ff0000', weight: 1, fillOpacity: 0, opacity: 1, }, onEachFeature: function (feature, layer) { layer.on('click', function (e) { $http.get("/ajax.php?landId=" + feature.properties.id).success(function (data, status) { //var landData = var landDiv = document.getElementById('sold-detail-' + feature.properties.id); landDiv.innerHTML = data; return data; }); }); const popup = L.responsivePopup({className: 'buyPopup'}).setContent('<div class="buyPopup" id="sold-detail-' + feature.properties.id + '">Loading...</div>'); layer.bindPopup(popup); }, }, }, selectedLand: {}, }); // Put the cells on an associative array $scope.cells = {}; for (var i = 0; i < data.length; i++) { var cell = data[i]; $scope.cells[cell['properties']['type']] = cell; } });```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need to open a popup on geoJSON feature by GET. I cant find how is this possible
here is my geojson layer setup code:
The text was updated successfully, but these errors were encountered: