So, I'm mapping some features using Leaflet and want to be able to filter by date of the feature and also, when clicked, the feature will display some properties about it. I have yet to implement the date portion so I'm using a static date to filter through my data set and I'm struggling with getting each point to display information about it when clicked. All other solutions that I've looked through use the portion where I've implemented the filter but I need that.     &lt;html&gt;     &lt;head&gt;         &lt;link rel=&quot;stylesheet&quot; href=&quot;https://unpkg.com/leaflet@1.7.1/dist/leaflet.css&quot;         integrity=&quot;sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==&quot;         crossorigin=&quot;&quot;/&gt;         &lt;script src=&quot;https://unpkg.com/leaflet@1.7.1/dist/leaflet.js&quot;         integrity=&quot;sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==&quot;         crossorigin=&quot;&quot;&gt;&lt;/script&gt;         &lt;div id=&quot;mapid&quot;&gt;              &lt;/div&gt;         &lt;style type=&quot;text/css&quot;&gt;             #mapid {                  height: 650px;                  width: 650px;                 }              &lt;/style&gt;         &lt;script type=&quot;text/javascript&quot;&gt;                  var map = L.map('mapid').setView([33.7490, -84.3880], 13);             L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {             attribution: 'Map data &amp;copy; &lt;a href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors, Imagery © &lt;a href=&quot;https://www.mapbox.com/&quot;&gt;Mapbox&lt;/a&gt;',             maxZoom: 18,             id: 'mapbox/streets-v11',             tileSize: 512,             zoomOffset: -1,             accessToken: 'pk.eyJ1IjoiYnJhbmRvbm5vbGwiLCJhIjoiY2tpdDd6YWk4MDY5dzJ1cGhvaXkzNDB5diJ9.F9L1fxelJr61uJHB7VJ9DA'             }).addTo(map);                  var myPoints = {       &quot;type&quot;: &quot;FeatureCollection&quot;,       &quot;features&quot;: [         {           &quot;type&quot;: &quot;Feature&quot;,           &quot;geometry&quot;: {             &quot;type&quot;: &quot;Point&quot;,             &quot;coordinates&quot;: [               -84.42313,               33.72328             ]           },           &quot;properties&quot;: {             &quot;report_number&quot;: &quot;153572281&quot;,             &quot;occur_date&quot;: &quot;2015-12-22&quot;,             &quot;shift_occurence&quot;: &quot;Evening Watch&quot;,             &quot;ucr_literal&quot;: &quot;BURGLARY-RESIDENCE&quot;,             &quot;neighborhood&quot;: &quot;Oakland City&quot;,             &quot;lat&quot;: &quot;33.72328&quot;,             &quot;long&quot;: &quot;-84.42313&quot;           }]};           /* this is just a snippet of the data */     var filtered_points = L.geoJson(myPoints, {filter: dateFilter}).addTo(map);    filtered_points.bindPopup(filtered_points.properties.report_number);                   function dateFilter(feature) {         if (feature.properties.occur_date === &quot;2015-12-22&quot;) return true         /* finished product will take input for the date */     }       &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt;  I've gotten all of the points to display &quot;Hello&quot; when clicked using: filtered_points.bindPopup(&quot;Hello);  But I haven't been able to get them to display properties about each respectively.
112762
This is my simple GeoJSON with Leaflet map.  I want to display properties as popup but I don't know why it is empty.   Can you tell me my mistake?  &lt;html&gt; &lt;head&gt; &lt;title&gt;A Leaflet map!&lt;/title&gt; &lt;link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /&gt; &lt;style&gt; #map { width: 960px; height: 500px; } &lt;/style&gt; &lt;/head&gt;  &lt;body&gt; &lt;div id="map"&gt;&lt;/div&gt; &lt;script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"&gt;&lt;/script&gt; &lt;script&gt;     var map = L.map('map',{     center: [49.833352, 18.163662],     zoom: 10     });     L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {     attribution: '&amp;copy; &lt;a href="http://osm.org/copyright"&gt;OpenStreetMap&lt;/a&gt; contributors'     }).addTo(map);      var data ={       "type": "FeatureCollection",       "features": [         {           "type": "Feature",           "geometry": {             "type": "Point",             "coordinates": [               23.4850463378073,               46.7440954850672             ]           },           "properties": {             "f1": 11793,             "f2": "BT"           }         }       ]     };  var layer = L.geoJson(data, { }).addTo(map); layer.bindPopup('&lt;h1&gt;'+feature.properties.f1+'&lt;/h1&gt;&lt;p&gt;name: '+feature.properties.f2+'&lt;/p&gt;'); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;
52446
I’ve a PostGIS table which is published as a Geoserver layer. Every feature in the table has some attributes that should style that feature (e.g color, size, opacity, external graphic url, ... etc).  I can create an SLD document and let it read its styling attributes from the table using &lt;PropertyName&gt;, but the problem is more complex than this, for example: some points features need to be styled as a simple circles, while some other need to be styled as external-graphic images. And from the SLD Reference, the SLD PointSymbolizer must have either &lt;Mark&gt; or &lt;ExternalGraphic&gt; element, for that reason I should create two rules one for the simple point symbolizer and the other for the external-graphic point symbolizer, and should add a filter to each rule so that it deals only with the appropriate features, something like:  &lt;FeatureTypeStyle&gt;     &lt;Rule&gt;         &lt;ogc:Filter&gt;             &lt;ogc:PropertyIsEqual&gt;                 &lt;ogc:PropertyName&gt;is-external-graphic&lt;/ogc:PropertyName&gt;                 &lt;ogc:Literal&gt;0&lt;/ogc:Literal&gt;             &lt;/ogc:PropertyIsEqual&gt;         &lt;/ogc:Filter&gt;         &lt;PointSymbolizer&gt;             &lt;Graphic&gt;                 &lt;Mark&gt;                     &lt;WellKnownName&gt;circle&lt;/WellKnownName&gt;                     &lt;Fill&gt;                         &lt;CssParameter name="fill"&gt;                             &lt;ogc:PropertyName&gt;fill-color&lt;/ogc:PropertyName&gt;                         &lt;/CssParameter&gt;                     &lt;/Fill&gt;                 &lt;/Mark&gt;                 &lt;Size&gt;6&lt;/Size&gt;             &lt;/Graphic&gt;         &lt;/PointSymbolizer&gt;     &lt;/Rule&gt;     &lt;Rule&gt;         &lt;ogc:Filter&gt;             &lt;ogc:PropertyIsEqual&gt;                 &lt;ogc:PropertyName&gt;is-external-graphic&lt;/ogc:PropertyName&gt;                 &lt;ogc:Literal&gt;1&lt;/ogc:Literal&gt;             &lt;/ogc:PropertyIsEqual&gt;         &lt;/ogc:Filter&gt;         &lt;PointSymbolizer&gt;             &lt;Graphic&gt;                 &lt;ExternalGraphic&gt;                     &lt;OnlineResource                xlink:type="simple"                xlink:href="smileyface.png" /&gt;                     &lt;Format&gt;image/png&lt;/Format&gt;                 &lt;/ExternalGraphic&gt;                 &lt;Size&gt;6&lt;/Size&gt;             &lt;/Graphic&gt;         &lt;/PointSymbolizer&gt;     &lt;/Rule&gt; &lt;/FeatureTypeStyle&gt;   My question is: Is there any better solution that is more dynamic?
2456
I'm running SharePoint 2013, I would like to have a Current User Filtered View using Javascript.   the [Me] would not be feasible because I'm not using the "People Picker" as the field type. I used a text field in 4 different text fields. For instance, Field1_Text, Field2_Text, Field3_Text and Field4_Text can different Users. The form will have four different approval process; however, I would like to display the form whenever one of those text field has the current user listed. The Current User Filter Web Part, only allows for one field to be selected not all four fields, so that approach won't work either.   A custom view will be used for the date of the item. For instance, "Created Date" Filter = [Today] + 15. The data would only be displayed if the current user is listed on one of those approval "Text_Field" as noted above and the form was created 15 days from [Today]. But, my main concern is the Javascript aspect. I'm trying to get myself up to speed on the topic. Let me know if there is anything else that I can provide. As far as the .JS code, I'm very limited since I'm trying to read and learn from many of the posting on this site.  Thank you.
31608
How can I configure an exposed filter so that users can filter my site content by creation date, preferably using a date picker?   I tried using Content: Authored on as filter, but it gets me a text field to enter the date to enter a date/time in the yyyy-mm-dd hh:mm:ss format, which makes entering the date more difficult for users and more error prone.  What is the difference between Drupal 8 and Drupal 7 with  7.x-3?
123525
Is there a way to select a point from my map's current extent? I want to use ArcObjects to tell me if there is at least one point visible in my extent. I'd like to do this entirely in VBA, and without selecting any features or using any mouse-click events. (Selection can be done programmatically, just not manually.)  An demonstration would show that I have a point-type shapefile active and positioned at the top of my Table of Contents. I run my code which then displays a message box showing the longitude and latitude of the first point that is found within the current extent. Any point can be found and it's coordinates returned, just as long as that point is within the given extent.
113594
I am working with a LINQ to SQL query and have run into an issue where I have 4 optional fields to filter the data result on.  By optional, I mean has the choice to enter a value or not.  Specifically, a few text boxes that could have a value or have an empty string and a few drop down lists that could have had a value selected or maybe not...  For example:      using (TagsModelDataContext db = new TagsModelDataContext())      {         var query = from tags in db.TagsHeaders                     where tags.CST.Equals(this.SelectedCust.CustCode.ToUpper())                      &amp;&amp; Utility.GetDate(DateTime.Parse(this.txtOrderDateFrom.Text)) &lt;= tags.ORDDTE                     &amp;&amp; Utility.GetDate(DateTime.Parse(this.txtOrderDateTo.Text)) &gt;= tags.ORDDTE                     select tags;         this.Results = query.ToADOTable(rec =&gt; new object[] { query });     }   Now I need to add the following fields/filters, but only if they are supplied by the user.   Product Number - Comes from another table that can be joined to TagsHeaders. PO Number - a field within the TagsHeaders table. Order Number - Similar to PO #, just different column. Product Status - If the user selected this from a drop down, need to apply selected value here.   The query I already have is working great, but to complete the function, need to be able to add these 4 other items in the where clause, just don't know how!
91665
How can I show features (from an example file)? I tried many, many ways. This is a different route using a standard GML example file from OpenLayers. Problem : With the shown code example, I don't see any features. There are no error messages. In an Angular / typescript environment I tried also:   let polygonStyle = new Style({   fill: new Fill({     color: &quot;rgba(255, 0, 0, 0.8)&quot;   }),   stroke: new Stroke({     color: &quot;#ffcc33&quot;,     width: 10   }) }); let vectorSource = new VectorSource({   format: new WFS({gmlFormat: new GML3() }),   url: 'http://osgis.terragis.net/openlayers/examples/gml/polygon.xml', }); this.vectorLayer = new Vector({   source: vectorSource,   style: [polygonStyle] });  this.map = new Map({   layers: [     new TileLayer({       source: new XYZ({         url: &quot;https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;       })     }),     this.vectorLayer   ],   view: new View({     center: transform([0.532597, 47.428810], 'EPSG:4326', 'EPSG:3857'),     zoom: 12   }),   target: &quot;map&quot; });
82003
Is it possible to 'fly to location' in Leaflet in the same way as  example?
121131
I have added vector layer to map:      vactorTest = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:900913"), protocol: new OpenLayers.Protocol.WFS({     srsName: "EPSG:900913", url: "http://localhost:8080/geoserver/wfs", featureType: "ROADS", featureNS: "http://localhost:8080/MIA", featurePrefix: "MIA", geometryName: "GEOM", version: "1.1.0" }) });  map.addLayer(vactorTest);   And then, added polygon draw control:  var drawPolygon = new OpenLayers.Control.DrawFeature( vactorTest, OpenLayers.Handler.Polygon, { title: "Draw Polygon", displayClass: "olControlDrawFeaturePolygon", multi: true } );   with drawn polygon I want to filter layer:  testLayer.mergeNewParams({     "CQL_FILTER": mergeFilter });   I use within filter:   WITHIN(GEOM, POLYGON((4693721.49445 672633.89194, 4560244.10812 322255.75282, 4703732.29843 422363.79257, 4693721.49445 672633.89194)))   target layer is in Georgia, and if I draw polygon near Italy then, filter works.  How can I change vector projection like my layer to get right result?
55117
I have a list, a list filter and two date filters(Start date and end date) in a page. First I have to filter list using this filters and then I have to approve whatever item are left in the list after filtering.  I am using the following JavaScript code.      &lt;script type="text/javascript"&gt;  //var siteUrl = '/projects/SharePoint2013-Demo/TimesheetManagementSystem/'; var oList = null; var web = null; var clientContext  = null;    function retrieveListItems() {  var filterValue =document.getElementById("ctl00_ctl41_g_1c91c2d4_fbbb_4792_8507_ba589e5be222_SpListPicker_SelectionBox"); var StartDate=document.getElementById("ctl00_ctl41_g_ed4beb82_8f7e_4389_bb35_a44188462aab_DateFilterPicker_DateFilterPickerDate");   var EndDate=document.getElementById("ctl00_ctl41_g_07c2185d_e903_4010_8a84_b2d9536a5549_DateFilterPicker_DateFilterPickerDate"); alert(filterValue.value ); alert(StartDate.value); alert(EndDate.value);       clientContext = new SP.ClientContext.get_current();     oList = clientContext.get_web().get_lists().getByTitle('TimeSheetList');     clientContext.load(oList);      clientContext.executeQueryAsync(LoadList, onQueryFailed);           }   function LoadWeb123(sender,args) {     //oList = web.get_lists().getByTitle('TimeSheetList');      //clientContext.load(this.oList);     //clientContext.executeQueryAsync(Function.createDelegate(this, this.LoadList), Function.createDelegate(this, this.onQueryFailed));     }    function LoadList() {            var  camlQuery= new SP.CamlQuery();                    camlQuery.set_viewXml("&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;And&gt;&lt;And&gt;&lt;Eq&gt;&lt;FieldRef Name='Author'/&gt;&lt;Value Type='User'&gt;vikash kumar&lt;/Value&gt;&lt;/Eq&gt;&lt;Geq&gt;&lt;FieldRef Name='Date' /&gt;&lt;Value Type='DateTime'&gt;2015-07-10T12:00:00Z&lt;/Value&gt;&lt;/Geq&gt;&lt;/And&gt;&lt;Leq&gt;&lt;FieldRef Name='Date' /&gt;&lt;Value Type='DateTime'&gt;2015-07-17T12:00:00Z&lt;/Value&gt;&lt;/Leq&gt;&lt;/And&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;");       camlQuery.set_viewXml(camlQuery);      this.collListItem = oList.getItems(camlQuery);       clientContext.load(collListItem);     clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));     }    function onQuerySucceeded(sender, args) {      var listItemInfo = '';       var listItemEnumerator = collListItem.getEnumerator();      while (listItemEnumerator.moveNext()) {                 var oListItem = listItemEnumerator.get_current();                 var ID= oListItem.get_id();                 alert(ID);                 } }   function onQueryFailed() { //    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());     alert('error'); }   &lt;/script&gt;  &lt;button type="button" onclick="retrieveListItems()"&gt;Approve!&lt;/button&gt;   But this is not working, it gives error alert.  What could be done? Is there anything wrong with the code?
123223
I am trying to display certain features in a shapefile-based layer using QGIS. I have found the subset function in the properties panel, which does exactly what i want, but is too tedious given that I have to manually sift through a large number of features. Is there a quicker way to do this?  I am using both shapefiles and postGIS best,  dietmar
121944
I am working on a variable label in Google Earth Engine and noticed that the label as printed in the console is not the same as the label shown on the map. Why is that? Code below:  var aoi = ee.Geometry.Polygon([[[-106.75701284923326, 42.31332966408458],           [-106.75701284923326, 42.003856624775146],           [-106.31755972423326, 42.06913460511273]]]);  var chirpsSelect = ee.ImageCollection("UCSB-CHG/CHIRPS/DAILY")             .filterDate('1985-01-01','2018-01-01')             .filter(ee.Filter.dayOfYear(3,6))             .filterBounds(aoi)  var chirpsStartImage = ee.String(chirpsSelect.first().get('system:index')) var dateStartString = ((((chirpsStartImage.slice(6,8)).cat('/')).cat(chirpsStartImage.slice(4,6))).cat('/')).cat(chirpsStartImage.slice(2,4))   var sortChirpsSelect = chirpsSelect.sort('system:index',false)  var chirpsEndImage = ee.String(sortChirpsSelect.first().get('system:index')) var dateEndString = ((((chirpsEndImage.slice(6,8)).cat('/')).cat(chirpsEndImage.slice(4,6))).cat('/')).cat(chirpsEndImage.slice(2,4)) var dateTitle = ee.String((dateStartString.cat(' to ')).cat(dateEndString))  print(dateTitle)  var dateLabel = ui.Label({   value: dateTitle })  var panel = ui.Panel() panel.add(dateLabel) Map.add(panel)
54604
Is there a way to search across all rows/columns in a lightning:datatable to narrow down the list, just like jQuery DataTables? If so, how do implement that?  Can I somehow do it all on the client-side to make it super fast (some sort of DOM manipulation)  I'm having some issues with the lightning:datatable not updating. I have attached my code below, maybe you can help me spot the issue:  Markup:  &lt;aura:component extends="c:Base" controller="AccountBrowserForm"&gt; &lt;aura:handler name="init" value="{! this }" action="{! c.doInit }"/&gt; &lt;aura:attribute name="selectedAccountId" type="Id" access="public" /&gt; &lt;aura:attribute name="accounts" type="Object"/&gt; &lt;aura:attribute name="mycolumns" type="List"/&gt; &lt;aura:attribute name="sortedBy" type="String" /&gt; &lt;aura:attribute name="sortedDirection" type="Boolean" default="true" /&gt;  &lt;aura:registerEvent name="AccountFilterChange" type="c:AccountFilterChange" /&gt;  &lt;aura:attribute name="backingdata" type="List" /&gt; &lt;aura:attribute name="filter" type="String" /&gt; &lt;lightning:input type="text" onchange="{!c.filter}" value="{!v.filter}" label="Filter" /&gt;  &lt;lightning:datatable aura:id="lightningTable"                      data="{! v.accounts }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowaction="{! c.handleRowAction }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="true" /&gt;     Controller:  doInit: function (component, event, helper) {     helper.callServer(component, "c.getAccounts", $A.getCallback(function (response) {         component.set("v.accounts", response);         component.set("v.backingdata", response);         console.log(component.get("v.backingdata") + " /// BACKING DATA INSIDE ")         console.log(component.get("v.accounts") + " // ACCOUTN DATA INSIDE")          component.set('v.mycolumns', [{                 type: "button",                 typeAttributes: {                     label: '',                     iconName: 'utility:add',                     name: 'selectRecord',                     title: 'selectRecord',                     disabled: false,                     value: 'edit',                     variant: {                         fieldName: 'variantValue'                     },                 }             },             {label: 'Name', fieldName: 'Name', type: 'text', sortable: true},             {label: 'Street', fieldName: 'BillingStreet', type: 'text', sortable: true},             {label: 'Postal Code', fieldName: 'BillingPostalCode', type: 'text', sortable: true},             {label: 'City', fieldName: 'BillingCity', type: 'text', sortable: true},             {label: 'Country', fieldName: 'BillingCountry', type: 'text', sortable: true},         ]);          console.log(component.get("v.backingdata") + " *** BACKING DATA OUTSIDE *** ")         console.log(component.get("v.accounts") + " *** ACCOUNT DATA OUTSIDE *** ")     })) },  filter: function (component, event, helper) {     var data = component.get("v.backingdata"),         term = component.get("v.filter"),         results = data,         regex;     try {         regex = new RegExp(term, "i");         // filter checks each row, constructs new array where function returns true         results = data.filter(row =&gt; regex.test(row.name) || regex.test(row.age.toString()));     } catch (e) {         // invalid regex, use full list     }     component.set("v.accounts", results); },   For some reason the filter function is completely unresponsive. Also, does it matter that I'm populating the component with a response from a callback function. @sfdcfox, I noticed in your example that you simple created an array with dummy data. My "myaccounts" attribute is of type object
60536
I have to get all the "linked" records from a Document (ContentDocument) and then filter only the Events from them using the following apex.  // Query ContentDocumentLink object for the 'Event' link and apply 'WHERE' filter of the above map's contentdocument id. Map&lt;id, Event&gt; mapEvent = new Map&lt;id, Event&gt;(); Set&lt;Id&gt; EventIds = new Set&lt;Id&gt;(); for(ContentDocumentLink cdlForEvent: [SELECT ContentDocumentID, LinkedEntity.type, LinkedEntityId                                      FROM ContentDocumentLink                                      WHERE ContentDocumentID IN: mapOfContentVersion.keySet()]) {     if(cdlForEvent.LinkedEntity.Type == 'Event')     {         EventIds.add(cdlForEvent.LinkedEntityId);     } }   I'm using ContentDocumentId filter, from a contentversion map but it is giving me following error     Implementation restriction: ContentDocumentLink requires a filter by a   single Id on ContentDocumentId or LinkedEntityId using the equals   operator or multiple Id's using the IN operator.   Interestingly, if I provided hard-coded values using IN clause then it accepts it. But I have to make it run in the apex and it has to be dynamic. Following soql works   for(ContentDocumentLink cdlForEvent:                  [SELECT ContentDocumentID, LinkedEntity.type, LinkedEntityId                  FROM ContentDocumentLink                  WHERE ContentDocumentID IN ('06923000000CqHNaxy', '06923000000CqHNAA0')])   I dont understand what is missing. How should I get all the related linked entity records and then filter Events from them?
124279
I have two feature classes, a polygon of sales areas for a city, and point layer of addresses. I want to select the addresses based on the sales area they are in and update their attribute table to show the sales area. I have searched python+point+in+polygon for other posts and I know how to select the polygons but I can't figure out how to populate the address points.   I found the following script that works but takes almost two hours to run.  import arcpy import os  # Allow overwrite  arcpy.env.overwriteOutput = True  # Script user input parameters polygonLayer = arcpy.GetParameter(0) pointLayer = arcpy.GetParameter(1) workspace = arcpy.GetParameter(2) copyField = = arcpy.GetParameterAsText (3)   # Add new field to target feature class  fieldList = arcpy.ListFields(pointLayer) fieldNameList = [] for field in fieldList:    fieldNameList.append(field.name) fieldType = arcpy.ListFields(polygonLayer,copyField)[0].type if not copyField in fieldNameList:     arcpy.AddField_management(pointLayer, copyField, fieldType)  arcpy.MakeFeatureLayer_management(polygonLayer, "PolygonLayer")  pntCursor = arcpy.UpdateCursor(pointLayer) for pnt in pntCursor:     rowID = pnt.OBJECTID     arcpy.MakeFeatureLayer_management(pointLayer, "PointLayer", '"OBJECTID" = ' + str(rowID))      # Polygon selection based on CONTAINS selection method     arcpy.SelectLayerByLocation_management("PolygonLayer", "CONTAINS", "PointLayer")      # Copy field values from polygon to point layer         polyCursor = arcpy.SearchCursor("PolygonLayer")             for poly in polyCursor:         pnt.setValue(copyField, poly.getValue(copyField))         pntCursor.updateRow(pnt)      arcpy.Delete_management("PointLayer")          del pntCursor, polyCursor, pnt, poly   I don't think I need to create a new field so I have simplified my script too:  # Import arcpy module import arcpy import os  # Allow overwrite  arcpy.env.overwriteOutput = True  # Script user input parameters polygonLayer = arcpy.GetParameter(0) pointLayer = arcpy.GetParameter(1) workspace = arcpy.GetParameter(2) fsaPoly = arcpy.GetParameterAsText (3) #FSA in FSA_Boundaries fsaPnt =  arcpy.GetParameterAsText (4) #FSA in Addresses   # Select all Address in FSA     polyCursor = arcpy.SearchCursor("PolygonLayer")      for poly in polyCursor: # Select based on CONTAINS      arcpy.SelectLayerByLocation_management(poly, "CONTAINS", "PointLayer")  # Add FSA to Address         pntCursor = arcpy.UpdateCursor("pointLayer")               for pnt in pointCursor:             pnt.setValue(fsaPnt, fsaPoly)             pntCursor.updateRow(pnt)   del pntCursor, polyCursor, pnt, poly   I know my update cursor is wrong but i'm stuck on how to update one feature class using information selected from the other.   I know I can do this manually but I need to do it for multiple cities so I would like to automate the process.   I am using Arc 10.2.2 to run my python script.
119807
I am trying to retrieve list items using date range based on date column. It implicit both 'Fromdate' and 'Todate'.My CAML query is also querying on two other conditions as well. I am using the below query but it is not retrieving the data.when I remove the date range from query data is retrieved fine. But i want date range as well in my query how would i do this. Little help would work for me.   camlQuery.set_viewXml('&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;And&gt;&lt;And&gt;&lt;Neq&gt;&lt;FieldRef Name="ID" /&gt;&lt;Value Type="Number"&gt;0&lt;/Value&gt;&lt;/Neq&gt;&lt;Eq&gt;&lt;FieldRef Name="_ModerationStatus" /&gt;&lt;Value Type="ModStat"&gt;0&lt;/Value&gt;&lt;/Eq&gt;&lt;Geq&gt;&lt;FieldRef Name="Created" /&gt;&lt;Value Type="DateTime"&gt;' + fromDate + '&lt;/Value&gt;&lt;/Geq&gt;&lt;Leq&gt;&lt;FieldRef Name="Created" /&gt;&lt;Value Type="DateTime"&gt;' + toDate + '&lt;/Value&gt;&lt;/Leq&gt;&lt;/And&gt;&lt;/And&gt;&lt;/Where&gt;&lt;OrderBy&gt;&lt;FieldRef Name="_ModerationStatus" Ascending="True" /&gt;&lt;/OrderBy&gt;&lt;/Query&gt;&lt;/View&gt;');
58277
See attached picture. This is how it is when the page loads. I'm currently using  map.zoomToMaxExtent();     Everything is working pretty well but I'd like to zoom out more/see the whole world using OSM/Google Map Layers: is this even possible?  Note that the zoom bar on the left is set to the lowest bar when the page loads (if you can't see the map well, just right click the image and paste into a new browser tab).   This  but even when I do MIN_ZOOM_LEVEL that doesn't do much.  Also note I am not setting any bounds, extents, or resolutions. Toying with those did not seem to do the trick either.   Any input is appreciated.   Edit: here's a codeshare if you want to take a look:   UPDATE:  This is not perfected yet (and it makes me think something may be wrong with my OL code itself) but currently I am using this   var extent = new OpenLayers.Bounds(-1.32,81.71,-1.18,-61.80).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:3857"));   I tried   var extent = new OpenLayers.Bounds(-20037508.34279,-10018754.17139,20037508.34279,10018754.17139);   (both with and without transform) but this did not do anything.   UPDATE 2:   wrapDateLine: false works fine for now: can zoom out farther, pan around, etc etc.  Now I would like to cut off everything to the left of the date line on the left side of the map (the 'first' portion), and cut off everything to the right of the date line on the right side of the map (the '3rd' portion) WHILE still keeping the map full screen. I've tried bounds, resolutions, but no go. Is this even feasible?  Something like this but it should take up the full screen: possible to do? See below: