@@ -295,23 +295,21 @@ <h1 class="title">
295
295
element[0].style.display = 'none';
296
296
console.log("custom-marker options", options);
297
297
var customMarker = new CustomMarker(options);
298
- $timeout(function() { //apply contents, class, and location after it is compiled
299
- scope.$watch('[' + varsToWatch.join(',') + ']', function() {
300
- customMarker.setContent(orgHtml, scope);
301
- });
302
- customMarker.setContent(element[0].innerHTML, scope);
303
- var classNames = element[0].firstElementChild.className;
304
- customMarker.addClass('custom-marker');
305
- customMarker.addClass(classNames);
306
- console.log('customMarker', customMarker, 'classNames', classNames);
307
- if (!(options.position instanceof google.maps.LatLng)) {
308
- NgMap.getGeoLocation(options.position).then(
309
- function(latlng) {
310
- customMarker.setPosition(latlng);
311
- }
312
- );
313
- }
314
- });
298
+ scope.$watch('[' + varsToWatch.join(',') + ']', function() {
299
+ customMarker.setContent(orgHtml, scope);
300
+ });
301
+ customMarker.setContent(element[0].innerHTML, scope);
302
+ var classNames = element[0].firstElementChild.className;
303
+ customMarker.addClass('custom-marker');
304
+ customMarker.addClass(classNames);
305
+ console.log('customMarker', customMarker, 'classNames', classNames);
306
+ if (!(options.position instanceof google.maps.LatLng)) {
307
+ NgMap.getGeoLocation(options.position).then(
308
+ function(latlng) {
309
+ customMarker.setPosition(latlng);
310
+ }
311
+ );
312
+ }
315
313
console.log("custom-marker events", "events");
316
314
for (var eventName in events) { /* jshint ignore:line */
317
315
google.maps.event.addDomListener(
0 commit comments