I im triyng to submit a SLD style in openlayers 3 to change the color of my WMS(geoserver) But nothing is working...Anybody have a idea?
Here is my code:
var wms_p_popf = new ol.layer.Tile({ name: 'wms_p_popf', source: new ol.source.TileWMS({ url: 'http://localhost:8080/geoserver/DatashinePBS/wms', params: {'LAYERS':'DatashinePBS
opF'}, serverType: 'geoserver', }), maxResolution: 850 }); wms_p_popf.updateParams({STYLES: undefined, SLD_BODY: SLD}); var SLD = ''+ ''+ ''+ 'pack_geomarketing_iris13_region'+ ''+ 'pack_geomarketing_iris13_region'+ ''+ ''+ '0.0000 - 20.9136'+ ''+ '0.0000 - 20.9136'+ ''+ ''+ ''+ ''+ 'p_popf'+ '0'+ ''+ ''+ 'p_popf'+ '20.9136'+ ''+ ''+ ''+ ''+ ''+ '#f1eef6'+ ''+ ''+ ''+ ''+ '20.9136 - 46.5812'+ ''+ '20.9136 - 46.5812'+ ''+ ''+ ''+ ''+ 'p_popf'+ '20.9136'+ ''+ ''+ 'p_popf'+ '46.5812'+ ''+ ''+ ''+ ''+ ''+ '#d7b5d8'+ ''+ ''+ ''+ ''+ '46.5812 - 50.4112'+ ''+ '46.5812 - 50.4112'+ ''+ ''+ ''+ ''+ 'p_popf'+ '46.5812'+ ''+ ''+ 'p_popf'+ '50.4112'+ ''+ ''+ ''+ ''+ ''+ '#df65b0'+ ''+ ''+ ''+ ''+ '50.4112 - 53.8128'+ ''+ '50.4112 - 53.8128'+ ''+ ''+ ''+ ''+ 'p_popf'+ '50.4112'+ ''+ ''+ 'p_popf'+ '53.8128'+ ''+ ''+ ''+ ''+ ''+ '#dd1c77'+ ''+ ''+ ''+ ''+ '53.8128 - 100.0000'+ ''+ '53.8128 - 100.0000'+ ''+ ''+ ''+ ''+ 'p_popf'+ '53.8128'+ ''+ ''+ 'p_popf'+ '100'+ ''+ ''+ ''+ ''+ ''+ '#980043'+ ''+ ''+ ''+ ''+ ''+ ''+ ''; /////////////////////////////////////////////////////////////////////////////////////////////////////
أكثر...
Here is my code:
var wms_p_popf = new ol.layer.Tile({ name: 'wms_p_popf', source: new ol.source.TileWMS({ url: 'http://localhost:8080/geoserver/DatashinePBS/wms', params: {'LAYERS':'DatashinePBS
أكثر...