Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/gmaps/test/spec/ drwxrwxr-x | |
| Viewing file: Select action/file-type: describe("Adding Map Styles", function() {
var map_with_styles;
beforeEach(function() {
map_with_styles = map_with_styles || new GMaps({
el : '#map-with-styles',
lat : -12.0433,
lng : -77.0283,
zoom : 12
});
map_with_styles.addStyle({
styledMapName : {
name : 'Lighter'
},
mapTypeId : 'lighter',
styles : [
{
elementType : 'geometry',
stylers : [
{ lightness : 50 }
]
},
{
elementType : 'labels',
stylers : [
{ visibility : 'off' }
]
},
]
});
});
it("should add a MapType to the current map", function() {
expect(map_with_styles.map.mapTypes.get('lighter')).toBeDefined();
});
it("should update the styles in the current map", function() {
map_with_styles.setStyle('lighter');
expect(map_with_styles.getMapTypeId()).toEqual('lighter');
});
}); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]-- |